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.

Use Data in find Script

Featured Replies

Hello and thank you in advance!

I am trying to use a "form" to perform a search in a script. I have an unrelated table set up that I am using to create a layout and the values from that layout are copied into global fields.

I would like to use the values in these global fields in a "perform find" where (for example):

MembersTable::member_number>ComparisonTable::GlobalField

This find would change every time we filled out the form, but that is the point.

I am using the Script Manager, but i don't know the syntax to bring the values from the global field into the find.

Again, thank you for your help.

dp

I have an unrelated table set up that I am using to create a layout and the values from that layout are copied into global fields.

Why not just have the global fields in another table and use those without the unrelated table from which the data will be transferred - or is the unrelated table already used for globals?

I'm not quite sure what exactly you require here ...

  • Author

Thank you for the reply. I guess I need to be more clear. I am not having trouble with the concept of the global fields. The table that contains the globals is a table that we use to track which reports were run and when they were run.

The problem I am having is much simpler (I think). In the script to run a report, I want the value from one global field from the reports table to be inserted into a FIND. The data is a numerical value for a date (20091215). I want to find all members from the members table whose EFFECTIVE_DATE is later than December 15, 2009. I am having trouble figuring out the syntax of the find request to insert the DATA from the global field. It seems that everything I try inserts the name of the global field and not the value.

How would I write the line of the script that inserts the value of the field global_eff_date into the MEMBER::eff_date and performs the find. I assume it is something like:

MEMBER::eff_date:[>(BROKER_RPT::rpt_st_date)]

but this doesnt seem to work. I get "BROKER_RPT::rpt_st_date" placed in the MEMBER::eff_date field.

I hope I am being more clear.

dp

I think you are looking for something like this

Enter find mode

setfield(effective_date;gobalfield)

perform find.

Hope this help

Lionel

  • Author

PERFECT! It worked. Thank you.

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.