You can add a control of type Label to a form. A label is piece of text or a variable value to appear on the application as shown on the mobile device.


Standard procedure

1. Click Mobility design.
2. Click the Forms tab.
3. In the list, find and select the desired record.
4. Click Edit.
5. If you add a control, it is positioned before the selected control on the form.
  On the preview, select the desired control.
 

Note: If the control list is shown instead of the preview, in the list, find and select the desired control.

6. On the Properties tab, click Add.
7. Click Label.
8. Sub-task: Define control properties.
  8.1 In the Control field, type the label control name.
 

Note: Only use letters and numbers, no spaces.

  8.2 You can use a label for the display name of the check box.
If you use a label, do not define a Text and make sure Get caption from extended data type is set to No.
  In the Label field, enter or select a value.
  8.3 In the Text field, you can enter a free text as display name.
If you use a Text, do not define a Label and make sure Get caption from extended data type is set to No.
  In the Text field, type a value.
  8.4 If you want a colon shown behind the label text, select Yes in the Append colon field.
  8.5 By default, the label is shown on the form.
  If you want to hide the label on the form, select No in the Visible field.
  8.6 If you want the variable value to be cleared when the form is loaded, select Yes in the Clear on load field.
  8.7 If you want the variable value to be cleared when the form is reactivated, select Yes in the Clear on reactivate field.
  8.8 By default, the next control is positioned on the same line.
  If the next control must be positioned on a new line, select Yes in the Append new line field.
  8.9 You can use a variable to display its value on the form. You can use a variable as defined for the application or for the form.
By default, this field is empty. So, in the Linked variable name field, you can link an application variable to the label.
  To link a form variable, in the Linked variable form field, enter or select the current form.
  8.10 You can link an application variable or a form variable to the label.
  In the Linked variable name field, enter or select a value.
 

Note: If you use a Linked variable name, do not define a Label ID or Text.

  8.11 If a variable is defined, the label of the related extended data type can be used as display name in front of the variable.
This results in: [extended data type label]: [variable value]. Example: Purchase order: PO00123.
By default, the label of the extended data type is not used.
If you use the label of the extended data type as display name, do not define a Label or Text.
  If you want to use the label of the extended data type, select Yes in the Get caption from extended data type field.
  8.12 You can use the Preview field to enter an example value for the variable. This value is only used to be shown as variable on the preview.
  In the Preview value field, type a value.
9. In the Documentation section, write the label control documentation. For example, describe the purpose and characteristics of the label control.
10. To show the added control on the preview, on the Design tab, click Refresh.

Notes

  • In general, if you add a form control, it is positioned before the selected control on the form.
  • Where the control is exactly positioned on the preview, also depends on:
    • The Append new line property of the previous control and of the added control.
    • The preview style sheet.
  • You can use the Up and Down buttons on the Properties tab to move a form control to another position on the form.

Provide feedback