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.
Open popups in different UIs
Search
-
- Posts: 373
- Joined: Tue Jan 15, 2019 3:12 pm
Re: Open popups in different UIs
Since only a single UI needs this periodical trigger I would use a thread.
Re: Open popups in different UIs
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
-- 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
Hello,
Thanks to both for your responses. I have tried Leoknipp solution and it suits perfect for my needs. Thank you very much
Thanks to both for your responses. I have tried Leoknipp solution and it suits perfect for my needs. Thank you very much
