Sending criteria on a save

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.

It probably doesn’t make sense to try to fix this from the client-side - it should be a one-liner change on the server and if the server code is somehow looking for criteria where it should be looking for values, it sounds like there is something strange in the server code that should be fixed anyway, right?

Yes you are correct adn I managed to convince her that we’ve never done this before and shouldnt start now. Thanks