Skip to main content

I am trying to set the ID for the fields in screen section instead of using the automatic assignment based on the placement. Some fields allow me to set the ID but other will cause compilation errors. Is it possible to set the ID for controls that do not have "ENTRY-FIELD" (See #41)


      * #43
           05 MS-AF-LAST-COST  ENTRY-FIELD, VALUE AF-LAST-COST,
              BEFORE    PROCEDURE IS MARK-PLACE-LAST-COST
              AFTER     PROCEDURE IS CHECK-LAST-COST
              EXCEPTION PROCEDURE IS CHECK-FUNCTION-KEYS
              LINE 13   POSITION  70 NO-BOX, RIGHT
              ID IS ID-LAST-COST.

 


      * #41
           05 MS-AF-LAST-PURCH-DATE  USING AF-LAST-PURCH-DATE
              BEFORE    PROCEDURE IS MARK-PLACE-LAST-PURCH-DATE
              AFTER     PROCEDURE IS CHECK-LAST-PURCH-DATE
              EXCEPTION PROCEDURE IS CHECK-FUNCTION-KEYS
              LINE 11   POSITION  71.

I am trying to set the ID for the fields in screen section instead of using the automatic assignment based on the placement. Some fields allow me to set the ID but other will cause compilation errors. Is it possible to set the ID for controls that do not have "ENTRY-FIELD" (See #41)


      * #43
           05 MS-AF-LAST-COST  ENTRY-FIELD, VALUE AF-LAST-COST,
              BEFORE    PROCEDURE IS MARK-PLACE-LAST-COST
              AFTER     PROCEDURE IS CHECK-LAST-COST
              EXCEPTION PROCEDURE IS CHECK-FUNCTION-KEYS
              LINE 13   POSITION  70 NO-BOX, RIGHT
              ID IS ID-LAST-COST.

 


      * #41
           05 MS-AF-LAST-PURCH-DATE  USING AF-LAST-PURCH-DATE
              BEFORE    PROCEDURE IS MARK-PLACE-LAST-PURCH-DATE
              AFTER     PROCEDURE IS CHECK-LAST-PURCH-DATE
              EXCEPTION PROCEDURE IS CHECK-FUNCTION-KEYS
              LINE 11   POSITION  71.

ID is a valid property for all controls, ID is typically used for navigation to each control using the tab key. The control ID signifies the order of when each control will get focused. Typically the ID is numeric. There are controls like the label which can have an ID but because the label is not interactive, in many cases going to the ID for a label places the cursor into the control adjacent to that label. If you are using the AcuBench screen designer, you can right click in the screen, choose Tab Order and reorder how you want the controls to get focus.