Application Development 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: 

Regarding disabling the field in dialogue programing

Former Member
0 Kudos

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

former_member589029
Active Contributor
0 Kudos

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

1 REPLY 1

former_member589029
Active Contributor
0 Kudos

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