cancel
Showing results for 
Search instead for 
Did you mean: 

saving multiple entries in a table

Former Member
0 Kudos

Hi All,

In my application, I have to save multiple or single rows.

suppose i entered 3 rows, and any one of those is wrong, then the flow should stop wherever 1st wrong entry is encountered. The correct entries should get saved on pressing save and then should disappear. The wrong entries sould remain there and there message should also come along with the successful ones.

How to achieve this logic ?

Thanks & Regards,

Nikhil

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Loop through your table node and check for the validation, assemble all the rows that pass the validation and pass it to the bapi and execute it. Remove the rows that passed validations using removeElement() method and for the rest just keep on displaying message on the screen using wdComponentAPI.getMessageManager().reportException("Error Message",true);

Regards,

Murtuza