Skip to main content
InSource Solutions

TN - 1208 Adding Query to an OMI application

Description

 

This article from InSource shows how to add Historian Client Query to an OMI application. While this has been technically possible since the 2017 version of the product , starting with 2020 you no longer need Visual Studio to accomplish this.  Windows Forms (WinForms) and Windows Presentation Foundation (WPF) .NET controls can now be imported as OMI Apps (WPF User Control Libraries) into a Galaxy through the System Platform IDE.

 

Things to note:

  • To qualify for import as an OMI App, the App should contain at least one WPF FrameworkElement Class control (System.Windows.FrameworkElement).
  • Before importing .NET control(s), the assembly file (.dll) and all other dependency files should be organized in a single folder, which can optionally include subfolders.
  • Everything in the folder will be imported as part of the new OMI App. 

 

  • Author: Mario Meza
  • Published: 12/21/2021
  • Applies to: Application Server 2020 and above

Details

In Windows file explorer, navigate to C:\Program Files (x86)\Common Files\ArchestrA

Locate the aaHistClientQueryControl.dll and copy it. 

clipboard_ea5041b5f5ce066126e3113155bf96fb5.png

 

Create a new folder named whatever you want the resulting App to be named in Application Server. In this instance the directory is called QueryApp.

clipboard_ede04b96245c2e512b7ba069e74c8deba.png

 

Paste the aaHistClientQueryControl.dll in the QueryApp folder.

clipboard_e2648342affbf39cf9b0686a99f203d51.png

In the IDE from the file menu select

Galaxy > Import > ArchestrA Apps...

clipboard_eae6e0aebc722257d033072aa46b0b441.png

Browse to the location of the QueryApp directory containing the aaHistClientQueryControl.dll . Once selected click OK.

clipboard_e5bb92f692b8781604c913ce8ede389d8.png

Wait for the import to complete.

clipboard_e50c9026e0e15f4e0e585222cc20c126a.png

Once complete you should see an OMI App in the Graphic Toolbox with 001 appended to the name of the imported directory. 

In the example my app is called QuerryApp001.

clipboard_e3f7be93f5af97ae1325abd54d242a168.png

Open your OMI View App and locate QueryApp001 in the Toolbox.

clipboard_e6bdf58b2125671b3175dff3a54d66af2.png

 

Drag the aaQueryControl to an empty pane in your layout, in this example Pane3. Once the app is placed select Preview.

 

clipboard_eda234ffb11c75c49a839534d44d82d44.png

You can now access Query from your OMI Application.

clipboard_e797082c1a0d873a329b4a117fd0b5f66.png

  • Was this article helpful?