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.

Generic Script for find to layout

Featured Replies

I have a database with 3 item priorities - Very Urgent, Normal and Low.

I was trying to create a script to perform a find and go to a layout to show items in list view.

Rather than making 3 separate scripts, I thought I could use a generic script which gets one of the values - Very Urgent/Normal/Low and perform the script.

In Myscript I have 2 steps

1. Perform find (Criteria set to MyDatabase::Priority[Get(Script parameter)]

2. Go to Layout["List View"]

At the button setup screen, I do this

1. Perform script ["MyScript"; Parameter:"Very Urgent"]

when run I get "No matching records found"

Whats wrong here? Am I doing it correctly?

Edited by Guest
Clarification

You can not use neither scriptparamters nor $variables inside a prefab request, if you after the scripting issue a Modify Last Find, will you see the translation is "forgotten"

I would do it this way:


Set Error Capture [ On ] 

Enter Find Mode [  ] 

Go to Field [  ] [ Select/perform ] 

Go to Next Field 

Set Field [ Get ( ScriptParameter ) ] 

Perform Find [  ] 

Set Error Capture [ Off ] 

It will set you request value in the first field occuring in the taborder on the layout.

--sd

  • Author

You are awesome. Thank you.

Now I can sleep peacefully.

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.