Edit entity menu
Some tooltip text!
• 1 minute to read
• 1 minute to read
This element adds an entity menu to a screen. Entity menus contain items that allow you to edit an entity, create a new entity, merge the entity with others.
Configuration
Setting | Description |
---|---|
label | UI label |
entity | Entity |
entityMenu | Entity |
width | Width |
Entities:
- customer / person
- company / contact
- ticket
These must contain corresponding values for the default configuration of the menu to be added to a screen.
Example
entity = customer
entityMenu = customer
Functions
setFieldValue(String action, Map values)
You can add to the default configuration or create an entirely new menu by setting field values.
To create a new menu, exclude the simple values from the configuration.
Action | Map keys | Description |
---|---|---|
addMenu | label iconUrl url target appendId (true/false) |
|
addAnchor | label iconUrl url target appendId (true/false) |
|
addModificator | label field width options.length options.n.name options.n.value |
Note
appendId
(v.8.4R07) will append the ID of the current entity to the URL for the anchor or menu.
Example maps
Map m;
m.insert("label", "VG");
m.insert("iconUrl", "");
m.insert("url", "http://www.vg.no");
m.insert("target", "");
Map m3;
m3.insert("options.length", "2");
m3.insert("label", "Modificator");
m3.insert("field", "2");
m3.insert("options.0.name", "Option1");
m3.insert("options.0.value", "");
m3.insert("options.1.name", "Option2");
m3.insert("options.1.value", "");