Maybe you can add a boolean field in your entity that is set to false when the button is pressed. In mendix 9 it is then possible to change the caption of the button based on an expression.
In mendix 8 it is not possible to use an expression. In that case you might use conditional visibility based on the boolean field.
I have created a boolean field for my button.
My switch and my notification are connected to “Toggle” boolean ( As I cannot connect more than 1 attributes, I wanted to connect “Status” boolean to both of them but I couldnt connect). As a result, the notification only shows when the button is toggled on but it does not show when it is off. I tried to change the value of “Toggle” to calculate instead of stored but I kept having errors ( Not sure if I did it correctly...)
Is it advisable for me to download Mendix 9? If I were to download Mendix 9, may I know how do I tackle this issue? Please advise.. I am stuck at this issue..
After the processing you initiated at pressing the button has finished, you should change the boolean value.