Widgets
A widget is a UI control, containing the following information:
| Field | Description |
|---|---|
| Type | The widget type, referring to a slider, integer, float, real, boolean, option, string, datetime, subUI, material, pad, image or remote. |
| Name | The unique name of the widget. Values are stored along with it's widget name to allow for external systems to identify and process the entered data. |
| Default value | The information can contain a specification of the default value, with which the widget should be pre-populated. See below for details. |
| Sort value | A value indicating the sequence position in which this widget is to be displayed on the screen. |
| Editable | true, if the Field Worker is allowed to overwrite this value, false otherwise. |
| Prompt | The text appearing on the widget, providing the Field Worker with an indication about the content and meaning of this widget. |
The Default value can contain:
-
a numeric, boolean or text value representing the default value of the widget.
-
specific literals that refer to fields of the task attachment:
quantity(alsoplanned,Q0are alternatives forquantity),content,reference,unitOfMeasure,processFlow,subType,size. -
an XPath expression, referring to the an overall XML document derived from the
extrafield, the Task and TaskAttachment.
The derived overall XML documents contains the following details:
- the entire XML document of the
extraproperty. - a
languageattribute injected into the root element, indicating the user's device language settings. - a
Taskelement with the attributesprocessFlow,taskType,contractTypeandlocale. - a
TaskAttachmentelement added as a child to theTaskelement, containing the attributesplanned,content,reference,unitOfMeasure,processFlow,subTypeandsize.
Examples
18:00:00kit3falseplannedreference/Data[@positionType = '08']/@dirtyQty/Data[@positionType != '08']/@planned/Data/@language//Task/@taskType/Data/Task/TaskAttachment/@referenceconcat(/Data/@debtor, ' ', /Data/@saNo, ' ', /Data/@technician)