Using Rules and Record Layout

When the element you create is structured (displayed in a table-like format, also referred to as a "grid" or "gridable"), except for Document elements, options appear during mobile application creation (or editing) that allow you to isolate specific pieces of element content on which you can perform these postprocessing options:

Defining record layout

The Define Record Layout options include:

Adding split rules

Split rules allow you to add parameters by which to split the columns or rows in the table. To add a split rule, click Add. Or highlight an existing split rule and select Edit. Add and modify split rules and filter rules from the same screen. The Add Split Rules options are:

To remove a split rule, select the rule in the Rules section and click Remove.

Adding filter rules

The Include/Exclude rule options are:

Inserting a Record

  1. Select Insert Record and select Before or After from the drop-down.

  2. Enter a number in the Number field to identify where the record is to be inserted. When you click Preview, the inserted record displays in the preview.

Inserting a Field

  1. Select Insert Field and select Before or After from the drop-down. (There are two ways to create an insert field rule: besides “entering a number in the number field,” you can also “select the label from the label drop-down”).

  2. Enter a number in the Number field to identify where the field is to be inserted. When you click Preview, the inserted field displays in the preview.

Edit Record Number

  1. Select Edit Record Number and enter the number of the record and the number or name of the field you want to edit in the corresponding fields.

  2. Select Value (indicates that you are replacing the existing value with a numeric value or text string) or Image (indicates that you are replacing the existing value with a graphic image)from the drop down list to indicate with what the existing cell is to be replaced.

  3. In the next field enter:

    • For Value – specify ranges of existing cells and perform functions on those cells. Syntax should be in the form of

      <command> (args[,...])

    • For Image – enter the image name and the full path of the image. The image must exist in the OnePage images directory, located at web_app_root\onepage\images, where web_app_root is the root of all Web applications on the application server.

Related Task

Setting Postprocessing Options for Advanced Mobile Applications

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com