Information

  • PLANTA distinguishes hard-coded standard context menu commands like insert, display, edit, (un)mark and delete, the availability of which in the context menu is defined via customizing parameters and via individual context menu commands which can be created for individual data areas via customizing.

Standard Context Menu

Context Menu Command: Insert

Information

  • Define the following parameters for the data area that you want to receive this function in the module data area assignment level:
    • Create =
    • Output =
      • As a result, the Insert context menu entry is created for the corresponding data area. If the parameters have other values, no entry will be generated.
  • The context menu is composed of the Insert text constant and the data table name of the data area. Here, it is decisive which table the DDI stems from. You can modify this text by making an entry in the Context menu text data field.

Example

  • The DDI of a data area stems from DT461 Project.
  • The context menu for the corresponding area would be: Insert → Project.

Note

  • If you do not only want to insert but also create in this data area, you have to activate Create in addition.

Context Menu Command: Display


Note

  • The Display via right-click function is available for all data areas, unless the Never show parameter is activated.

Context Menu Command: Delete

  • The Delete function is deactivated in the context menu by default.
  • If the command is to be active in the context menu, activate the Delete checkbox for the corresponding data area. Here you have to make sure that the Delete module parameter under Other Module Parameters is activated as well (it is active by default when you create new modules).

Individual Context Menu

Information

Button for the context menu

Information

  • If the ContextMenuButtonActive parameter in the Client-Skin-Konfigurationsparameter is activated, the context menu can also be opened via the icon instead of right-clicking.
  • By default, the button is only displayed in modules with tabular view. Via customizing you can also have the button displayed in modules with alternative layout.
  • By default, the icon is displayed on the first field of the record.
  • If necessary, the icon can be configured via the data field configuration of a data field:
{
   "ContextMenuButton": {
      "Active": "true",
      "Symbol": "",
      "DefaultColor": "",
      "SpecialColor": "",
      "Width": "",
      "HorizontalAlignment": "",
      "VerticalAlignment": "" 
   }
}
CODE
ParametersDescription
Active

Defines whether the button is to be displayed for the context menu in data areas with actual customizing.

  • Possible values: true, false
Symbol

String which represents the code of a font awesome icon which is to be used as icon for the button.

DefaultColor

Value for the color of the button if there are no individual context menu commands

  • Possible values: RGB (0-255)
SpecialColor

Value for the color of the button if there are no individual context menu commands

  • Possible values: RGB (0-255)
Width

Width of the button in px

  • Possible values: Integer numbers
HorizontalAlignment

Horizontal alignment of the button

  • Possible values: Left, Center, Right
VerticalAlignment

Vertical alignment of the button

  • Possible values: Top, Center, Bottom

Notes

  • The client searches the data fields of a data area for settings for the context menu button: The first settings found are used and the remaining data fields are not checked.
  • In the Client-Skin-Konfigurationsparameter, color and symbol of the button can also be adjusted globally.