XML Strings

Path

The "path" parameter of the "get" and "load" request specifies for a form or sub-report which asset of which report is to be used to populate this form or sub-report. For the "submit" request, it specifies for which asset of which parent report this form will submit its data. The PAGECODE in the string below is to be replaced by the code of the parent report, and the KEY below is to be replaced by the key of the asset; they must each stay in quotes.

<mobile-path
xsi:schemaLocation="http://www.seecontrol.com/nexus/XMLSchema schema/mobile-app.xsd"
xmlns="http://www.seecontrol.com/nexus/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
page="PAGECODE"
key="KEY"/>

Data

The "data" parameter of the "submit request includes all the data to submit using that form. It is formatted as a "mobile-data-set" object containing an array of "mobile-value" objects, one for each field of the form.

The CODE listed in the string below would be replaced by the code of a field (must stay in quotes), and the VALUE below would be replaced by the value of that field. Repeat this for each field of the form. Notice that a "valueText" object is used, as this is a text field; for integer or boolean fields, use "valueLong" instead; for floating point numbers, use "valueNumber"; for calendar fields, use "valueDate". For boolean values use 1 for true value and 0 for false value.

<mobile-data-set
xmlns="http://www.seecontrol.com/nexus/XMLSchema">
<mobile-value code="CODE">
<valueText>
VALUE
</valueText>
<valueLong>
VALUE
</valueLong>
<valueNumber>
VALUE
</valueNumber>
<valueDate>
VALUE
</valueDate>
</mobile-value>
</mobile-data-set>