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.

Filter Records in Layout Using Script

Featured Replies

I have an employee database that shows records for three different types of employees. I'm trying to create a script that shows a list of each employee type on different layouts. Scripts are not my strong point and any help would be greatly appreciated.

My suggestion is that you do this with a relationship and not a script step. See the attached example.

Employees.fp7.zip

I'm trying to create a script that shows a list of each employee type on different layouts.

Try:


If [ IsEmpty ( Get ( ScriptParameter ) ) ] 

Show All Records 

Else 

Enter Find Mode [  ] 

Set Field [ Employees::Type ; Get ( ScriptParameter ) ] 

Perform Find [  ] 

End If 

Set each layout to perform this script OnLayoutEnter, with the appropriate type as the script parameter.

Note that this is necessary only if you have different layout requirements for each type e.g. type-specific fields. Otherwise you could just perform a find within the same layout.

  • Author

Thanks so much! The script worked great!!

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.