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.

Efficient way of finding a value

Featured Replies

Hi gang,

Just a quickie, because the solution escapes me just at the moment. I have a global field (gproduct_code). What's the most efficient way (i.e - without using a loop script step) to check if my TEXT field called product_code doesn't already have a product code that matches what's in the global field.

Trying to keep fields unique,

thanxs, hope it all makes sense.

Steve Griff.

create a self-relation g_ProductCode::tProductCode.

Use a calc c_identifyduplicate = Case(Selfjoin::tProductCode > 0; 1; 0)

This will return a 1 if it does already exist.

When processing an entry, your script would simply check the value of c_identifyduplicate.

There are other methods to purge duplicate you might have a look to :

http://www.fmforums.com/threads/showflat.php?Cat=&Board=UBB16&Number=55077&Forum=All_Forums&Words=purge&Match=Entire%20Phrase&Searchpage=0&Limit=25&Old=6months&Main=55070&Search=true#Post55077

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.