Global Pop-up Screen

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
ricardo_jpm
Posts: 2
Joined: Tue Sep 15, 2015 4:49 am

Global Pop-up Screen

Post by ricardo_jpm »

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?

Greg M
Posts: 16
Joined: Tue Sep 08, 2015 1:32 pm

Re: Global Pop-up Screen

Post by Greg M »

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.

Post Reply