Hi Team,
Please find the screenshot below:
When we click on button 1 in the Main view, this popup will open, then clicking on OK button, Button 1 from the Main View should be disable and Button 2 should be enable.
I referred the previous links in the forum this can done by using session/message handler
but I am not able to achieve, please help by the steps.
Thank you
Hi,
- Create a Parameter in Main view as status
- Create a event on Popup Ok button with a script as
system.perspective.sendMessage("test", payload = {"status" : False}, scope = "page")
- Create a script on Main view and add a Message Handlers type as test and write script as
status = payload["status"]
self.view.params.status = status
- Bind the parameter to the enable property of the button 1.
**Change the name, scope and payload according to your need.
Thanks
2 Likes
Tip: you've posted this in General Discussion but it belongs to the Ignition category. Also, you need to tag it as Perspective so that you attract the right experts.