This page is not fully translated, yet. Please help completing the translation.
(remove this paragraph once the translation is finished)

Assign user via button in the smartform

To assign a user from a swimlane via a button the following code is needed:

<button type="button" id="REPLACE_ME" name="REPLACE_ME" initMethod="assignUserByButton" class="user(USERNAME),swimlane(SWIMLANE)">AssignButton</button>

Via a click the user that is given in the classname is assigned to the swimlane that is given in the classname. During the assigning process the button is disabled and is lettered “Please wait...” by default. When the assigning process is finished, the button is enabled again and lettered with the original text.

It is possible to overwrite the “Please wait...” lettering. Therefor the required message must be given to.

<button type="button" id="REPLACE_ME" name="REPLACE_ME" initMethod="assignUserByButton" class="user(USERNAME),swimlane(SWIMLANE),message(MESSAGE)">AssignButton</button>

Of course other classes can be given too. This can look like the example:

<button type="button" id="REPLACE_ME" name="REPLACE_ME" initMethod="assignUserByButton" class="user(USERNAME),swimlane(SWIMLANE),message(MESSAGE) OTHER_CLASSES">AssignButton</button>

The order in which user, swimlane and message are given can be any!