Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Parameter ID in Raidobutton: Is this possible?

Former Member
0 Likes
345

Hi Experts!

I'd like to ask what is the best approach of using a Parameter ID in Radiobuttons. Because using the Group syntax with the Memory syntax is a syntax error in Parameter Clause for Radiobutton Declaration.

Can you help me please? Points will be rewarded for suitable answers. Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
316

Hi,

GET PARAMETER at the event INITIALIZATION. and set defaults there.

Would look like this (just typed in - no syntax check!):

DATA def_opt TYME fname.
...
INITIALIZATION.
  GET PARAMETER my_par def_opt.
  CLEAR: p_radio1, p_radio_2.
  CASE def_opt.
    WHEN 'P_RADIO1'."allways upper case
      p_radio1 = 'X'.       
    WHEN 'P_RADIO'.
      p_radio2 = 'X'. 
    WHEN others. "fall back
           p_radio1 = 'X'.    
  ENDCASE.

....

Kind regards,

HP

Hi Experts!

I'd like to ask what is the best approach of using a Parameter ID in Radiobuttons. Because using the Group syntax with the Memory syntax is a syntax error in Parameter Clause for Radiobutton Declaration.

Can you help me please? Points will be rewarded for suitable answers. Thanks.

1 REPLY 1
Read only

Former Member
0 Likes
317

Hi,

GET PARAMETER at the event INITIALIZATION. and set defaults there.

Would look like this (just typed in - no syntax check!):

DATA def_opt TYME fname.
...
INITIALIZATION.
  GET PARAMETER my_par def_opt.
  CLEAR: p_radio1, p_radio_2.
  CASE def_opt.
    WHEN 'P_RADIO1'."allways upper case
      p_radio1 = 'X'.       
    WHEN 'P_RADIO'.
      p_radio2 = 'X'. 
    WHEN others. "fall back
           p_radio1 = 'X'.    
  ENDCASE.

....

Kind regards,

HP