4.8. ERP toolbar and menu

[Note]Note

The visibility of ALL toolbars, buttons, menus and menu entries is controlled by the configuration files menustructure_PARTdataManager.cfg and menuvisibility_PARTdataManager.cfg. The complete description can be found under Section 1.7.8.2, “ Tweak menus, menu items, toolbars, buttons and context menu commands ”.

The configuration of ERP toolbar und menu is role dependent.

In the following the most important for the configuration of ERP toolbar with buttons and ERP menu with entries is explained.

At first you will find a short instruction and in the following a listing with all toolbar buttons and menu items together with the according tweak command.

  1. In the configuration file menustructure_PARTdataManager.cfg, ERP toolbar and menus are already specified with the following commands:

    • LinkDatabase

      "ERP" toolbar

      "ERP" toolbar

      "Sap" toolbar

      "Sap" toolbar

    • ErpMenu

      ERP menu

      ERP menu

    Excerpt from $CADENAS_SETUP/menustructure_PARTdataManager.cfg

    [Tweakmenu]
    
    toolbarOrderTop=Standard,Assembly,Details,Export,\n,Views,LinkDatabase,Addsap,
     Classification,IndexTree
    toolbarOrderRight=
    toolbarOrderLeft=
    toolbarOrderBottom=
    
    #Toolbars
    ...
    LinkDatabaseToolbar=MainWindow/LinkDatabase
    LinkDataBaseToolbarTitle=Link database
    LinkDatabaseToolbarContent=LinkDbLogin,LinkDbChangeGroup,CallLinkMgr,LinkDbSendMail,
     LinkDbAddToDb,LinkDbClassify,LinkDbShowLegend,PreferredRanges,erp_psol_mm_vars,
     show_dbdata,SORTTABLE,erp_dbedit,DisplayMatButton,ChangeMatButton,SearchMatButton,
     erp_sap_showdis
    LinkDatabaseToolbarButtonStyle=
    
    AddSapToolbar=MainWindow/Addsap
    AddSapToolbarTitle=Sap
    AddSapToolbarContent=sap
    AddSapToolbarButtonStyle=
    
    #Menus
    ...
    ErpMenuName=ErpMenu
    ErpMenuTitle=ERP
    ErpMenuContent=LinkDbLogin,LinkDbChangeGroup,CallLinkMgr,LinkDbBackToMgr,
     LinkDbCancelBackToMgr,LinkDbSendMail,LinkDbAddToDb,LinkDbClassify,LinkDbShowLegend,
     PreferredRanges,erp_psol_mm_vars,show_dbdata,SORTTABLE,erp_dbedit,DisplayMatButton,
     ChangeMatButton,SearchMatButton,erp_sap_showdis

    Using LinkDatabaseToolbarContent (and AddSapToolbarContent) and ErpMenuContent you can specify which elements should be principally available, independently of the role-specific visibility.

  2. Create roles and types of roles

    In the configuration file menuvisibility_PARTdataManager.cfg you can specify all needed roles and types of roles, meaning what is to be displayed in PARTdataManager at which role.

    Excerpt from $CADENAS_SETUP/menuvisibility_PARTdataManager.cfg

    [ROLES]
    LOC1=TYP_B
    LOC2=TYP_C
    LOC3=TYP_A
    ECAT1=TYP_A
    ECAT2=TYP_A
    ECAT3=TYP_A
    ECAT4=TYP_A
    ECAT5=TYP_A
    ECAT6=TYP_A

    Configure the needed roles and types following the above schema. May be there are 20 different roles, but only 3 different types of roles.

  3. Assign single commands to role types

    Now specify the desired GUI elements for each role type. See following example. The ERP elements are highlighted in red.

    Excerpt from menuvisibility_PARTdataManager.cfg

    [TYP_A]
    LayoutResetDefault=true
    ViewPart=true
    View2D=true
    ...
    ...
    LinkDbLogin=true
    LinkDbChangeGroup=true
    LinkDbBackToMgr=true
    LinkDbCancelBackToMgr=true
    LinkDbSendMail=true
    LinkDbAddToDb=true
    LinkDbShowLegend=true
    
    [TYP_B]
    LayoutResetDefault=true
    ViewIndextree=true
    ViewPart=true
    View2D=true
    ...
    ...
    LinkDbLogin=true
    LinkDbChangeGroup=true
    LinkDbBackToMgr=true
    LinkDbCancelBackToMgr=true
    LinkDbSendMail=true
    LinkDbAddToDb=true
    LinkDbShowLegend=true
    
    [TYP_C]
    LayoutResetDefault=true
    ViewIndextree=true
    ViewPart=true
    View2D=true
    ...
    ...
    LinkDbLogin=true
    LinkDbChangeGroup=true
    LinkDbBackToMgr=true
    LinkDbCancelBackToMgr=true
    LinkDbSendMail=true
    LinkDbAddToDb=true
    LinkDbShowLegend=true
    

The following listing shows tooltip, tweak command and function for each button or menu entry.[67]

SAP functionality

 

Tooltip

Tweak command

Function

 erp_sap_showdisCreate material

 ChangeMatButtonChange material

 DisplayMatButtonDisplay material

 SearchMatButtonSearch material


[67] The commands for buttons and menu entries are the same.

[68] Settings under COLORCONDITIONTREE or Status colors for catalog index override and possibly result in a multicolored index tree (see Section 4.7.3.3.2, “ Status colors for catalog index - plinkgroups.cfg -> Block [Role_name] -> Key "COLORCONDITIONTREE<number>" ”).

If the option under PARTlinkManager -> Extras menu -> Configure ERP environment -> Assign linked parts in the parts selection is deactivated the index tree is displayed plain-colored.