Embedded Panel messages are messages displayed on panel level are the panel level. You can add, remove messages to any panel level object(forms, grids, scheduler, treegrids...) from CLAPI.
Panel messages are available since version 20.04 of the SWAT framework.
You can add, remove messages (of type info, error, warning and success) to forms, grids and treegrids from CLAPI.Standard types of messages
Type | Color |
---|---|
success | green |
information | blue |
warning | orange |
error | red |
Info | ||
---|---|---|
| ||
There is no default type. A message with no type would not be displayed. |
Code Block | ||||
---|---|---|---|---|
| ||||
var offer_largebGrid = akioma.root.dynObject.getObject('offer_largeb').controller; // add messages offer_largebGrid.parent.addPanelMessage({text: 'Deprecated', type: 'warning'}) offer_largebGrid.parent.addPanelMessage({text: 'There was an <u>error</u>', type: 'error'}) offer_largebGrid.parent.addPanelMessage({text: 'There was a tester', type: 'error'}) // remove one message by index offer_largebGrid.parent.removePanelMessage(1); // clear all messages offer_largebGrid.parent.clearPanelMessages(); |
...