Author Message
RasmusNeander2
Joined: Nov 13, 2013
Messages: 9
Offline
Using the model for VectorVariables from the SMS Webservice doesn't support the actual name of the variable. It's hard to retrieve and set the variables without an identifier? Any sugestions. Sw version: 8.1.3.0.0.25-0

Attached is the VectorVariable model from AES
  • [Thumb - VV.png]
[Disk] Download
MichaelHerman2
Joined: Jan 9, 2014
Messages: 102
Offline
The fields are positional for that form. The fields in the first row have a position of "1", the fields in the second row have a position of 2, and so forth. For example, see the attached pic of two variables I created on that form in rows 1 and 3.

Below is the output I receive when I use the built-in AES SMS test page to "display variables".
Response {
var $result_code = 0
var $result_data =
'<?xml version="1.0"?>
<result_data>
<VectorVariables>
<Description position="1">weather</Description>
<Description position="3">test</Description>
<Type position="1">collect</Type>
<Type position="3">collect</Type>
<Scope position="1">G</Scope>
<Scope position="3">G</Scope>
<Length position="1">1</Length>
<Length position="3">1</Length>
<Start position="1">1</Start>
<Start position="3">1</Start>
<Assignment position="1">2</Assignment>
<Assignment position="3">1</Assignment>
</VectorVariables>
</result_data>
'
var $message_text = ''
}
  • [Thumb - smsex.jpg]
[Disk] Download
RasmusNeander2
Joined: Nov 13, 2013
Messages: 9
Offline
So why do Variable ZY (page 39 of 39 pages) next last row get index 197?
39 pages times 16 variables would be a higher a number?

Description_3[197]=ZY RASMUS TESTING|Description_3[198]=TEST VS
  • [Thumb - ZY.png]
[Disk] Download
MichaelHerman2
Joined: Jan 9, 2014
Messages: 102
Offline
After doing some quick experimentation on that form, I found that variable names change after each set of 252 variables. See the example below where I put some entries in at the boundaries of each set.

For example, the description field for variable "IR" is "Description position". It is the 252th variable on that form and it is the last variable in what we'll call Set 1.

The description for the very next variable, "IS", starts the next set of variables. All the fields in Set 2 have an "_2" in the name. You'll notice that even though "IR" is the 253rd variable on the form, it is the first variable/row for all the field names that have a "_2" in the name (e.g. "Description_2 position").

Likewise, variable "SK" is the first variable for all the fields that have "_3", (e.g., "Description_3 position). "ZZ" is the last variable on the form and it is on row 198 of the 3rd set of variables.

Response {
var $result_code = 0
var $result_data =
'<?xml version="1.0"?>
<result_data>
<VectorVariables>
<Description position="1">A - Set 1, Row 1</Description>
<Description position="252">IR - Set 1, Row 252</Description>
<Type position="1">collect</Type>
<Type position="252">collect</Type>
<Scope position="1">L</Scope>
<Scope position="252">L</Scope>
<Length position="1">16</Length>
<Length position="252">16</Length>
<Start position="1">1</Start>
<Start position="252">1</Start>
<Description_2 position="1">IS - Set 2, Row 1 (253)</Description_2>
<Description_2 position="252">SJ - Set 2, Row 252 (504)</Description_2>
<Type_2 position="1">collect</Type_2>
<Type_2 position="252">collect</Type_2>
<Scope_2 position="1">L</Scope_2>
<Scope_2 position="252">L</Scope_2>
<Length_2 position="1">16</Length_2>
<Length_2 position="252">16</Length_2>
<Start_2 position="1">1</Start_2>
<Start_2 position="252">1</Start_2>
<Description_3 position="1">SK - Set 3, Row 1 (505)</Description_3>
<Description_3 position="198">ZZ - Set 3, Row 198 (702)</Description_3>
<Type_3 position="1">collect</Type_3>
<Type_3 position="198">collect</Type_3>
<Scope_3 position="1">L</Scope_3>
<Scope_3 position="198">L</Scope_3>
<Length_3 position="1">16</Length_3>
<Length_3 position="198">16</Length_3>
<Start_3 position="1">1</Start_3>
<Start_3 position="198">1</Start_3>
</VectorVariables>
</result_data>
'
var $message_text = ''
}
Go to:   
Mobile view