How is the value of $$FindMode_triggerVal changed? If in a script you may need to refresh the window after setting the variable's value.
You might also look into using the Get ( WindowMode ) function instead of this global variable.
Arghhh, it's the refresh the window thing again. Thanks. I will do my best to remember this. Is there documentation somewhere that spells out when a refresh is required?
I thought of get(windowmode), but I have a button that I want to light up for naive users when they enter someting into a field panel in find mode, otherwise the button dims and a press does nothing.
Get find mode will not allow me to do this, but thanks for the suggestion!
Get ( WindowMode ) = 1 and Not IsEmtpy ( YourTable::yourField )
Should work to change the fill color of your button when data is entered into YourField and the layout is in find mode.
Thanks! Much more elegant and it gets rid of a global variable which seem to create maintenance difficulties.