Skip to content

Instantly share code, notes, and snippets.

@weeksdev
Last active January 1, 2016 05:49
Show Gist options
  • Save weeksdev/8100788 to your computer and use it in GitHub Desktop.
Save weeksdev/8100788 to your computer and use it in GitHub Desktop.
ExtJS4: getFieldValues from Form
getFieldValues: function (itemIds, form) {
var values = [];
var delimitedValues = '';
var i = 0;
Ext.each(itemIds, function (itemId) {
values[i] = form.down(itemId).getValue();
delimitedValues = delimitedValues + values[i] + '|';
i++;
});
var returnObj = new Object();
returnObj.values = values;
returnObj.delimitedValues = delimitedValues;
return returnObj;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment