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

Regarding disabling the field in dialogue programing

Former Member
0 Likes
442

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
421

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

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.

1 REPLY 1
Read only

Former Member
0 Likes
422

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