5.2 Data Block Fields

This topic describes the data block fields.

Data Block Fields are logical representation of the data source columns in the screen. Block fields can be added to a block either by: By selecting add fields option from the right click menu of the particular data block or By clicking on add field icon on the top left of data block screen.

Figure 5-6 Adding Block Field to a Data Block



The screen as shown below is launched. ODT provides option to add two kinds of fields.
  • Data Source Fields: These fields correspond to data source columns created in the radxml. The select list provides the list of all data sources attached to the data block. On selecting a particular data source, all the data source columns which are not yet mapped to any block fields.

    Figure 5-7 Adding Data Source Fields to Data Block



    Field Names and Label codes if maintained in CSTB_DATA_DICTIONARY will be defaulted. Otherwise, developer has to provide the field name as desired. Label codes will be defaulted based on the field name provided. Select all the fields which have to be included in the data block and click Ok.
  • UI Fields: UI fields are those which don’t have a corresponding data source column .These fields won’t be required as part of processing and hence won’t be part of request or response xml. Usually fields like buttons, images, labels etc are defined as UI fields A control data block can have only UI fields.

    Figure 5-8 Adding UI fields to Data Block



    Adhere to the following conventions while defining new block field.
  • Field Name should not be the same as the column name. This is important as field name will be visible in request and response xml.
  • Avoid special characters in the field name (like underscore).

    Example: if data source column name is CONTRACT_REF_NO, block field name can be CONTREFNO Provide the properties for the block field added.

This topic has the following sub-topics: