UA Bundle SDK .NET
2.5.1.380
|
A session with the server must be established.
The following dialog shows a dialog window which demonstrates an implementation of the Translate Browse Paths operation. Press the button “Show Code” to display the corresponding code, and the button “Help” to show this documentation page.
Enter a Node ID into the input field “Node ID” or press the button “...” to open a browse window and select a node.
It is possible to list two browse paths starting at the node specified above by entering their browse names into the fields “Path to Translate 1” and “Path to Translate 2”. After pressing the button “Translate” the corresponding NodeIDs are displayed at “Translate Response”. Check the box in front of “Use Asynchronous Pattern” to call “BeginTranslate” instead of “Translate”.
The following code finds the Nodes at the end of a browse path, starting at a specified node.
The starting NodeId is parsed from a string specified in the GUI. The TranslateBrowsePaths method is taking a list of BrowsePaths as argument. The GUI contains only a text field. The format of the string is shown the screen shot.
We use a helper function to create a BrowsePath from this string.