Versions Compared

Key

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

Overview

This is a very simple single line text entry field used for input/output. The initialization value is set by the 'value' property is where you set a initialized value for the textbox. Whatever you place inside the . The 'value' will be present when the textbox is displayedproperty is also used to receive input in a Rich UI application through field binding.

Validation (Rich UI Only)

...

(Input link to Field Binding page under Widget section)

...

Input Type (Rich UI Only)

These properties are used to specify an input type The 'input type' property can be used to set the 'type' attribute of the HTML <input> element that is rendered for the textbox. These Input types are primarily used useful for mobile applications, but as the mobile device will display a different version of the keypad based on the value (i.e. numeric entry, telephone number, etc.) However, some of these input types options are supported by HTML5 capable browsers. If this field is not set a standard textbox element will be used by default.

...

The auto-complete choices/values can be populated multiple ways:

1. 'choices/values' properties - The

  • Comma separated list - A simple list of values separated by just a comma (i.e. Apple, Orange, Banana).

Database file - See Database-Driven Auto-Complete section below.

  • JSON array format - Using JSON array format, meaning the choices/values are enclosed in a bracket with quotations and then comma separated (i.e. ["ElementOne", "ElementTwo"] ) within the choices and choice values fields also allows you to populate the auto-complete, these fields can also be bound to an RPG field (Rich UI only).

2. Database-Driven Auto-Complete - See Database-Driven Auto-Complete section below.

Web service - You can pass JSON through a web service such as a PHP program to complete the choices and choice value fields (see choices URL example below).

...

This section allows choices/values to be retrieved from a database file. In order to use this, simply enter the name of the database file, the name of the choice option field(s) you would like to search by, and the name of the choice value field you wish to return the value of to your application.

Image Added

  Image Removed

Selecting Multiple Columns

...

The choices URL property allows you to use a web service an external program to return your choice options and values by passing them using JSON formatting. A PHP script would be one example of a service used to pass the values to your application. When using the choices url property, all database-driven auto-complete properties are ignored.

...