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

When error comes in table control

Former Member
0 Likes
404

Hi,

When user enters the wrong data in the table control then automatically table control will throw an error for that line, if user not sure about that error and he wants to delete the errored line then there is a flexibility to select the number of lines and delete. But when he gets an error he could not able to even select the line to delete till he rectify the error in the table control / clear all the mandatory fields in the table control for that line.

Do you have any solution on this.

Regards,

Jaya

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
380

If you are doing your validation in the table control loop in your PAI, then only the current row will be editable if you issue an "E" type message, hence the problem you describe... so if you want to keep all the rows open for input, you will need some different logic... what I find effective is to set a flag in the PAI to say an error has been encountered (and trap the TC row too) and issue an "S" message... then allow the flow logic to get back to PBO wherein you can clear the error flag and position the cursor suitably. This way all the TC rows are available for processing when the screen is displayed.

Jonathan

2 REPLIES 2
Read only

Former Member
0 Likes
381

If you are doing your validation in the table control loop in your PAI, then only the current row will be editable if you issue an "E" type message, hence the problem you describe... so if you want to keep all the rows open for input, you will need some different logic... what I find effective is to set a flag in the PAI to say an error has been encountered (and trap the TC row too) and issue an "S" message... then allow the flow logic to get back to PBO wherein you can clear the error flag and position the cursor suitably. This way all the TC rows are available for processing when the screen is displayed.

Jonathan

Read only

Former Member
0 Likes
380

solved my own