Brian Dunning's FileMaker Custom Functions

@UniqueValuesToAdd ( existingValues ; addingValues ; ~datatype ; ~locale )

Filter values that are not on the list.

  Average rating: 4.0 (4 votes) Log in to vote

Alex Zueiv   Alex Zueiv - Show more from this author
Tashkent
https://github.com/zueiv

Share on Facebook Share on Twitter

  Sample input:
Quote ( @UniqueValuesToAdd ( "existing¶values" ; "adding¶values" ; "" ; "" ) )
  Sample output:
"adding¶"

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This CF allows to find out which values are new before adding them to the DB. It is useful to prevent duplicate entries when you do Insert from URL [] or when you need to post-process a set of newly selected checkboxes.

Works in FM16+ only (no runtimes).

Tip: To get the list of removed values, just change the parameters in places:

Quote ( @UniqueValuesToAdd ( "adding¶values" ; "existing¶values" ; "" ; "" ) ) = "existing¶"

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: