Page 1 of 1

Open popups in different UIs

Posted: Wed Mar 30, 2022 12:21 pm
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.

Re: Open popups in different UIs

Posted: Thu Mar 31, 2022 9:55 am
by gschijndel
Since only a single UI needs this periodical trigger I would use a thread.

Re: Open popups in different UIs

Posted: Mon Apr 04, 2022 5:03 pm
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

Re: Open popups in different UIs

Posted: Wed Apr 06, 2022 11:35 am
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 :)