Skip to Content
author's profile photo Former Member
Former Member

dynamically changing text element name

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2008 at 11:11 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2008 at 11:15 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.