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.

Related records script?

Featured Replies

Can anyone point me in the right direction to learn about the related records script step? I have an invoice table an invoice detail table. I would like to be able to view all products ever purchased by a customer but only the last date it was purchased.

Thanks much.

John

One way to handle it is like the attached template does, although I've made a portal showing all the matches, but by sorting on the itemlineID backwards will the newest show up first!

I've made a dedicated table to make the requests in, but the principle could be done either in the clients table or Items table, in similar fasion! But done entirely without scripting...

--sd

test.zip

However if you would do it without the extra table in a more

"Anchor Buoy/Hierarchical Table Occurence Grouping..." 'ish way

investigate this attachment - the topic as such can be studied here:

http://www.filemaker.com/downloads/pdf/FMDev_ConvNov05.pdf

(page37)

--sd

testModified.zip

I think this can be built with less resources, using the method Ugo proposed here. Adding a table of Invoices would require LineItems to lookup the CustomerID and InvoiceDate from Invoices - but you can scroll Customers without setting a global.

LastPurchases4.fp7.zip

Yeah! Ugo has a strong hand with relations, however is the storing of the looked up value taking a tad more storage, and is in the strictest sense redundant and builds yet another index, to send over a network.

--sd

Well, if you want to live in style, you gotta pay the price...

  • Author

Thanks to all. I have downloaded all the attachments. I appreciate your taking time to help with this.

John

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.