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

module pool

Former Member
0 Likes
636

hai frnds,

i am in a situation in which i am making a field invisible using

loop at screen.

if screen-group1 = 'G01'.

screen-invisible = 'X'.

endif.

modify screen.

endloop.

when i am debugging the piece of code written in it is executed correctly but the changes were not reflected at runtime. i am not able to get where the actual problem is lying. plz help this in this regard

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
618

where did u write this code ?

instead of 'X' try with '0' or '1'.

regds

gv

Message was edited by: Venkat

5 REPLIES 5
Read only

Former Member
0 Likes
619

where did u write this code ?

instead of 'X' try with '0' or '1'.

regds

gv

Message was edited by: Venkat

Read only

Former Member
0 Likes
618

Hi,

Write ur code in the PBO of ur screen.

case ok_code.

when 'CHG'.

loop at screen.

if screen-name = 'ZC7_EMPLOYEE-RUTEMPID'.

screen-input = 0.

modify screen.

endif.

endloop.

endcase.

Use the value '0' or "1' instead of 'X' .

Hope it helps u.

Kindly reward point if this helps u.

Thanks&Regards,

Ruthra.R

Read only

Former Member
0 Likes
618

otherwise you can try

screen-active = 'X'.

modify screen.

regards,

suresh

Read only

Former Member
0 Likes
618

hi, Ateeq

you should set 1 to screen-invisible, if you want to hide them in the screen.

And please also pay attention to the screen-group1, if no special setting, the field won't belong to any screen-group. In the screen painter, you can set the screen-group in the Attributes windows.

Hope it will be helpful

thanks

Read only

Former Member
0 Likes
618

Hi,

For making any value visible or invisible the values used are 0 and 1 not 'X'. the loop should run in the PBO before the screen is displayed, for this create a module in the flowlogic and call the loop statement inside it.

What are the controls? I/O or radio buttons? and also tell how are you grouping them using chain...endchain?

Please also check the values in the screen table in debug mode.

Cheers....