Hi, I am a beginner and I'm kind of still stuck...This app is an event list. I want Enable column to be enabled (icon "ï¿¥") by default.
When I click "Enable/Disable" button, I want to change the icon of the Enable column, enabled (icon "¥") , disabled ( icon "×") .
I don't really understand the movement of this logic.I can't switch after pressing once.How should I set the switching logic?I would appreciate it if you could tell me how to solve this.Regards,Zamiemon
Hello
You can create a Boolean variable to control the behavior of your widget Use the If Widget where you would like to display these iconsAnd according to BooleanIf true then show default iconif false change the icon
If you want to make it work like togglethen jus use the assign statement as
example
This will work.
Please let me know if this helps
I have also attached the updated oml
Sample
Best RegardsTousif Khan
Hi @Tousif Khan I'm always grateful for your help.That's settled. Thank you so much.
Regards,
You are always welcome :)I am Glad that I am able to help you.Thanks,Tousif Khan
Hi,
Replace the assign on the button click
BR,
AL
Hi @Andrea Lembo
I appreciate your help.
Best Regards,Zamiemon
Hello,
Your logic is almost done, the only thing is that you created an assign that will always set the variable to true:
You need something that always changes the variable to the other value (from true to false and from false to true).
My recommendation is:
This assign receives the current value and uses 'not' to change it.
Let me know if this works :)
Hi @Miguel Defavari da Silva
I appreciate your help.Best Regards,Zamiemon
Hi everyone.
I really appreciate your kind help!I have little bit of trouble in my environment...I'll let you know if this works well.