Posting Parameters

I have a dynamic form which is populated from the selection of a list grid via “editRecord(record).” This view aspect works fine.

What I am finding, however, is that when I call a “saveData()” on the dynamicForm, not only is the newly-changed field’s data being sent, but the old data is also being sent along with the parameters.

The dynamic form is populated with data as such, from a REST dataSource:

<response><status>0</status>
<data>
<record>
<Template 
Name="outbound"/>
</record>
</data>
</response>

after the form is changed (e.g. changing “outbound” to “outboundaaa”), the following is sent as a POST to the ‘updateDataURL’ of the REST dataSource:

Name=%20outboundaaa&Name%3A%22%20outbound%20&_selection_5=true

…when all I really want to do is POST a parameter to the updateDataURL such as:
name=outboundaaa

Is there a special way to have the dynamicForm submit only the POSTed parameters?

Hi sonny,

If it’s key that only changed values are submitted, the best way to do this is to use the dynamic.itemChange() method to track changed values, then call dataSource.addData() or updateData() directly instead of form.saveData().