Open popups in different UIs

Find and share HowTos to various installations / configurations!
Search

Post Reply
4 posts • Page 1 of 1
AdrianSan
Posts: 13
Joined: Thu Aug 27, 2020 5:17 pm

Open popups in different UIs

Post by AdrianSan »

Good morning,

In the project I am working on, an Area has a dpe that is a list of "to-do" tasks. If a user owns the Area, a pop up should appear with a list of these tasks. If the user closes the panel without marking them as Done, the pop up should appear periodically (every 5 mins or so).

For these kind of things I always use "timedFunc", but the dpConnect is on the UI and we cannot use "timedFunc" on UI. I have been thinking on doing the dpConnect on a manager, but I need the popup to appear in the UI of the user who owns the Area.

I have been researching through the code, and I have seen a function named childPanel() but I don't know if it is a good idea. I also tried to dpSet all the "_Ui_x.ChildPanelOn.*" but it seems there could be a problem with permissions (I am not using root).

Any recommendations on this? Thanks in advance.

gschijndel
Posts: 373
Joined: Tue Jan 15, 2019 3:12 pm

Re: Open popups in different UIs

Post by gschijndel »

Since only a single UI needs this periodical trigger I would use a thread.

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: Open popups in different UIs

Post by leoknipp »

You can possibly use the following solution:
-- In a CTRL manager a timedFunc() is used
-- The work function for timedFunc() sets a specific DP element
-- The UI is connected to this DP element and starts a work function if the element is set
-- Within this work function you can do whatever is needed for the UI

Best Regards
Leopold Knipp
Senior Support Specialist

AdrianSan
Posts: 13
Joined: Thu Aug 27, 2020 5:17 pm

Re: Open popups in different UIs

Post by AdrianSan »

Hello,

Thanks to both for your responses. I have tried Leoknipp solution and it suits perfect for my needs. Thank you very much :)

Post Reply
4 posts • Page 1 of 1