Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Global Pop-up Screen
PostPosted: Tue Sep 15, 2015 4:55 am 

Joined: Tue Sep 15, 2015 4:49 am
Posts: 2

Offline
Hi, I've created a popup screen to show an alert to the user.
Now I want to show this popup every time that a tag changes from 0 to 1, independently on which screen is activated.
I know this is possible because I've seen it on an application.
My question is how to make this?


 Profile  
 
 Post subject: Re: Global Pop-up Screen
PostPosted: Wed Sep 16, 2015 9:14 am 

Joined: Tue Sep 08, 2015 1:32 pm
Posts: 15

Offline
Add an event handler to the tag and use scripting in the event handler to show the pop-up screen:

IScreen screen = getScreen("requiredPageName");
if(screen != null)
{
screen.Show();
}


public static IScreen getScreen(string pageName)
{
try
{
Type type = System.Type.GetType("Neo.ApplicationFramework.Generated." + pageName);
if (type != null)
{
return Globals.GetObject<IScreen>(type, pageName);
}
}
catch { }

return null;
}

I think this should work.


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: