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.

check value against all records

Featured Replies

how can i check a value calculated within my script to see if it matches a field in any record, not just the current one?

Is it that you want the script to stop when it finds a record that doesn't match?

Go to Record/Request(first)

Loop

If(Variable<>Field)

Pause Script

Else

go to record/request(Next, Exit after last)

endif

endloop

*** I haven't run this script so it may need some tweaking. It's just the general idea.

Btw, if this is a really large database this could take a long time.

If this is not what you are asking please give a more detailed explanation of what you are looking to accomplish.

hth

or you can set the value to a variable, and pop open a new window (off the viewable screen if you like) and perform a find to see if it returns a found set. Opening a new window will preserve your last found set and record that you were viewing in the old window. After checking, you can have the script close the popup window.

Another option is that you could set a global field with the value, create a new relationship to a new table occurrence and check to see if there are any related records.

Great John. The global sounds like it would be the fastest and easiest to deal with. But, we still need to understand what he is ultimately looking to accomplish with the results, don't you think?

Al

Yup but hopefully we have given him enough to start if that is what he meant.

  • Author

wow you guys are fast! sorry i was in bed!

basically in'm inserting lines into a sales list but want all my field line_id to be unique, it auto enters normally but i'm writing a script to insert lines.

this works by adding a decimal place to the current line ie line 45 would have 45.1 inserted after it.

this works great unless you try to insert a line in the same place more than once.

therefore i want to check whether the line number i'm about to insert already exists. if not i add 1 to it until it does.

i think ill have a look at the global route for now,

thanks for the help!

  • Author

so how should i set up this related global field?

should the global be in the same table as the line id??

should the relationship be via 2 separate occurrences of the table?

(the line id is already linked for another purpose)

how do i equate whether it links to a record via logic?

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.