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.

Using Extend Found Set with a Variable

Featured Replies

I have a script that searches two fields on a table: account name and status

At the start of the script I define a variable $un with the Get (Account Name) function. It then enters find mode, insert $un into the account name field, and insert "Pending" into the status field. Perform find and everything works.

The problem is that when I try to extend the found set to also include the status of "Approved", I do not get the desired results. If I only add the "Approved" criteria it returns with approved records for users other than $un (it also includes $un).

If I extend the found set with the criteria of status = "Approved" and account name = $un, I do not get any additional results.

How can I perform a find that returns records for the user $un (the current account name) and a status of Pending or Approved?

You need to enter find mode, insert the text into the field and then perform a find b/c you can't use variables in a find. I know, it sucks.

  • Author

Thanks for the info. I went with constraining the found set by omitting the one status I didn't want to see.

How can I perform a find that returns records for the user $un (the current account name) and a status of Pending or Approved?

Enter Find Mode []

Set Field [ Table::AccountName ; $un ]

Set Field [ Table::Status ; "Pending" ]

Duplicate Record/Request

Set Field [ Table::Status ; "Approved" ]

Perform Find []

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.