Page tree

Versions Compared

Key

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

The Backend has the opportunity to trigger UI-Messages, which are created/triggered in the backend as part of the Businesslogic, but are displayed in the UI. This allows easier migration of old logic, where data access and UI were not separated.

There are 2 basic types: Messages and Questions.

...

Typical methods that contain code for creating ui-messages:

  • Validate

 

Overview

Typevisualizationj Sub-typesTransaction update behaviourUI behaviourVisualisation Modal/Non-ModalSample backend code
QuestionQuestionsInfo / warning / error (?)Cancelwhile questions pending it will always undo, when all questions answered it depends on answers and/or the business-logicShow question, after user clicks button, re-perform backend call, unless user pressed cancelM 
(Messages)     
Information- Info-MessageInfo / warningCommitShow messageM (?) / N 

- Validation-Message

Info / warning / errorCancelundoShow validation messageM / N 
- Runtime-Errorerrorundoshow error message, in a promise (e.g. BusinessTask) the FAIL path will be executedM / N