4.8. ERP toolbar and menu

[Note]Note

The visibility of ALL toolbars, buttons, menus and menu items is controlled via the configuration files menustructure_PARTdataManager.cfg and menuvisibility_PARTdataManager.cfg configuration files. 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 and 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 configuration file, the ERP toolbar and menu are already declared 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 decide which elements should always be available, regardless of the role-specific visibility.

  2. Create roles and types of roles

    In the configuration file menuvisibility_PARTdataManager.cfg you define all the required roles and types of roles, i.e. what should be displayed for which role in PARTdataManager.

    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 individual 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.[73]

SAP functionality

 

Tooltip

Tweak command

Function

 erp_sap_showdisCreate material

 ChangeMatButtonChange material

 DisplayMatButtonDisplay material

 SearchMatButtonSearch material


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

[74] Settings under COLORCONDITIONTREE or status colors for [Status colors for catalog index] catalog index overwrite and possibly lead to a multi-colored index tree (see Section 4.7.4.3.2, “ Status colors for catalog index - plinkgroups.cfg -> Block [role name] -> Key "COLORCONDITIONTREE<number>" ”).

Is the option under PARTlinkManager -> Extras menu [Extras] -> Configure ERP environment -> Mark [Assign linked parts in the parts selection] linked parts in the parts selection is deactivated, the catalog index is displayed in one color.