Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

XML Web Query on Related Table

Featured Replies

I am looking to export data from a layout called webdata in a database called Books from our FM Server 11 Advanced using the XML functionality of the Web Publishing Engine. I have a layout which is based on the main Books table with all of the fields I need. What I'm looking to do is to get a list of in print book records. We have a seperate table which has mutliple records for each book to track when the statuses were active. This table includes a field to indicate that this is the current status and have verification set up to ensure that only one record per book is marked current. Using a table occurance of the status table I am able to filter down to just the current status for each book. The filtering is not based on global fields.

The problem I am having is that when I use the related field (Current_Status::print_status_code) in an XML query to find in print (IP) books it returns every record in the Books table. If I do this query using the FileMaker client it works just fine and returns the correct set of records. If I do a query based on fields in the Books table it works as expected. Here is the query with the server info removed: .../fmi/xml/fmresultset.xml?-db=Books&-lay=webdata&Current_Status::print_status_code=IP&-find

I also tried using a pre-find script that would peform the find in the script but again that gave me every record. I assume that's because the script has no relevance for the XML query.

Any ideas?

Bryan

  • 2 weeks later...

Can you do the find from the "child" (related) table? You can alway pull parent databack.

Beverly

  • Author

Unfortunatly no; in troubleshooting I whittled down the problem to be simple. Ultimately we need to create a find that uses fields from the parent and possibly multiple child tables.

Then run them as nested queries - Find parent, then for each parent go to the required child table(s) to retrieve the data...

  • Author

Unless I'm missing something, that doesn't solve the problem. I am looking to to perform a find in the parent table using fields from one or more child tables. So I can't find the parent and then go to the child tables because without the child tables I can't find the correct records in the parent table.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.