User Tools

Site Tools


Plugin installed incorrectly. Rename plugin directory 'swiftmail.backup' to 'swiftmail'.
This translation is older than the original page and might be outdated. See what has changed.
en:software:tim:smartform:assign_user_by_button

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!
en/software/tim/smartform/assign_user_by_button.txt · Last modified: 2021/07/01 09:52 (external edit)