Plant SCADA TabStyle navigation menu bar highlight

Hello everyone,

I am currently working on a project in Plant SCADA using the TabStyle template. I’ve run into a synchronization issue with the navigation menu highlighting:

  • Current Behavior: When I navigate using the top Menu Bar, the selected button stays highlighted (dark), which is correct.

  • The Problem: If I change the page using a button located directly on a graphic page (e.g., a "Back" button or a custom link), the Navigation Bar does not update. The highlight remains on the previous menu item, leading to a mismatch between the current page and the selected tab.

Question: How can I force the TabStyle menu to refresh its state so that the highlighting matches the current page name? Is there a specific Cicode function I should call to synchronize the menu selection?

Environment:

  • Software: AVEVA Plant SCADA (Citect)

  • Project Template: TabStyle / TabStyle_Include

Thank you in advance for your help!

Best regards, AVEVA User

Parents
  • I haven't used these templates much, but being an include project, all the source code is visible for inspection. Tab_Style_Include. Open in Cicode Editor.

    It appears when a user clicks on the page buttons at the top that it calls the public function TabMenu_Button_select(buttonID) in tabmenu.ci. This function will trigger the button to display the target page and highlight the button. This function calls an internal function (to do the highlighting: _Tabmenu_PreSelectedItemSet.

    I would suggest that your buttons on your pages should call TabMenu_Button_Select(buttonID) and then everything should work automatically.

Reply
  • I haven't used these templates much, but being an include project, all the source code is visible for inspection. Tab_Style_Include. Open in Cicode Editor.

    It appears when a user clicks on the page buttons at the top that it calls the public function TabMenu_Button_select(buttonID) in tabmenu.ci. This function will trigger the button to display the target page and highlight the button. This function calls an internal function (to do the highlighting: _Tabmenu_PreSelectedItemSet.

    I would suggest that your buttons on your pages should call TabMenu_Button_Select(buttonID) and then everything should work automatically.

Children
No Data