This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:software:tim:smartform:assign_user_by_button [2018/01/25 14:00] Julian Le created |
en:software:tim:smartform:assign_user_by_button [2021/07/01 09:52] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | FIXME **This page is not fully translated, yet. Please help completing the translation.** \\ | + | === Assign user via button in the smartform === |
- | //(remove this paragraph once the translation is finished)// | + | |
- | === User per Button in Smartform zuweisen === | + | |
- | == Um einen bestimmten Benutzer einer Swimlane per Button zu zuweisen benötigt man folgenden Code: == | + | == To assign a user from a swimlane via a button the following code is needed: == |
<code> | <code> | ||
- | <button type="button" id="ERSETZ_MICH" name="ERSETZ_MICH" initMethod="assignUserByButton" class="user(USERNAME),swimlane(SWIMLANE)">Zuweisungsbutton</button> | + | <button type="button" id="REPLACE_ME" name="REPLACE_ME" initMethod="assignUserByButton" class="user(USERNAME),swimlane(SWIMLANE)">AssignButton</button> |
</code> | </code> | ||
- | Per Klick auf den Button wird der im Klassennamen angegebene User, der im Klassennamen angegebenen Swimlane zugewiesen. Während des Zuweisungsvorgangs wird der Button gesperrt und standardmäßig mit "Bitte warten…" beschriftet. Ist die Zuweisung abgeschlossen, wird der Button wieder freigegeben und mit dem ursprünglichen Text beschriftet. | + | 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. |
- | Es ist möglich diese "Bitte warten…" Beschriftung zu überschreiben. Hierfür muss dem Button die gewünschte Nachricht mitgegeben werden. | + | It is possible to overwrite the "Please wait..." lettering. Therefor the required message must be given to. |
<code> | <code> | ||
- | <button type="button" id="ERSETZ_MICH" name="ERSETZ_MICH" initMethod="assignUserByButton" class="user(USERNAME),swimlane(SWIMLANE),message(NACHRICHT)">Zuweisungsbutton</button> | + | <button type="button" id="REPLACE_ME" name="REPLACE_ME" initMethod="assignUserByButton" class="user(USERNAME),swimlane(SWIMLANE),message(MESSAGE)">AssignButton</button> |
</code> | </code> | ||
- | Natürlich können zusätzlich weitere Klassen wie gewohnt übergeben werden. Dies kann dann wie in diesem Beispiel aussehen: | + | Of course other classes can be given too. This can look like the example: |
<code> | <code> | ||
- | <button type="button" id="ERSETZ_MICH" name="ERSETZ_MICH" initMethod="assignUserByButton" class="user(USERNAME),swimlane(SWIMLANE),message(NACHRICHT) WEITERE_KLASSEN">Zuweisungsbutton</button> | + | <button type="button" id="REPLACE_ME" name="REPLACE_ME" initMethod="assignUserByButton" class="user(USERNAME),swimlane(SWIMLANE),message(MESSAGE) OTHER_CLASSES">AssignButton</button> |
</code> | </code> | ||
- | > Die Reihenfolge in der user, swimlane und message übergeben werden ist beliebig! | + | > The order in which user, swimlane and message are given can be any! |