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.

Filtering Portals

Featured Replies

I have searched to find a solution to what is probably a very simple question. I have a client layout with a portal that displays all the invoices for that client. I want to limit the portal display to a specific year. Tried creating a global field gFilter which I related to the Year field. Then set the value of the gFilter in a script to use as a find but that did not work. There are a number of portal queries in the Forum but I have not been able to get any of them to fit my circumstance or possibly I have not understood them. Any help greatly appreciated.

Thanks

Mitch

If gFilter is indeed a global field and your portal relationship is keyed from this global field to your INDEXED year field on the child TO, then it should work. Not sure what you are talking about "script to use as a find" though... No scripted find would be necessary, just a setting of the global field to the year that you want.

  • Author

Mr Vodka

thanks for the reply. I have as my main table one called Operators it is linked to a table called Batches by the operator ID. In my batch table I have a transaction date and a field called TYear which simply extracts the year. Then a global field gFilter in the Operators table. In my relationships two occurrences of Operators one linked OP ID to OP ID the other TYear to gFilter. From a layout of a list of operators I click a button which calls a scrip which asks for the year. I need to pass that year to the gFilter so as the layout with the portal is restricted to the invoices for that year only. I hope I have explained this properly. The Tyear field is indexed.

Thanks

Mitch

Your relationship should be keyed as such

pkOperatorID = fkOperatorID

gFilter = TYear

Try entering a year in manually to see if its your script.

  • Author

Thank you I created the relationships with one table not two I think thats what I understood your advice to be and it worked. Thank you very much.

Mitch

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.