Struggling with what I thought would be a “simple” change.
As mentioned in previous posts, I have inherited a FileMaker deployment developed over several years.
There is an “Order Book” table
Behind the “Order Book” table, is a table that applies filters. So the user can go into “Order Book”, click a link that gets them into the Filters Layout, make selections, apply filters and “good to go.”
This is my issue.
One of the filters is a custom values list. The custom values match data from the “Order Book” table in an Application field. (For application, think of product range.)
Example current value = PRO.
We actually have, “PRO-STD” and “PRO-SPEC”
Easy enough for me to add those two and remove the original “PRO.” However, using the “contains” rule, checking either box returns all “PRO-STD” and “PRO-SPEC” records, which I don’t want.
Now, looking at the script – see below – I can’t figure out how to change the $App variable to what I need. Which is to still be able to select multiple Application Codes, BUT have exact matches against each value.
#Application filter
If[ReportsandFilters::FilterApplication = “”]
Else
Constrain Found Set [Restore]
Loop
Exit Loop if [$Count = WordCount(ReportsandFiltersList::FilterApplication)]
Set Variable [sCount; Value:$Count + 1]
Set Variable [$App; Value:MiddleWords(ReportsandFilters::FilterApplication ; $Count ; 1)]
Just to be clear, we have around 10 codes and everything is working fine now, apart from the ability we need to select exact matches on all of them rather than “contains.”
All help and pointers in the "right direction" gratefully received.