Subschemas and transfer options in a Logical View

You can assign subschemas to the Data Elements and Segment that are called in a Logical View -CE Lines and specify information about data transfer. You enter this information in a wizard.

To open this wizard, you can click More in the definition sections of the calls in the -CE Lines tab. You can also click the button that is available when you click the columns Subschemas and Transfer area directly in the table of the tab.

With this wizard, you indicate the data transfers by mapping the elements that are called in the Logical View with the Data Elements that are called in Segments. To implement a selection service, data must be transferred from the Segments to the Logical View, after the access to the external resources. When a check and update service is implemented, data must be transferred from the Logical View to the Segments, after the access to the external resources for checking and before the access for updating.

Subschema belonging

Subschema 0 to 9
You can specify that a Data Element or group belongs to one or more subschemas by selecting the subschema check boxes.
When you select a subschema, the Subschemas column in the -CE lines table displays a O on the call line. The position of the O reflects the number of the subschema.
Example: This column displays O OO for the subschemas 0, 2, and 3.
Note: In the -SS Lines tab of the Logical View editor, you can define subschemas and create the list of the subschemas that compose the Logical View.

Values for the data transfer

The values that are used for the data transfer must be entered in the columns of the table in the More pane. To enter values, you must click Add. A new row is then created in the table so that you can enter and select the required values. You can move the lines in the table by clicking the direction buttons. You can click Remove to remove a row from the table.

Direction of transfer
For each Data Element that is called in a Logical View, you must select the data transfer direction between the client and the server.
Table 1. Possible values for the transfer direction
Options Comments
Both directions Default value for an update service or a selection service. It is the required value for graphic applications.
C: Client to Server Client to Business Component, from the Logical View to the Segment for an update service.
S: Server to Client Business Component to client, from the Segment to the Logical View for a selection service.

The transfer direction must also be indicated in the group Data Elements. The repeated Data Elements must have the same transfer direction. This direction can be indicated on the Data Elements that bounds the repeated data (Data Element with an R indicator). You enter the C or S value in this Data Element only if the Direction of transfer field in the Logical View Definition tab is both directions.

Transfer area
You enter the mapped Segment name for the data transfer. This code is constituted of the Segment name and the Data Element name if the Data Element name is different from the Data Element of the Logical View. The Segment and Data Element names are updated by the Logical View data or transferred after the selection of the data from the Logical View. It depends on the direction that is selected in the Direction of transfer field (in the Logical View attributes pane of the Data Element call section or Segment call section). Both mapped names must be in the same format. The same Data Element can feed several indexed or table Segments.
When the names are entered, they are displayed in the transfer area column of the -CE lines table.

A free reference is set when you indicate a Data Element in this field.

Content assist is available on this field, as shown by the symbol content assist in front of the field. To activate it, press Ctrl+Space. A subreference link is automatically created, even if the instance does not exist. From the target instance in the subreference results, you can start a super reference search.

If you put the cursor from the first to the fourth position of the field, the content assist wizard first displays the list of Segments. Select one of them, then click the field again and press Ctrl+Space again. The content assist then displays the list of Data Elements. Select one of them.

Transfer operator
The operator corresponds to the transfer mode (COBOL verb that is to be generated). Click a cell under the Transfer operator column and select one of these operators:
  • + for a transfer by addition,
  • - for a transfer by subtraction,
  • blank or M for a transfer by substitution (move).
    Note: A transfer of this type can be done from a group Data Element. In the server to client direction, this type of transfer is systematically generated.

Feedback