Previous Topic Next topic Print topic


Create an Interface Field

We also need to provide our users with a field into which they can type the table ID for the table they want to query. We'll do this by creating an interface field based on the original input field on the DEMO91 screen.

  1. On the IMS Screen pane, locate the input field to the right of the TABLE-ID label.
  2. Click and drag this field to the Interface Field pane and drop it there.

    The name of this field, FLD0004, is not particularly descriptive. Because this field is really the input field for the table ID, we will rename it in the Interface Mapper so that it is more recognizable. The name we use here will appear as the field label in our generated Windows Forms client.

  3. In the Interface Fields pane, double-click FLD0004.
  4. In the Name field, type TableID.

    The original FLD0004 field is defined as an input/output field, so by default the Interface Mapper has created its service interface equivalent as an input field, which is what we want here. No further adjustments are necessary.

  5. Click OK.

    Notice that the Mappings pane shows the interface field with its new name, TableID, mapping to the COBOL field FLD0004.

Previous Topic Next topic Print topic