I started with a blank app.
I want two buttons on the app. When you click the one called Plan, it will set a variable called varButtonPlan to true and the variable called varButtonDesign to false. When you click the other button called Design, it will do the same, but with varButtonPlan as false and varButtonDesign as true.
To the screen, I added two buttons useing this code in OnSelect
varButtonPlan
Set(varButtonPlan, true);
Set(varButtonDesign, false)
varButtonDesign
Set(varButtonPlan, false);
Set(varButtonDesign, true)
To see if it worked, I added two text labels, one with each variable.
Works perfect!
I want to create these buttons in a component to add them to screens as needed.
I created them the exact same way in the component; however, when I added the component to the screen, the buttons did not work.
I tried to initialise the variables with the following code and tried this on both App - OnStart and Screen - On Visible. It still did not work.
Set(varButtonPlan, false);
Set(varButtonDesign, false)
Any ideas on why the buttons are not working when coming from a component?
Thanks,