for(id in values){
if(typeof values[id] != 'function' && (field = this.findField(id))){
+
+
+
if (field.setFromData &&
field.valueField &&
field.displayField &&
sd[field.displayField] = typeof(values[field.name]) == 'undefined' ? '' : values[field.name];
field.setFromData(sd);
+ } else if (field.inputType && field.inputType == 'radio') {
+
+ field.setValue(values[id]);
} else {
field.setValue(values[id]);
}
/**
* Returns the fields in this form as an object with key/value pairs. If multiple fields exist with the same name
* they are returned as an array.
- * @param {Boolean} asString (default false)
+ * @param {Boolean} asString (def)
* @return {Object}
*/
getValues : function(asString)
{
"name" : "asString",
"type" : "Boolean",
- "desc" : "",
+ "desc" : "(default false)",
"isOptional" : false
}
],
{
"name" : "asString",
"type" : "Boolean",
- "desc" : "",
+ "desc" : "(default false)",
"isOptional" : false
}
],
</span><span class="jsdoc-comment">/**
* Returns the fields in this form as an object with key/value pairs. If multiple fields exist with the same name
* they are returned as an array.
- * @param {Boolean} asString
+ * @param {Boolean} asString (default false)
* @return {Object}
*/
</span><span class="jsdoc-var">getValues </span><span class="jsdoc-syntax">: </span><span class="jsdoc-keyword">function</span><span class="jsdoc-syntax">(</span><span class="jsdoc-var">asString</span><span class="jsdoc-syntax">)
{
"name" : "asString",
"type" : "Boolean",
- "desc" : "",
+ "desc" : "(default false)",
"isOptional" : false
}
],
{
"name" : "asString",
"type" : "Boolean",
- "desc" : "",
+ "desc" : "(default false)",
"isOptional" : false
}
],
/**
* Returns the fields in this form as an object with key/value pairs. If multiple fields exist with the same name
* they are returned as an array.
- * @param {Boolean} asString
+ * @param {Boolean} asString (default false)
* @return {Object}
*/
getValues : function(asString)
/**
* Returns the fields in this form as an object with key/value pairs. If multiple fields exist with the same name
* they are returned as an array.
- * @param {Boolean} asString
+ * @param {Boolean} asString (default false)
* @return {Object}
*/
getValues : function(asString)