Support Forums
ShowPage function

Hi!
Im trying to show popup window on internal tag change from false to true, but it doesnt work.. I write in source code this code (this code in Main [..]):

If [test_bool_tag]==true;
[
  \DisplayManager\ShowPage("test_page");
]

Maybe I'm doing something wrong or other better ways to do this?

Hi! Im trying to show popup window on internal tag change from false to true, but it doesnt work.. I write in source code this code (this code in Main [..]): ```` If [test_bool_tag]==true; [ \DisplayManager\ShowPage("test_page"); ] ```` Maybe I'm doing something wrong or other better ways to do this?

I tend to use something like the below, the help files will show you the Edge function. I use the tags unique ID, and a timeout to avoid any pulse changes (if desired..).

I have this on a page .SRC so that the popup only occurs whe the user is on a certain page.

If Edge(TimeOut(Scope(\VTSDB, "ai98m.t!gn\05vod$kkj1", TRUE)\Value,2),1)  ;
[
        \DisplayManager\ShowPage("Reports1");
]

Make sure the called page is configured as a pop-up. Also assuming you are importing changes to the application etc.

I tend to use something like the below, the help files will show you the Edge function. I use the tags unique ID, and a timeout to avoid any pulse changes (if desired..). I have this on a page .SRC so that the popup only occurs whe the user is on a certain page. ```` If Edge(TimeOut(Scope(\VTSDB, "ai98m.t!gn\05vod$kkj1", TRUE)\Value,2),1) ; [ \DisplayManager\ShowPage("Reports1"); ] ```` Make sure the called page is configured as a pop-up. Also assuming you are importing changes to the application etc.

TomE
thank you, its work! smile
How can I do that a window open only once? Now after close button the window popup again open.
Now my "test_bool_tag" every time is true.

**TomE** thank you, its work! :) How can I do that a window open only once? Now after close button the window popup again open. Now my "test_bool_tag" every time is true.

The referenced tag is set to a 1 when I want to open the page, I then set it to 0 once the page is open, so the below goes onto the pop-up page .SRC: so you'll need to plan what triggers this tag etc.

If Scope(\VTSDB, "ai98m.t!gn\05vod$kkj1", TRUE)\Value <> 0;
[
        Scope(\VTSDB, "ai98m.t!gn\05vod$kkj1", TRUE).Set(0);
]
The referenced tag is set to a 1 when I want to open the page, I then set it to 0 once the page is open, so the below goes onto the pop-up page .SRC: so you&#039;ll need to plan what triggers this tag etc. ```` If Scope(\VTSDB, &quot;ai98m.t!gn\05vod$kkj1&quot;, TRUE)\Value &lt;&gt; 0; [ Scope(\VTSDB, &quot;ai98m.t!gn\05vod$kkj1&quot;, TRUE).Set(0); ] ````
113
3
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft