Store PLCnext CommunityPLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. Arne Smets
  2. PLCnext Technology & PLCnext Controls
  3. Monday, 22 March 2021
I am designing a HMI and have created a 'pop-ups' folder, which contain different pages. Those pages have all different settings/ status etc.
In the top of all pages I've made buttons, to go from one pop-up to the other. Since it are all settings, I want to use those as pop-up dialog and not as complete page.
When pressing a button in the dialog, I've created a 'open dialog' dynamic and it will open another 'pop-up' page in a pop-up. The button layout is the same in all pages and the button of the current page will have a different colour, which creates the look of a pressed button. This way it is clear at which pop-up the user is.
But when I am opening a dialog of a different page, I actually want to close the current dialog and open the chosen one: The buttons are actually representing tabs.

The problem is that I can only select one open/close page dynamic per button. If I want to add a different 'on click' dynamic, I can only write/increment/toggle a value...
This results in a new pop-up over the old one. This looks good, but when I press the 'close dialog' image, it is only closing the last dialog. This means if a pressed a button 5 times switching to a different page, I have to close all those dialogs one by one...

What is the best way to solve this and achieve what I want? Or all dialogs should be closed at once, or a dialog should close when another one is opened...


Accepted Answer
Frank PLCnext Team Accepted Answer Pending Moderation
Hi Arne,

there is no ready made button available, but you can use a data action to close the pop ups.

Attached a screenshot from what I've made.
- There is a Variable "CloseTabs"
- This variable is set to false with the calling buttons on the main page
- This variable is set to true from every (or just some) buttons on the pupup
- A data action on one of the objects on the pop up checks the variable "CloseTabs" --> True --> Close Dialog
- Every chained popup with this (maybe hidden) object will than close right away

Hope this works also for you.

Attachments (1)
Phoenix Contact Electronics Headquarter - PLCnext Runtime Product Management and Support
Rob H Accepted Answer Pending Moderation
Have you considered using visibility instead of page switching? If you took the unique parts from each popup and put them into separate symbols, you could then use the tab buttons to set the visibility for each symbol.
Automation Engineer - MI, USA
Arne Smets Accepted Answer Pending Moderation
Thanks for your idea rob.

But with the visibilty with symbols, I get a bit lost on the page. The pages look real different, except of the top row with the buttons.
On the HMI editor all those symbols will be visible and be above eachother, which makes it not very clear.

If there is no other solution I will keep it in mind.
  • Page :
  • 1

There are no replies made for this post yet.
However, you are not allowed to reply to this post.