Mobile RPG treats fields with a lot of superficial similarlties to the way they function in 5250 display files: By default they'll appear with similar placement and entering information in them is as simple as selecting the field by tapping it and typing on the pop up keyboard. Fields and constants of various types are represented in the code-behind by a number of controls, all derived from the DdsField Control.

These include:

Each of the controls listed above allows roughly the same functionality as its Traditional Display File counterpart: A charfield takes only alphabetic characters, a decfield takes only numbers, and so on. Names, dates, timestamps, and other information can be seamlessly relayed between the mobile app and the IBM i through the use of the appropriate fields.

Each of the field types have a certain selection of properties in common:

PropertyNotes
AliasProvides the field name to be used by the RPG compiler when defining this field to the program
ChangeIndSpecifies which indicator to set on when this field changes
ColorSpecifies the color of a field
ErrorMessage
ErorMessageId
Identify a message to be associated with this field when the field is in error
MessageIdIdentify at run time the messages identifier to be used with this field
PositionCursorGives focus to this field when the screen is presented to the user
ProtectProtects the contents of the field from user input
UsageSpecifies if this field is: output-only, input-only, input/output (both), hidden, or program-to-system
VirtualRowColThe Row and Column reported to the RPG program if this field has the focus when the user submits his data to the program
VisibleCondition Provide a set of conditional indicators determining whether the field is visible and rendered

For a more in-depth examination of maniplating field elements (specifically by adding a new one) see the Add a field topic.