X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=server%2Forg.argeo.slc.ria%2Fsrc%2Fargeo-ria-lib%2Fslc%2Fclass%2Forg%2Fargeo%2Fslc%2Fria%2Fexecution%2FSpec.js;fp=server%2Forg.argeo.slc.ria%2Fsrc%2Fargeo-ria-lib%2Fslc%2Fclass%2Forg%2Fargeo%2Fslc%2Fria%2Fexecution%2FSpec.js;h=a1fd08a3f94f2c0dc0c2cfe0ac0f642919f58407;hb=7d09d24d6c54c8abf6e849dabd26c6f297fc9166;hp=b72623546f6ac68182b3bd6f2df0deff7b64df0e;hpb=ec8c2f37453a50e73376c91b15b403e68f8e206d;p=gpl%2Fargeo-slc.git diff --git a/server/org.argeo.slc.ria/src/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Spec.js b/server/org.argeo.slc.ria/src/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Spec.js index b72623546..a1fd08a3f 100644 --- a/server/org.argeo.slc.ria/src/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Spec.js +++ b/server/org.argeo.slc.ria/src/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Spec.js @@ -38,6 +38,19 @@ qx.Class.define("org.argeo.slc.ria.execution.Spec", { }, members : { + hasEditableValues : function(){ + var values = this.getValues(); + if(!values) return false; + var editables = 0; + for(var key in values){ + var valueObj = values[key]; + if(!valueObj.getHidden() && !valueObj.getFrozen()){ + editables ++; + } + } + return (editables > 0); + }, + /** * Init the object from an XML representation * @param xmlNode {Node} Castor representation of this object