object not hiding
I have a popover button that I have set to hide using the following formula:
Get ( WindowMode ) = 1; 1;
Count (salePreviousOrders::saleNumber) < 2; 1;
I want the button to aways be hidden when the window is in find mode and only be shown in other modes when there is more than one record present in salePreviousOrders::saleNumber. When I put this function in the data viewer to watch it, it is evaluating properly to 1 in every instant. The button however is not hiding when I enter find mode. Anyone have any ideas?
Try giving the button an object name and use Refresh Object to update its visibility. If that works, you can set that script to run off the OnModeChange trigger.