Store state table XML
Sets the user's state table with an XML post. Any conditions can be set into the state table, but usually the state table contains information about filtering and dynamic troubleshooting variables. All state table variables are organized into groups and have a unique name. When setting a variable, provide a <cond name="" /> element with a name attribute that is formed by the group name concatenated with a "-" followed by the variable name (<cond name="group_name-variable_name" />). Each <cond name="" /> element should have one or more children. Setting the state table XML erases any previous setting, regardless of group, so to cause data to persist, it is important to first fetch the state table, add any new or edit the state table XML, and then use this API call to set the state.
Example API call
/servlets3/wietmsd?id=1459769259896&book=s1000d_bike_41&collection=default&uniqid=1459769258478&target=
applicability&action=set_config
Parameters
| Parameter | Description |
|---|---|
target | applicability |
action | set_config |
uniqid | To prevent browser-side caching of data, especially with AJAX requests, it is important to make a URL unique. The most effective technique to accomplish this is to include a time parameter that is based on the time at which the call is made. |
id | A session ID that is valid for this collection and publication combination. |
book | The name of the publication, such as s1000d_bike_41. |
collection | The name of the collection that the publication is registered in, such as default. |
XML post data
This API call requires XML post data to complete. An example of that XML data is given here.
<filterdata>
<cond name="applic-serialno">
<item>1B070643</item>
</cond>
<cond name="applic-type">
<item>Mountain bicycle</item>
</cond>
<cond name="applic-model">
<item>Brook trekker</item>
</cond><cond name="applic-versrank">
<item>2</item>
</cond>
<cond name="applic-productId">
<item>SN_1B070643</item>
</cond>
<cond name="applic-version">
<item>Mk9</item>
</cond>
</filterdata>
Returns
- On success
-
<RESULT> <STATUS>OK</STATUS> </RESULT> - On failure
- Returns nothing