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
  • +1 On this one!

    It is a very good question, I also have several projects where it would be an advantage to be able to show or hide the slide in panel using scripting and I have not been able to resolve this.

    And also, (I don't want to hijack this thread) but still I'm looking for a way to close the slide in navigation pane when you click on a navigation item, as of now I have to click outside the slide in panel to remove it. Perhaps there is an easy fix, but I must admit my limitations on the possibilities here.

      I know you were asking for similar things in multiple projects?

Reply
  • +1 On this one!

    It is a very good question, I also have several projects where it would be an advantage to be able to show or hide the slide in panel using scripting and I have not been able to resolve this.

    And also, (I don't want to hijack this thread) but still I'm looking for a way to close the slide in navigation pane when you click on a navigation item, as of now I have to click outside the slide in panel to remove it. Perhaps there is an easy fix, but I must admit my limitations on the possibilities here.

      I know you were asking for similar things in multiple projects?

Children