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
  • I got the following response from techsupport.

    There is no function available to open a Slide-in pane via script. There are already enhancement requests (CR#L00156117; CR#1892877 requesting this feature in older versions. It has not been implemented yet.

    You can use Showcontent() in layout scripting to show certain layout or graphic on a specific pane in runtime. If you set the content of the pane(and turn off autofill on the pane) to match the content of the graphic, the pane will be hidden until you trigger Showcontent. This will kinda mimic slide-in.

    Created enhancement CR-138857 (IMS#2279932) for this feature request in v2023. Please contact product.marketing@aveva.com in the future to find out the status of this request.

    ---

    Perhaps not the answer we are looking for, but at least we know there is no native function for this.

  • Thank you for updates and detailed information, I'm looking forward for this feature to be added!

    I just found out about keyboard shortcuts to activate slide-in panes: https://docs.aveva.com/bundle/sp-omi/page/309105.html

    I'm able to just use Alt + Shift + Arrow Key to activate a pane, which is intuitive enough for our operators! Thank you again :)

Reply Children
No Data