X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.webapp%2Fsrc%2Fmain%2Fwebapp%2Fargeo-ria-lib%2Fslc%2Fclass%2Forg%2Fargeo%2Fslc%2Fria%2Fexecution%2FSpec.js;h=7b2caf8a0504c234e9acc62209f9b6f6fd5b2f88;hb=57f3f674573109ece71b4424e92a71acc12dff92;hp=6b430a3de7894b5aa10a60a0cfdbc7f890901391;hpb=b07b5d7a34c6954b702a5d9ce8b8926b2a6a1191;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Spec.js b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Spec.js index 6b430a3de..7b2caf8a0 100644 --- a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Spec.js +++ b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Spec.js @@ -1,7 +1,7 @@ /** * Wrapper for ExecutionSpec server object */ -qx.Class.define("org.argeo.slc.ria.module.ExecutionSpec", { +qx.Class.define("org.argeo.slc.ria.execution.Spec", { extend : qx.core.Object, @@ -30,10 +30,12 @@ qx.Class.define("org.argeo.slc.ria.module.ExecutionSpec", { statics : { XPATH_NAME : "@name", - XPATH_VALUES : "slc:values" + XPATH_VALUES : "slc:values/slc:value" }, - construct : function(){}, + construct : function(){ + this.base(arguments); + }, members : { /** @@ -43,6 +45,15 @@ qx.Class.define("org.argeo.slc.ria.module.ExecutionSpec", { _applyXmlNode : function(xmlNode){ // Parse now this.setName(org.argeo.ria.util.Element.getSingleNodeText(xmlNode, this.self(arguments).XPATH_NAME)); + var values = org.argeo.ria.util.Element.selectNodes(xmlNode, this.self(arguments).XPATH_VALUES); + var parsedValues = {}; + for(var i=0;i