Skip 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.

How to update a field in multiple records

Featured Replies

I have several records in inventory.fp5 that I want to link to invoices.fp5 by invoice_id. I want to be able to run the script to do this within the database purchase_orders.fp5.

The records in inventory.fp5 that are to be updated with a new invoice_id must satisfy two conditions, 1) inventory.invoice_id is blank, 2) inventory.project_id = purchase_orders.project_id

I've never had to update fields within multiple records using filemaker before and I'm not sure how to go ahead with it. Thanks for any help.

Hi,

I suppose there is a relation between the project_id in purchase_order.fp5 and project_id in inventory.fp5. If not you could define one.

With this relation you could display all inventory records for a given project_id in purchase order through a portal.

After generating a new invoice_id in invoice.fp5 the new invoice number could be temporarily stored in a global field in purchase_orders.fp5. Let's call that one g_invoice_id.

You could then loop through the inventory records with:

goto portalrow [first]

loop

if [is empty(Relation::invoice_id]

set [Relation::invoice_id, g_invoice_id]

end if

goto portalrow [next, exit after last]

end loop

Does this make any sense?

Regards,

Ernst.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.