Question App Builder

This is related to app builder. We have a requirement that there is 2 radio button in a screen.
for example, 1 - Male & 2 - Female
Once we enter the userid in that screen. User have to see the focus on the radio option 2 (Female)if an entered userid gender is female and the similar way if an entered userid is male then the focus has to be radio button option 1 (Male) . Gender details will be available in an input variable of this module.
Could anyone please share the syntax of this use case.
 

Osborne

Active Member
Do you mean something like this?:
Code:
DEFINE VARIABLE RADIO-SET-1 AS INTEGER VIEW-AS RADIO-SET VERTICAL
   RADIO-BUTTONS "1 - Male", 1, "2 - Female", 2
   SIZE 12 BY 2 NO-UNDO.

IF vGender = "Male" THEN
   RADIO-SET-1:SCREEN-VALUE = "1".
ELSE
   RADIO-SET-1:SCREEN-VALUE = "2".
/* or */
IF vGender = "Male" THEN
   RADIO-SET-1 = 1.
ELSE
   RADIO-SET-1 = 2.
DISPLAY RADIO-SET-1 WITH FRAME DEFAULT-FRAME.
 
Top