My middlelayer person has said to make a save work in a particular part of my infrastructure she wants me to pass several values of forms not as values in the request but as criteria. Is there any way to do this?
So far I’ve been working along the lines of
function saveName(form, item)
{
form.saveData(callBack(), {operationType:"update", stuff:"foo", criteria:{proposalId:getProposalId(), userDefinedFieldId:form.getField("userDefinedFieldId").getValue()}});
}
where save name is the blur handler.
But I’m not seeing any of this data being passed as criteria in the save request. Can anyone tell me if I can alter criteria on a save request or pass parameters some other way? I’d rather not tell her to rewrite her middlelayer code unless necessary.