Author Message
Anonymous

Hi Team,

I'd like to change a variable with the SMS WebService.
Using the smsxml_test.php, I have found that I have to setup the request as following:
<?xml version="1.0"?>
<modelFields>
<VectorVariables>
<Assignment position="9">53</Assignment>
</VectorVariables>
</modelFields>

My questions are:
- why I have to use Assignment , and why not Assignment_2 or Assignment_3?
- How to setup the position with the generated stubs?

(FYI, I have uses to sample JAVA provided with the smssdk).

Thanks for you help,

Vincent
CraigJohnson5
Joined: Oct 24, 2013
Messages: 413
Offline
Assignment_2 or Assignment_3 is for model documentation purposes. Whenever you see that then the fields are array type, and you have to use position in these cases.

The System Management Services Web Portal Sample Application makes use of Button data on the station form which is of type Array. Please see that application for using the position attribute.
Anonymous

as I'm sure you're aware you are changing a field that is of an array type. Each array FID in SMS has a limited capacity (I believe 255 or 256) and thus requires multiple fields to span the whole array. Ie: assignment covers [0-255], assignment_2 covers [256-512], ... Etc. Position represents the index in to the particular field you are referencing.
Go to:   
Mobile view