How to activate a slide-in pane using script (OMI Toolkit)?

Hello Heroes,

I am trying to open a slide in pane containing Historian Client using a script in my ViewApp, not the Hamburger-button.

I have a bit that i set to "True" with a toggle button, then I have a "While True" script running when the bit is true.

I have tried running this;

ArchestrA.Client.ViewApp.ViewApplication.Application.ActivateSlideInPane(MyContent.HistoricalTrendControl1,ArchestrA.Client.ViewApp.SlideInPanePosition.Top);

I get no errors, and nothing in logs when i press the button. But the slide-in pane does not active/slide in. Any help available?

The documentation of the toolkit says to use an reference to a control object and position of slide in pane as parameters in the function call:

Parents Reply Children
  • The SDK assemblies are installed with OMI so they are always there is the same location.

    However, when importing it into the galaxy there is a risk that a copy of the assembly will be carried with the galaxy onwards since script library import tends to embedd copies rather than making a loose binding to the assembly location. This means that when upgrading to newer versions, patches, applicable hotfixes, you may need to re-import the assembly again from the standard location.

    An alternative would be to use the SDK to build an OMI App that exposes methods for controlling the slide-in panes. Such apps, assuming dependencies are linked correctly, will not carry their own copy of the assemblies. The app can be made completely invisible, it just needs a home in a pane somewhere. This worked pretty for the demos I built in my previous job.

  • Thanks Rickard for your insights !

    it make sense