0 votes
1.3k views
by (21.5k points)

1 Answer

0 votes
by (30.6k points)

The Alert control shows a Bootstrap-style message box (info / success / warning / danger) that can be dismissed - the standard way to give feedback in a coach without a modal dialog.

  • Configure: Color style (Info, Success, Warning, Danger = Bootstrap classes), Dismissible (close icon), Title and Text (or bind the text), Visibility (usually hidden until needed), and on newer toolkits an auto-hide delay after which it disappears.
  • Drive it from code:
// after a service call / validation
var alert = ${Msg};
alert.setColorStyle("D");                      // "I" info, "S" success, "W" warning, "D" danger
alert.setTitle("Cannot submit");
alert.setText("The credit limit is exceeded by 1,250.00");
alert.setVisible(true);                        // show; alert.setVisible(false) to hide, alert.show()/hide() on newer toolkits

// bound text: bind the Alert's text option to tw.local.message and set the variable in a client-side script

Compared with the Status Box (inline status of a section) and Modal Alert (blocking dialog) controls: Alert is non-blocking and sits in the page flow; use Modal Alert for confirmations that need a click, Status Box for per-section state, and a Modal Section for dialogs with content.

References

Related questions

0 votes
1 answer 902 views
0 votes
1 answer 1.3k views
0 votes
1 answer 724 views
0 votes
1 answer 1.1k views
0 votes
1 answer 853 views
0 votes
1 answer 711 views
0 votes
1 answer 1.5k views
0 votes
2 answers 3.1k views
0 votes
1 answer 2.4k views
0 votes
1 answer 653 views
+1 vote
1 answer 2.3k views
0 votes
1 answer 2.5k views
0 votes
1 answer 793 views

723 questions

807 answers

98 comments

4.9k users

Join BPM Community Discord Channel

Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
Created by Dosvak LLC
Our Youtube Channel
...