‎2005 Aug 31 6:18 AM
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
‎2005 Aug 31 6:25 AM
where did u write this code ?
instead of 'X' try with '0' or '1'.
regds
gv
Message was edited by: Venkat
‎2005 Aug 31 6:25 AM
where did u write this code ?
instead of 'X' try with '0' or '1'.
regds
gv
Message was edited by: Venkat
‎2005 Aug 31 6:41 AM
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
‎2005 Aug 31 7:03 AM
otherwise you can try
screen-active = 'X'.
modify screen.
regards,
suresh
‎2005 Aug 31 7:46 AM
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
‎2005 Aug 31 7:57 AM
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....