Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

Code Block
titleExample of panel message on form, type info
akioma.swat.form.addPanelMessage({
    text: 'An info message',
    type: 'info'
})


Code Block
titleExample on form with handlebars template, type error
akioma.swat.form.addPanelMessage({
    text: '{{selfno}} is not unique. Try again',
    type: 'error'
})
Code Block
titleExample on form, delete panel message with id = 0
akioma.swat.form.removePanelMessage(0)
Code Block
titleExample for form, clear all panel messages
akioma.swat.form.clearPanelMessage()
Code Block
titleExample on grid with handlebars, type warning
akioma.swat.grid.addPanelMessage({
    text: 'Currency is {{currencydesc}}',
    type: 'warning'
})
Code Block
titleExample on grid with handlebars, type success
akioma.swat.grid.addPanelMessage({
    text: 'Customer is set to {{customerdesc}}',
    type: 'success'
})
??
Code Block
titleExample on window, type success
akioma.swat.window.addWindowMessage({
    text: 'An window message',
    type: 'success'
})
Code Block
titleExample on window, type warning
akioma.swat.window.addWindowMessage({
    text: 'Something went wrong',
    type: 'warning'
})
Code Block
titleExample on window, clear all messages
akioma.swat.window.clearWindowMessage()
Code Block
titleExample on dataview, type info
akioma.swat.dataview.addPanelMessage({
    text: 'Info message',
    type: 'info'
})