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.

Multiple CurrentFoundCount in Script

Featured Replies

I am trying to make a script that will perform a script (find) and populate a field (field1) with the CurrentFoundCount, then run another script (find) and populate another field (field2) with the CurrentFoundCount again. I am using setField to do this, but for some reason it clears the results of the first find and only fills in the results in the last script. For example:

Script 1 = 4 records

Script 2 = 8 records

Results, Field1 = Blank

Field2 = 8

My ultimate goal is to have a script that will run 14 sub-scripts, filling in the CurrentFoundCounts for each script. If this is possible, will I need to create 14 different fields?

Thanks,

There might be an easier way to do this, one not involving 14 different finds and set fields. Probably depends on what kind of finds you are doing. Do they change or are they always the same finds?

I'm thinking there should be a way to duplicate this functionality with self-join relationships.

Don't know if it will work or not. Some more information about what you are needing to do would help.

Hi,

a little unsure why you want to do this.

Are you wanting to remember the records you found, because if so, the Status(CurrentFoundCount) will not give you at the end of your scripting a list of all those records found. It just lists the number of found records at that time.

So, you may have a total of 380 in your result, but only have found 20 records.

Can you clarify what you want to do with the found count at the end of the script run.

  • Author

I played around with something that I found in the Forums and I think I figured out how to do it. I created a global field to store the Search Criteria and another to hold the results. It works fine. I got it to give me 14 different results running 7 different scripts!

Thanks anyway.

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.