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

problem in screen painter

Former Member
0 Likes
522

hello all,

i have a list box and a list of fields in my screen.

During PBO i am disabling some of the fields by making screen-active = 0 for those fields.And when user chooses a particular value in the list box iam enabling those hidden fields by making screen-active = 1 for those fields at PAI.The fields are getting deactivated during PBO but during PAI when the user enters a particular value and presses enter the fields are not getting activated(i.e they are not visible).what might be the pbm.please any of u give me soln for this.

Thanks.

1 ACCEPTED SOLUTION
Read only

JozsefSzikszai
Active Contributor
0 Likes
488

the PBO always runs after the PAI (in case you remain on the same screen). What you've coded in the PAI, just cut and paste into the PBO, logically combining with the code already there.

3 REPLIES 3
Read only

JozsefSzikszai
Active Contributor
0 Likes
489

the PBO always runs after the PAI (in case you remain on the same screen). What you've coded in the PAI, just cut and paste into the PBO, logically combining with the code already there.

Read only

0 Likes
488

thank u...

my problem is solved...

Read only

MarcinPciak
Active Contributor
0 Likes
488

Hi,

What you do is related to dialog step. This is PAI->PBO which means, after you pick up the value from listbox system tries to show up you fields in PAI, but immediately after it finishes PAI goes to PBO to redisplay the screen. Here as you said you deactivate your screen fields again, hence there are never displayed.

Note!

Dialog step is only different in first execution of screen. It consist of PBO only. Then when screen is already displayed dialog step is considered as PAI->PBO.

To solve your problem, simply activate or deavtive in turn your desired screen fields depending on the value in listbox ie.


AT SELECTION-SCREEN.
   Loop at screen.
   check screen-name = "name of the fields to be switched on/off
   if value = ...
      screen-active = 1.
   else.
      screen-active = 0.
   endif.
   modify screen.
  endloop.

Regards

Marcin