Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
themeRDark
firstline1
titleExample Job Data Formatting
linenumberstrue
collapsetrue
<?xml version="1.0"?>
<JobGroupInput xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <JobGroupName>Collection Run 1</JobGroupName>
  <Jobs>
    <JobInput>
      <JobName>Warehouse Jobs 5</JobName>
      <JobId>123345</JobId>
      <JobParts>
        <JobPartInput>
          <JobPartName>Sample 1</JobPartName>
          <JobPartId>198576</JobPartId>
          <ScheduledDate>2017-08-14T00:00:00+01:00</ScheduledDate>
          <ScheduledLocation>
            <DisplayText>An Example Location</DisplayText>
            <LocationType>Warehouse Location</LocationType>
            <Latitude>52.123</Latitude>
            <Longitude>1.789</Longitude>
            <GridEast>543678</GridEast>
            <GridNorth>123654</GridNorth>
            <BuildingName>123456</BuildingName>
            <BuildingNumber>12</BuildingNumber>
            <Street>Main Street</Street>
            <City>London</City>
            <Zip>AB1 3CD</Zip>
            <Zone>Zone 1</Zone>
            <ReferenceNumber>A123465</ReferenceNumber>
          </ScheduledLocation>
          <DataFields>
            <DataFieldInput>
              <DisplayText>Gross Weight of Sample</DisplayText>
              <FieldName>Gross Weight</FieldName>
              <DataType>number</DataType>
              <ReadOnly>false</ReadOnly>
              <Optional>false</Optional>
              <DefaultValue>0.00</DefaultValue>
            </DataFieldInput>
          </DataFields>
          <ItemsForCollection>
            <ItemForCollectionInput>
              <ItemId>123456</ItemId>
              <DisplayText>2KG BULK SAMPLE</DisplayText>
              <ItemType>Physical Sample</ItemType>
              <Optional>false</Optional>
            </ItemForCollectionInput>
          </ItemsForCollection>
          <Attributes>
            <AttributeInput>
              <AttributeName>Example Attribute Name</AttributeName>
              <AttributeValue>Example Attribute Value</AttributeValue>
            </AttributeInput>
          </Attributes>
          <MethodToUse>Warehouse</MethodToUse>
        </JobPartInput>
      </JobParts>
    </JobInput>
  </Jobs>
</JobGroupInput>


Tip

An XSD schema file for this XML format is available here: JobGroupInput.xsd

Remote data collection involves a technician travelling to a given location on one or more occasions to collect data and physical items. To represent that process in the import data format, each data collection event is represented as a JobInput that has a unique ID and is made up of one or more JobPartInputs. A JobPartInput represents a single visit to a given location. Each JobPartInput has a target location to visit (ScheduledLocation) along with a set of data items to collect on-site (DataFields) and physical items to collect (ItemsForCollection).

...

ParentField NameDescriptionData TypeExampleRequired
JobGroupInputJobGroupNameThis name describes a collection of Jobs. This might describe a collection of related jobs for a single user for example.Any textROUND1 01-JAN-2017Yes
JobInputJobNameA textual description of a job.Any textWarehouse sample 1Yes
JobIdA unique identifier for the job.Any textNumber123456Yes
JobPartInputJobPartNameA textual description of the job part.Any textWarehouse sample 1 first dayYes
JobPartIdA unique identifier for the job part.Any text987654Yes
ScheduledDateThe date that the job part has been scheduled for completion,DateTime

01-Jan-2017 00:00:00

Any standard datetime format is acceptable.

Yes
MethodToUseThis field can be used to specify which Remote Sampler device method should be used for this particular job part.Text. Must match an existing method name in the system.Warehouse Method 1No
ScheduledLocationDisplayTextThe text that the device user will see for the target locationAny text12, Main Street, A City, AB1 2CDYes
LocationTypeThe type of sample collection location.Any text

Possible examples:

  • Customer Address
  • Warehouse
  • Container
Yes
LatitudeThe latitude of the target location. (Lat/lon or grid coordinates are required if navigation is to be used)Number52.1234Yes if navigation required
LongitudeThe longitude of the target location. (Lat/lon or grid coordinates are required if navigation is to be used)Number-1.765Yes if navigation required
GridEastThe grideast value if the location has grid-based co-ordinates. (Lat/lon or grid coordinates are required if navigation is to be used)Number123456Yes if navigation required
GridNorthThe gridnorth value if the location has grid-based co-ordinates. (Lat/lon or grid coordinates are required if navigation is to be used)Number654321Yes if navigation required
BuildingNameThe building name for the target location.TextWarehouse 12No
BuildingNumberThe building number for the target location.Number67Yes if navigation required
StreetThe street for the target location.TextMain StreetNo
CityThe city of the target location.TextLondonNo
ZipThe zip code or postal code of the target location. A house number and zip code can be used for navigation in place of co-ordinates for navigation if required.TextAB1 2CDYes if navigation required
ZoneA zone code for the target location if the location has one.TextZone 123No
ReferenceNumberA unique reference number for this location if it has one.Text123456No
DataFieldInputDisplayTextThe display name of the data field that will show to the device user.TextSample temperature (deg C)Yes
FieldNameThe name of the field in the customer datasystem if this datafield is to be exported on completion.TextSampTempOnly if data is to be returned to external datasystem
DataTypeThe type of data this field will contain. This field can be left blank and configured within Remote Sampler.From list

Use a value from the list below:

  • Text
  • Number
  • DateTime
  • List
  • GpsPosition
  • Address
  • Checkbox
  • DateOnly
  • TimeOnly
  • MultiselectList
No
ReadonlyWhether this field can be changed by the device user at runtime.Boolean

True

False

No
OptionalWhether this data field is required from the user at runtime.Boolean

True

False

No
DefaultValueA default value to present at runtime.Text12.3No
ItemForCollectionInputItemIdA unique ID for the item to be collected.TextA12345Yes
DisplayTextA textual description of the item to show the device user at runtime.Text2kg Bulk SampleYes
ItemTypeThe type of item to collectTextBottleYes
OptionalWhether this item is required for collection at runtime.Boolean

True

False

Yes
AttributeInputAttributeNameThe name of the attribute.TextSAMPLE_POINT_CODEYes
AttributeValueThe value of the attribute.TextZ1234Yes

...