Agentry Buttons and Rules Firing
I have a button on a list screen in which I want to basically toggle the style of the button (turn green when they press it, turn the green off when they press it again). The button action sets a property (on the MainObject) for true/false (i.e. toggles that value). I have a style which has the green background. And on the Style on the button, I have it using a rule in which states if the value is true, use the "green" style, otherwise a "blank" style.
Here's the issue. The rule is not firing when the button is pressed. It only seems to fire if I navigate away from the screen, then back to the screen. So if i press the button, the style doesn't change. But I simply navigate away, then back, and now the button in green.
Is there a way to "force" the rules on the button to fire so it can change the button style without having to navigate away?