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: 

Control table query.

0 Kudos

In the Control table i was making some changes in certain fields and then pressed update button. If there are any errors it displays the required message but makes all the fields and the rows of the table non-editable.... Is there a way to make it all editable after the error message comes so that i can modify it there itself?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

there are solutions for your problem.

1) Remove it required property from your field .

2) if there is error message from ur code than use message type W instead of E.

3) and if you want to still show an error message than use

chain.

field fieldname module check_error on-input.

endchain.

and in coding of module check_error write ur code . in that code like that if condition is not satiesfied give message of type E. you will get only that field enable and rest of the screen are in disable mode.

if still there is prob tha reply me.

GIve Rewards if helpfull.

5 REPLIES 5

Former Member
0 Kudos

hi,

u can do like this..

If error comes, set one flag...

In PBO make one module...suppose disable..

MODULE disable OUTPUT.

LOOP AT SCREEN.

IF screen-name = <ur screen ele. name> AND f = 1.

screen-input = 1.

ENDIF.

ENDLOOP.

ENDMODULE. " disable OUTPUT

I think it shoud work...

Reward if usefull...

Former Member
0 Kudos

Hi,

You can do one thing

In the PAI of the screen you code like this....

CHAIN.

Field fieldname1.

Filed fieldname2 .

and so on............

ENDCHAIN.

like that give all the names of the fileds between CHAIN and ENDCHAIN.

After that if you enter a wrong value then also the fields which are between CHAIN and ENDCHAIN will be Editable.

*******************************************

Reward if helpful.

Regards,

Syed

Former Member
0 Kudos

hi,

there are solutions for your problem.

1) Remove it required property from your field .

2) if there is error message from ur code than use message type W instead of E.

3) and if you want to still show an error message than use

chain.

field fieldname module check_error on-input.

endchain.

and in coding of module check_error write ur code . in that code like that if condition is not satiesfied give message of type E. you will get only that field enable and rest of the screen are in disable mode.

if still there is prob tha reply me.

GIve Rewards if helpfull.

Former Member
0 Kudos

Write the fields in table control in cahin - endchain.

write the validations in the module validat.

chain: field1,

field2,

field3,

module validat on chain-request.

endchain..

Hope this wil solve the problem.

Former Member
0 Kudos

Hi,

You can do one thing

In the PAI of the screen you code like this....

CHAIN.

Field fieldname1.

Filed fieldname2 .

and so on............

ENDCHAIN.

like that give all the names of the fileds between CHAIN and ENDCHAIN.

After that if you enter a wrong value then also the fields which are between CHAIN and ENDCHAIN will be Editable.

*******************************************

Reward if helpful.

Regards,

Syed