cancel
Showing results for 
Search instead for 
Did you mean: 

Matrix Empty row Binding Problem

Former Member
0 Kudos

Hi ,

i created one matrix using screen painter.. all my columns are binded

with user defined fields.(Doc Rows Table). if my total row count is 5.

and i deleted 2 rows using rightclick deleterow event. after adding if i see the same document it display the 2 empty rows and 3 rows with my details.. actually its showing that deleted row also.my UDT also having empty row details..

how to resolve this?

Regards,

Ganesh K

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member191896
Active Participant
0 Kudos

Hi Ganesh,

Try using FlushToDataSource method of the matrix and then take the data from the datasource to write to DB (via DI API, of course)

HTH

Aravind

Former Member
0 Kudos

Hi Ganesh,

In BeforeEvent false of "Add/Update" button click, please explicitly delete the empty rows from the matrix.

(This situation is not handled automatically by SAP)

This will resolve your issue.

Regards,

Geetha

Former Member
0 Kudos

Hi Geetha,

i think you misunderstood my scenario. while adding no empty rows

are displayed, even if i deleted some added row details.After adding,

while retriving the same document the problem occurs.if am not clear let me know..

As you told, beforeAction = false of Add will be new form with Add mode.so not possible to check that old matrix. otherwise we can delete the empty details from database using query..in beforeaction false pval.actionsucess true part...

regards,

Ganesh k.

Former Member
0 Kudos

Hi Ganesh,

I meant beforeaction = true (sorry for the typo).

While adding, even though no empty rows are displayed, have you checked the matrix.rowcount? Is it same as the no. of rows which have the contents?

-Geetha