SteveGriff Posted February 28, 2003 Posted February 28, 2003 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.
Ugo DI LUCA Posted February 28, 2003 Posted February 28, 2003 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
Recommended Posts
This topic is 7943 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now