Note that there are some explanatory texts on larger screens.

plurals
  1. POSmartClient: PUT data duplication
    primarykey
    data
    text
    <p>I am using SmartClient 8.1 and using XML data sources for GET and PUT operations.</p> <p>Following is a sample of data I GET.</p> <pre><code>&lt;data&gt; &lt;user&gt; &lt;group1&gt; &lt;value1&gt;abc&lt;/value1&gt; &lt;value2&gt;def&lt;/value2&gt; &lt;/group1&gt; &lt;group2&gt; &lt;value3&gt;123&lt;/value3&gt; &lt;value4&gt;456&lt;/value4&gt; &lt;/group2&gt; &lt;/user&gt; &lt;/data&gt; </code></pre> <p>When I update the values and submit the form, SmartClient sends the following data as PUT payload.</p> <pre><code>&lt;dsMyDataSource&gt; &lt;value1&gt;abc_updated&lt;/value1&gt; &lt;value2&gt;def_updated&lt;/value2&gt; &lt;value3&gt;123_updated&lt;/value3&gt; &lt;value4&gt;456_updated&lt;/value4&gt; &lt;group1&gt; &lt;value1&gt;abc&lt;/value1&gt; &lt;value2&gt;def&lt;/value2&gt; &lt;/group1&gt; &lt;group2&gt; &lt;value3&gt;123&lt;/value3&gt; &lt;value4&gt;456&lt;/value4&gt; &lt;/group2&gt; &lt;/dsMyDataSource&gt; </code></pre> <p>In the PUT payload the updated values are sent without the group elements (flattened) along with the old values in the groups. These grouped, old values are not required/desired here.</p> <p>Can anybody tell why it is happening and what I should do to remove these values from the PUT payload?</p> <p>Is this something to do with DynamicForm.submit() vs DynamicForm.saveData()?</p> <p>I have asked this question <a href="http://forums.smartclient.com/showthread.php?t=19308" rel="nofollow">here</a> on the SmartClient forums, but still no answer. I hope somebody can help me here.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload