Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Panel messages are messages displayed on 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.


Standard types of messages

TypeColor
successgreen
informationblue
warningorange
errorred

Note

 There is no default type. A message with no type would not be displayed.

 



Example for Grid Control
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();
Example for Treegrid Control
var otreee = akioma.root.dynObject.getObject('itTree').controller;
otreee.parent.addPanelMessage({ text: 'Info message', type:'info' })
Example for a Form Control
var OfferHeaderData = akioma.root.dynObject.getObject('OfferHeaderData').controller;
// add messages
OfferHeaderData.parent.addPanelMessage({text: 'Deprecated', type: 'warning'})
OfferHeaderData.parent.addPanelMessage({text: 'There was an error', type: 'error'})
OfferHeaderData.parent.addPanelMessage({text: 'There was a tester', type: 'error'})
// remove one message by index
OfferHeaderData.parent.removePanelMessage(1);
// clear all messages
OfferHeaderData.parent.clearPanelMessages()
  • No labels