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

dynamically changing text element name

Former Member
0 Likes
696

Hi All,

I have got a scenario in which there are two radibuttons named create and change respectively.

Based on the selection of radio button the seletion screen parameter name shuld changed accordingly.

For example: If user selects create radio button the selection text for parameter should be Created by

else it should be changed by.

How can i achieve this?? Please share your thoughts???

Rakesh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
640

Hi,

parameters:

P_rad1 radiobuttons group g1 user-command 'RAD',

p_rad2 radiobuttons group g1 .

parameters:

P_text1 type c,

p_text2 type c.

At selection-screen output.

if p_rad1 eq 'X'.

loop at screen.

if screen-name eq 'p_text1'.

screen-active = 1.

modify screen.

endif.

if screen-name eq 'P_text2'.

screen-active = 0.

modify screen.

endif.

endloop.

endif.

if p_rad2 eq 'X'.

loop at screen.

if screen-name eq 'p_text2'.

screen-active = 1.

modify screen.

endif.

if screen-name eq 'P_text1'.

screen-active = 0.

modify screen.

endif.

endloop.

endif.

Plzz reward points if it helps.

2 REPLIES 2
Read only

Former Member
0 Likes
641

Hi,

parameters:

P_rad1 radiobuttons group g1 user-command 'RAD',

p_rad2 radiobuttons group g1 .

parameters:

P_text1 type c,

p_text2 type c.

At selection-screen output.

if p_rad1 eq 'X'.

loop at screen.

if screen-name eq 'p_text1'.

screen-active = 1.

modify screen.

endif.

if screen-name eq 'P_text2'.

screen-active = 0.

modify screen.

endif.

endloop.

endif.

if p_rad2 eq 'X'.

loop at screen.

if screen-name eq 'p_text2'.

screen-active = 1.

modify screen.

endif.

if screen-name eq 'P_text1'.

screen-active = 0.

modify screen.

endif.

endloop.

endif.

Plzz reward points if it helps.

Read only

Former Member
0 Likes
640

Hi,

U create 2 parameters with Names 'Create' and 'Change'.

Create 2 radio buttons (rcreate, rchange) with one radiobutton having the default value 'X'.

Now At Selection-Screen u loop at the screen and as per the radio buttons hide one of the parameter and unhide the other.

awrd points if useful

Bhupal