

'Declaration<CLSCompliantAttribute(False)> <ComVisibleAttribute(True)> <GuidAttribute("7A206458-84DE-4066-ABD3-41016B63C32A")> <InterfaceTypeAttribute(ComInterfaceType.InterfaceIsDual)> Public Interface _UABrowseDialog
'UsageDim instance As _UABrowseDialog
[CLSCompliant(false)] [ComVisible(true)] [Guid("7A206458-84DE-4066-ABD3-41016B63C32A")] [InterfaceType(ComInterfaceType.InterfaceIsDual)] public interface _UABrowseDialog
[CLSCompliant(false)] [ComVisible(true)] [Guid("7A206458-84DE-4066-ABD3-41016B63C32A")] [InterfaceType(ComInterfaceType.InterfaceIsDual)] public interface class _UABrowseDialog
This member or type is for use from COM. It is not meant to be used from .NET or Python. Refer to the corresponding .NET member or type instead, if you are developing in .NET or Python.
// This example shows how to let the user browse for an OPC-UA node. // // Find all latest examples here: https://www.doc-that.com/files/onlinedocs/OPCLabs-ConnectivityStudio/Latest/examples.html . // Missing some example? Ask us for it on our Online Forums, https://forum.opclabs.com/forum/index ! You do not have to own // a commercial license in order to use Online Forums, and we reply to every post. #include "stdafx.h" // Includes "QuickOpc.h", and other commonly used files #include "ShowDialog.h" namespace _UABrowseDialog { void ShowDialog::Main() { // Initialize the COM library CoInitializeEx(NULL, COINIT_MULTITHREADED); { // _UABrowseDialogPtr BrowseDialogPtr(__uuidof(UABrowseDialog)); // BrowseDialogPtr->InputsOutputs->CurrentNodeDescriptor->EndpointDescriptor->Host = L"opcua.demo-this.com"; BrowseDialogPtr->Mode->AnchorElementType = UAElementType_Host; // DialogResult dialogResult = BrowseDialogPtr->ShowDialog(NULL); _tprintf(_T("%d\n"), dialogResult); if (dialogResult == 1/*OK*/) { // Display results _tprintf(_T("%s\n"), (LPCTSTR)CW2CT(BrowseDialogPtr->Outputs->CurrentNodeElement->NodeElement->ToString)); } } // Release all interface pointers BEFORE calling CoUninitialize() CoUninitialize(); } }
// This example shows how to let the user browse for an OPC-UA node. // // Find all latest examples here: https://www.doc-that.com/files/onlinedocs/OPCLabs-ConnectivityStudio/Latest/examples.html . // OPC client and subscriber examples in Object Pascal (Delphi) on GitHub: https://github.com/OPCLabs/Examples-ConnectivityStudio-OP . // Missing some example? Ask us for it on our Online Forums, https://forum.opclabs.com/forum/index ! You do not have to own // a commercial license in order to use Online Forums, and we reply to every post. class procedure ShowDialog.Main; var BrowseDialog: OpcLabs_EasyOpcForms_TLB._UABrowseDialog; DialogResult: System_Windows_Forms_TLB.DialogResult; begin // Instantiate the dialog object BrowseDialog := CoUABrowseDialog.Create; BrowseDialog.InputsOutputs.CurrentNodeDescriptor.EndpointDescriptor.Host := 'opcua.demo-this.com'; BrowseDialog.Mode.AnchorElementType := UAElementType_Host; DialogResult := BrowseDialog.ShowDialog(nil); WriteLn(DialogResult); if DialogResult <> DialogResult_OK then Exit; // Display results WriteLn(BrowseDialog.Outputs.CurrentNodeElement.NodeElement.ToString); end;
// This example shows how to let the user browse for an OPC-UA node. // // Find all latest examples here: https://www.doc-that.com/files/onlinedocs/OPCLabs-ConnectivityStudio/Latest/examples.html . // OPC client and subscriber examples in PHP on GitHub: https://github.com/OPCLabs/Examples-ConnectivityStudio-PHP . // Missing some example? Ask us for it on our Online Forums, https://forum.opclabs.com/forum/index ! You do not have to own // a commercial license in order to use Online Forums, and we reply to every post. $UAElementType_Host = 1; $BrowseDialog = new COM("OpcLabs.EasyOpc.UA.Forms.Browsing.UABrowseDialog"); $BrowseDialog->InputsOutputs->CurrentNodeDescriptor->EndpointDescriptor->Host = "opcua.demo-this.com"; $BrowseDialog->Mode->AnchorElementType = $UAElementType_Host; printf("%d\n", $BrowseDialog->ShowDialog); // Display results printf("%s\n", $BrowseDialog->Outputs->CurrentNodeElement->NodeElement);
# This example shows how to let the user browse for an OPC-UA node. # # The Python for Windows (pywin32) extensions package is needed. Install it using "pip install pypiwin32". # CAUTION: We now recommend using Python.NET package instead. Full set of examples with Python.NET is available! # # Find all latest examples here: https://www.doc-that.com/files/onlinedocs/OPCLabs-ConnectivityStudio/Latest/examples.html . import win32com.client UAElementType_Host = 1 browseDialog = win32com.client.Dispatch('OpcLabs.EasyOpc.UA.Forms.Browsing.Specialized.UABrowseDialog') browseDialog.InputsOutputs.CurrentNodeDescriptor.EndpointDescriptor.Host = "opcua.demo-this.com" browseDialog.Mode.AnchorElementType = UAElementType_Host print(browseDialog.ShowDialog()) # Display results print(browseDialog.Outputs.CurrentNodeElement.NodeElement)
REM This example shows how to let the user browse for an OPC-UA node. REM REM Find all latest examples here: https://www.doc-that.com/files/onlinedocs/OPCLabs-ConnectivityStudio/Latest/examples.html . REM OPC client and subscriber examples in Visual Basic on GitHub: https://github.com/OPCLabs/Examples-ConnectivityStudio-VB . REM Missing some example? Ask us for it on our Online Forums, https://forum.opclabs.com/forum/index ! You do not have to own REM a commercial license in order to use Online Forums, and we reply to every post. Private Sub ShowDialog_Main_Command_Click() OutputText = "" Dim BrowseDialog As New UABrowseDialog BrowseDialog.InputsOutputs.CurrentNodeDescriptor.endpointDescriptor.Host = "opcua.demo-this.com" Dim DialogResult DialogResult = BrowseDialog.ShowDialog OutputText = OutputText & DialogResult & vbCrLf If DialogResult <> 1 Then ' OK Exit Sub End If ' Display results OutputText = OutputText & BrowseDialog.outputs.CurrentNodeElement.NodeElement & vbCrLf End Sub
Rem This example shows how to let the user browse for an OPC-UA node. Rem Rem Find all latest examples here: https://www.doc-that.com/files/onlinedocs/OPCLabs-ConnectivityStudio/Latest/examples.html . Rem OPC client and subscriber examples in VBScript on GitHub: https://github.com/OPCLabs/Examples-ConnectivityStudio-VBScript . Rem Missing some example? Ask us for it on our Online Forums, https://forum.opclabs.com/forum/index ! You do not have to own Rem a commercial license in order to use Online Forums, and we reply to every post. Option Explicit Const DialogResult_OK = 1 Const UAElementType_Host = 1 Dim BrowseDialog: Set BrowseDialog = CreateObject("OpcLabs.EasyOpc.UA.Forms.Browsing.UABrowseDialog") BrowseDialog.InputsOutputs.CurrentNodeDescriptor.EndpointDescriptor.Host = "opcua.demo-this.com" BrowseDialog.Mode.AnchorElementType = UAElementType_Host Dim dialogResult: dialogResult = BrowseDialog.ShowDialog WScript.Echo dialogResult If dialogResult <> DialogResult_OK Then WScript.Quit End If ' Display results WScript.Echo BrowseDialog.Outputs.CurrentNodeElement.NodeElement
Rem This example shows use the output data (node) from one dialog invocation as input data in a subsequent dialog Rem invocation. Rem Rem Find all latest examples here: https://www.doc-that.com/files/onlinedocs/OPCLabs-ConnectivityStudio/Latest/examples.html . Rem OPC client and subscriber examples in VBScript on GitHub: https://github.com/OPCLabs/Examples-ConnectivityStudio-VBScript . Rem Missing some example? Ask us for it on our Online Forums, https://forum.opclabs.com/forum/index ! You do not have to own Rem a commercial license in order to use Online Forums, and we reply to every post. Option Explicit Const DialogResult_OK = 1 ' Define the starting node for the first dialog. Dim BrowseNodeDescriptor0: Set BrowseNodeDescriptor0 = CreateObject("OpcLabs.EasyOpc.UA.Forms.Browsing.UABrowseNodeDescriptor") BrowseNodeDescriptor0.EndpointDescriptor.UrlString = "opc.tcp://opcua.demo-this.com:51210/UA/SampleServer" 'BrowseNodeDescriptor0.NodeDescriptor.NodeId.StandardName = "Objects" ' Set the starting node of the first dialog, show the first dialog, and let the user select a first node. Dim BrowseDialog1: Set BrowseDialog1 = CreateObject("OpcLabs.EasyOpc.UA.Forms.Browsing.UABrowseDialog") Set BrowseDialog1.InputsOutputs.CurrentNodeDescriptor = BrowseNodeDescriptor0 Dim dialogResult1: dialogResult1 = BrowseDialog1.ShowDialog If dialogResult1 <> DialogResult_OK Then WScript.Quit End If Dim BrowseNodeDescriptor1: Set BrowseNodeDescriptor1 = BrowseDialog1.InputsOutputs.CurrentNodeDescriptor ' Display the first node chosen. WScript.Echo WScript.Echo BrowseNodeDescriptor1.NodeDescriptor.NodeId WScript.Echo BrowseNodeDescriptor1.NodeDescriptor.BrowsePath ' Set the starting node of the second dialog to be the node chosen by the user before, show the second dialog, and let the ' use select a second node. Dim BrowseDialog2: Set BrowseDialog2 = CreateObject("OpcLabs.EasyOpc.UA.Forms.Browsing.UABrowseDialog") Set BrowseDialog2.InputsOutputs.CurrentNodeDescriptor = BrowseNodeDescriptor1 Dim dialogResult2: dialogResult2 = BrowseDialog2.ShowDialog If dialogResult2 <> DialogResult_OK Then WScript.Quit End If Dim BrowseNodeDescriptor2: Set BrowseNodeDescriptor2 = BrowseDialog2.InputsOutputs.CurrentNodeDescriptor ' Display the second node chosen. WScript.Echo WScript.Echo BrowseNodeDescriptor2.NodeDescriptor.NodeId WScript.Echo BrowseNodeDescriptor2.NodeDescriptor.BrowsePath