SA_controls - treviewitem

Hi,

in the Citect help, there is mention of the treeviewitem to support navigation of pages.

"The Tree View Genie (named "treeview") can be used to display a menu structure on a page. For example, you can use it to:

  • Display an equipment hierarchy
  • Filter an alarm page
  • Navigate pages
  • Display alarm counts"

if that's the case, does anyone know how to set it up for page navigation? it needs to show the alarm levels too (no checkboxes required)

the datasource can be used to point to the navigation (but what is the menu item?) is it Navigation?

are we able to achieve the same functionality using the treeview as per the default PageNavigation_1TabRow_HD1080 ( sa dashboard?)

How should we configure the tree view genie ?

Parents
  • Hi,

    I extended the ExampleSA at some point to use the Equipment model for navigating.
    For the treeview, I set datasource to "__EquipmentModel" and unticked checkboxes, but display alarms.
    For the left click function I defined my own call "Nav_SetSelEquipment".

    Which is like this :

    FUNCTION Nav_SetSelEquipment(INT hTreeItem)
    STRING sEquipment = MenuNodeGetProperty(hTreeItem, MENU_PROP_Equipment);

    Debug_Trace("Treeview", " Nav_SetSelEquipment", "sEquipment = "+sEquipment, TRACE_Information);

    Workspace_SetSelContext(sEquipment,"");
    Workspace_SelectEquipment();

    END

    In my case the treeview was set in a static pane (on the left) and on the right there was a content pane with "AutofillContextMustMatch".
    As a result the workspace functionality will make sure the panes follow the equipment context set.

    Hope this helps.
Reply
  • Hi,

    I extended the ExampleSA at some point to use the Equipment model for navigating.
    For the treeview, I set datasource to "__EquipmentModel" and unticked checkboxes, but display alarms.
    For the left click function I defined my own call "Nav_SetSelEquipment".

    Which is like this :

    FUNCTION Nav_SetSelEquipment(INT hTreeItem)
    STRING sEquipment = MenuNodeGetProperty(hTreeItem, MENU_PROP_Equipment);

    Debug_Trace("Treeview", " Nav_SetSelEquipment", "sEquipment = "+sEquipment, TRACE_Information);

    Workspace_SetSelContext(sEquipment,"");
    Workspace_SelectEquipment();

    END

    In my case the treeview was set in a static pane (on the left) and on the right there was a content pane with "AutofillContextMustMatch".
    As a result the workspace functionality will make sure the panes follow the equipment context set.

    Hope this helps.
Children
No Data