Menus and toolbar access - SmartPlant Foundation - IM Update 48 - Help - Hexagon

SmartPlant Foundation Help

Language
English
Product
SmartPlant Foundation
Search by Category
Help
SmartPlant Foundation / SDx Version
10
SmartPlant Markup Plus Version
10.0 (2019)
Smart Review Version
2020 (15.0)

Methods are used to configure the commands available to the user. These are exposed through menus, shortcut menus, and toolbars. This section describes the model for configuring menus and toolbars.

ISPFGUIAccessControl interface

ISPFGUIAccessControl is used to link the stand-alone method to the graphical user interface (GUI) item. The GUI items are described in detail in Graphical User Interface (GUI) Model, and are summarized here:

GUI item

Definition

SPFMenuItem

Defines a menu command

SPFQFindItem

Defines an option in the quick find drop-down list

SPFToolbar

Defines a toolbar button

SPFDrillDownItem

Identifies a method run at start-up to retrieve objects into the tree view

This results in an almost identical model to the shortcut menu model. The owning group is related to the GUI item via the ISPFGUIAccessControl Interface in much the same way as they are to any other object. The filter by owning group flags on the method/access group relationship are honored in the same way.

If the filter by owning group flag is set and there is an owning group related to the GUI item, then that owning group must be in the set of owning groups on the user’s role for the user to have access to that GUI item.

ISPFGUIDisplay interface

All the GUI items use the SPFGUIDisplayAs string to define the menu text or toolbar button tool tip.

See Also

Shortcut menu method access