Accessing dynamic URLs from the AEL in OMNIbus Web GUI - part 2
SteveHowell 2700029KG6 Comments (13) Visits (8709)
This blog entry follows on from my previous post in which I described how to update the URL displayed in a TIP Web Widget, based on details of a selected event in the AEL.
In my last post I explained how this could be done where the AEL and Web Widget are both located on the same page in TIP. Today I will outline the steps for achieving the same thing, but where the dynamic web page is shown on a new TIP tab.
The first step is to define the new TIP page which will be used to display the URL (in my example, this will show a page from an in-house inventory system). To do this, create a new page in TIP, add a Web Widget portlet to it, and save the page. After saving, you can view/edit the portlet and page settings as listed below:
Web widget settings:
The second step is to define a Web GUI script tool which can be run from the AEL in order to open a dynamic URL in our newly-defined page. In the Web GUI tool definition, use a Script Command of this format:
/* Form dynamic URL for inventory system, passing in the Node value from the selected event */
where the 'NavigationNode' value is the 'Page Unique Name' for our new Inventory system TIP page. Finally, add the tool to the AEL alerts menu.
Now, when we open an AEL, we can select an event of interest and run the new tool:
This results in a TIP launchPage event being broadcast, which causes TIP to open our new Inventory System page, or to swap to it if it is already open, and then refresh the contents of the Web Widget with the dynamic URL: