Hi
I would like to change the Page Titel, depending on the actual active Page.
For this, I created an “session event” to first of all detect the change Page (currentPageId has changed).
-
I added a method to get the acutal PageId
-
I’ve added an widget action to change the TextOutput value, and therefore change the titel on the page
-
my intention was to use the ID of the actual page, which I get from the method, to create a dynamic text assignment of a text from the textlist to the textoutput widget
-
Is it possible to make the “value” in the widget action dynamic with the Operand PageID I get from the method?
Hi Stefan,
you could use an IndexText snippet for this use case.
See example in help:
IndexText Snippet mit Binding einer OPC UA Variable
Instead of binding a OPC UA variable you can bind SystemVar to Snippet
<Binding mode="oneWay">
<Source xsi:type="session" refId="::SYSTEM:clientInfo.currentPageId" attribute="value" />
<Target xsi:type="snippet" refId="IndexTextSnippet" attribute="value" />
</Binding>
Value of snippet you can bind to widget:
<Binding mode="oneWay">
<Source xsi:type="snippet" refId="IndexTextSnippet" attribute="value" />
<Target xsi:type="brease" widgetRefId="toPageId" contentRefId="Content1" attribute="value" />
</Binding
Sincerly Simon 
Perfect! This is exactly what I needed. Even more simple then my idea….
thanks very much
2 Likes