Confirmation dialogs

There are two different confirmation dialogs. The simplest dialog has the okCancel ID which, in addition to a question or a note, provides the two buttons Ok and Cancel. Cancel stops the execution of the complete command chain. With Ok the execution of the chain continues. The dialog with the yesNoCancel ID provides an additional button. In addition to the familiar Cancel it also provides the possibility to use Yes and No which both allow the execution of the command chain to be continued, but allow you to go two different ways in the subsequent commands of the chain, for example, in one case you can send a message and in the other you cannot.

In general, you can use several dialogs in a command chain however, all of the dialogs in a chain must have unique IDs. Information about how new dialogs are defined, for example, confirmation dialogs, in the event that you need several of them in a chain, can be found in the following.

Location

XML file in the xml folder

Procedure

  1. Extend the relevant command chain with an additional <command> element at the relevant point.
  2. Use the requestDialog ID.
  3. Add two subordinate <parameter> elements.
  4. The first element has the name attribute with the value dialogID and the value attribute with one of the two values okcancel or yesnocancel.
  5. The second element has the name attribute with the value propertyKey and the value attribute receives the property key that represents the question asked by the user as a value.

Remark

If you defined your own dialog, use its ID.

Documents

commandChains.xsd, commandChains_*.xml

Example

ModifyObjectLifecycle

\WEB-INF\config\custom\xml\testcase_catalog_custom.xml: Add custom dialog