Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
software:tim:smartform:loadonlymainprocesssmartform [2018/04/18 11:18] Julian Le |
software:tim:smartform:loadonlymainprocesssmartform [2021/07/01 09:52] (aktuell) |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====loadOnlyMainProcessSmartForm==== | ====loadOnlyMainProcessSmartForm==== | ||
- | 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. | + | 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. |
- | <code html>gadget.setValue("loadOnlyMainProcessSmartForm","VARIABLE_WITH_INSTANCEID_OF_MAINPROCESS");</code> | + | <code html>gadget.setValue("loadOnlyMainProcessSmartForm","VARIABLE_IN_WELCHER_PROZESSINSTANZID_DES_HAUPTPROZESSES_STEHT");</code> |
- | 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. \\ | + | 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. \\ |