Question Field reading in a frame through Handle and Triggers

Shubhrant

New Member
I need one support on reading field values in a frame while entering to the first field of the frame.
according to the below example:
upload_2015-8-3_15-44-29.png

Once I enter to the screen, the field value of the marked should be "YES". By default this field value remains as "NO". I have to make changes through triggers and handles.
Could you please help me on this.

Appreciate your time.
 

Osborne

Active Member
Just to be clear, when you enter the first field in the frame which appears to be "Purchase Order", you want the "Return to Replace" field to default to Yes, is that correct? If so, you could do something like this:
Code:
DEFINE VARIABLE vsetReturnReplaced AS LOGICAL INITIAL YES NO-UNDO.

ON ENTRY OF purhaseOrder IN FRAME details DO:
   IF vsetReturnReplaced THEN DO:
      DISP YES @ returnReplace WITH FRAME details.
      /* or ASSIGN returnReplace:SCREEN-VALUE IN FRAME details = "Yes". */
      vsetReturnReplaced = FALSE.
   END.
END.
 
Top