01-18-2008 4:40 PM
Hi experts!
i have a field on my dialogu program with name xyz and then another field abc.
now what i need to do is that by programing logic
if vkorg = '123'
then show field xyz
and make abc field invisible
and when vlorg = '456'
do other way round.
is there any way i can achieve that.
thanks for your help in advance.
01-18-2008 6:33 PM
Just do the following in the PBO.
loop at screen.
show 'xyz' if vkorg 123
if screen-name eq 'xyz' and vkorg eq '123'
screen-invisible = 1.
else.
screen-invisible = 0.
endif.
show 'abc' if vkorg 456
if screen-name eq 'abc' and vkorg eq '456'
screen-invisible = 1.
else.
screen-invisible = 0.
endif.
modify screen.
endloop.
Hope that helps,
Michael
01-18-2008 6:33 PM
Just do the following in the PBO.
loop at screen.
show 'xyz' if vkorg 123
if screen-name eq 'xyz' and vkorg eq '123'
screen-invisible = 1.
else.
screen-invisible = 0.
endif.
show 'abc' if vkorg 456
if screen-name eq 'abc' and vkorg eq '456'
screen-invisible = 1.
else.
screen-invisible = 0.
endif.
modify screen.
endloop.
Hope that helps,
Michael