Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung Nächste Überarbeitung Beide Seiten der Revision | ||
software:tim:smartform:loadonlymainprocesssmartform [2015/05/06 09:20] manuel.kindler angelegt |
software:tim:smartform:loadonlymainprocesssmartform [2018/04/18 11:18] Julian Le |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====loadOnlyMainProcessSmartForm==== | ====loadOnlyMainProcessSmartForm==== | ||
- | Mit Einbau der Funktion wird beim Öffnen des Formulars des Subprozesses das Formular des Hauptprozesses geladen. So müssen Formulare nicht extra für Haupt- und Subprozess erstellt werden. | + | With the integration of this function the main process smartform is loaded when opening the smartform of the subprozess. This way smartforms don't have to created extra for main and sub processes. |
- | <code html>gadget.setValue("loadOnlyMainProcessSmartForm","VARIABLE_IN_WELCHER_PROZESSINSTANZID_DES_HAUPTPROZESSES_STEHT");</code> | + | <code html>gadget.setValue("loadOnlyMainProcessSmartForm","VARIABLE_WITH_INSTANCEID_OF_MAINPROCESS");</code> |
- | Der Code muss in der custom.js Datei eingebunden werden. Dies sollte außerhalb jeder Funktion geschehen, damit der Code gleich nach dem Login in T!M ausgeführt wird. \\ | + | The code has to be integrated into the custom.js file. This should happen outside of every function, so that the code is executed when logging into TIM. \\ |