Spaces:
Sleeping
Sleeping
processmaker-community / processmaker-files /workflow /engine /xmlform /tracker /tracker_ConditionsEdit.xml
| <dynaForm name="tracker_ConditionsEdit" type="xmlform" width="98%" labelWidth="62px"> | |
| <CTO_UID type="hidden" showInTable="0"/> | |
| <PRO_UID type="hidden" showInTable="0"/> | |
| <CTO_CONDITION type="textareapm" cols="64" rows="5" showVars="1" process="@#PRO_UID"> | |
| <en><![CDATA[Condition]]></en> | |
| </CTO_CONDITION> | |
| <SAVE type="button" onclick="saveConditionCaseTrackerObject(this.form);"> | |
| <en><![CDATA[Save]]></en> | |
| </SAVE> | |
| <JS type="JavaScript"><![CDATA[ | |
| var _oVarsPanel_; | |
| var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol) { | |
| _oVarsPanel_ = new leimnud.module.panel(); | |
| _oVarsPanel_.options = { | |
| limit : true, | |
| size : {w:350,h:400}, | |
| position : {x:0,y:0,center:true}, | |
| title : '', | |
| theme : 'processmaker', | |
| statusBar: false, | |
| control : {drag:false,resize:true,close:true}, | |
| fx : {opacity:true,rolled:false,modal:true} | |
| }; | |
| _oVarsPanel_.make(); | |
| _oVarsPanel_.events = { | |
| remove:function() { | |
| delete _oVarsPanel_; | |
| }.extend(this) | |
| }; | |
| _oVarsPanel_.loader.show(); | |
| oRPC = new leimnud.module.rpc.xmlhttp({ | |
| url : sAjaxServer, | |
| method: 'POST', | |
| args : 'sFieldName=' + sFieldName + '&sProcess=' + sProcess + '&sSymbol=' + sSymbol | |
| }); | |
| oRPC.callback = function(oRPC) { | |
| _oVarsPanel_.loader.hide(); | |
| var scs = oRPC.xmlhttp.responseText.extractScript(); | |
| _oVarsPanel_.addContent(oRPC.xmlhttp.responseText); | |
| scs.evalScript(); | |
| }.extend(this); | |
| oRPC.make(); | |
| }; | |
| var insertFormVar = function(sFieldName, sValue) { | |
| oAux = document.getElementById(sFieldName); | |
| if (oAux.setSelectionRange) { | |
| var rangeStart = oAux.selectionStart; | |
| var rangeEnd = oAux.selectionEnd; | |
| var tempStr1 = oAux.value.substring(0,rangeStart); | |
| var tempStr2 = oAux.value.substring(rangeEnd); | |
| oAux.value = tempStr1 + sValue + tempStr2; | |
| } | |
| else { | |
| if (document.selection) { | |
| oAux.focus(); | |
| document.selection.createRange().text = sValue; | |
| } | |
| } | |
| _oVarsPanel_.remove(); | |
| }; | |
| ]]></JS> | |
| </dynaForm> | |