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

Text visible

Former Member
0 Likes
765

Hi Experts

I have two radio buttons and 4 text fields as follows,

parameter : a radiobutton group g1,

b radiobutton group g1.

parameter c(10) type c.

parameter d(10) type c.

parameter e(10) type c.

parameter f(10) type c.

If I want to select radiob button "a" first 2 text visible is to true.

next 2 text visible is false.

And if i select radiob button "b" first 2 text visible is to false.

next 2 text visible is true.

But we should not use any group and loop at screen.

without using how can we do this, can anyone help me pls.

Thanks in advance

regards

rajaram

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
734

Hi,

You cannot implement this kind of functionality in your program without using LOOP AT SCREEN.

Regards

Abhijeet

6 REPLIES 6
Read only

Former Member
0 Likes
734

hi Raja Ram

already discussed in our forum.. kindly check

REPORT ztest_selection.

PARAMETERS: p1(10),

p2(10),

p3(10),

p4(10),

p5(10).

PARAMETERS: r1 RADIOBUTTON GROUP g1 USER-COMMAND abc DEFAULT 'X',

r2 RADIOBUTTON GROUP g1.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF r1 = 'X'.

IF screen-name CS 'P4' or screen-name CS 'P5'.

screen-active = 0.

modify screen.

ENDIF.

ELSE.

IF screen-name CS 'P1' or screen-name CS 'P2'

OR screen-name CS 'P3'.

screen-active = 0.

modify screen.

ENDIF.

ENDIF.

ENDLOOP.

Read only

Former Member
0 Likes
735

Hi,

You cannot implement this kind of functionality in your program without using LOOP AT SCREEN.

Regards

Abhijeet

Read only

0 Likes
734

But someone told that we can do without using loop at screen and group, is that possible.

Read only

0 Likes
734

With out LOOP AT SCREEN, it is not possible. The Radiobutton values will be populated runtime based on your selection, This kind of Dynamic modification can be done only by using the LOOP AT SCREEN in the AT SELECTION-SCREEN OUTPUT.

Read only

0 Likes
734

Its not possible without Loop at screen output

Regards

Deva

Read only

0 Likes
734

Hi Raja Ram,

We cannot get this functionality without using the Screen table. To make a field visible or invisible Or to make any other settings we have to use the SCREEN table because all these settings are in a way Fields in the table SCREEN.

So in the AT SELECTION SCREEN OUTPUT event, loop the screen table and do the necessary modifications.

Regards,

Swapna.