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
  • we have implemented this on several galaxies.

    The script you mention is correct : 

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

    but you need to point to an existing content. I can see that you don’t have a content called historicaltrendcontrol1. Make sure you have the top slide in pane configured.

    on which version are you trying the script ?

    i don’t understand why support keeps saying it’s not possible .. 

  • Hi Loris,

    Thanks for jumping in to this discussion.

    I did try this using 2023 R2 P01, i used a script contained in the layout and thanks to autocomplete, I'm sure I'm referring to an existing object that is contained in my slide in pane.

    So in my case I must be missing something.

    I do know that the script executes and I do not capture any exceptions. 

    Is it possible for you to share the code you use, or any other things that could be the reason for my environment to deviate from your working solution. 

  • Hi Richard,

    i remember my colleague had issue with the latest versions of SP and he told me he had to simply take off the mycontent.historicaltend..part.

    I’ll ask tomorrow but I have tried the exact script on 2020r2sp1 version recently successfully.

    i keep you posted

Reply Children