Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Matrix With UDO Datasource


I have been through all the Matrix Samples and read many threads here but I just dont get a few things with the Matrix.

I have created an add on that adds a new folder to the Business Partners Form,

I can have built a matrix in this form and created bound columns bound to my UDO Table @xxxx

I have an event that fires when a business partner is chosen and the folder is only shown when a Customer is selected.

I can even get the matrix to fill with data related to the specific customer only when the customer is selected - using conditions on the DBDataSource.

This is all great but the 2 problems I have are :

I have created a button called Add Row that Adds a Row to Matrix - this button turns into an Update button when the row is added in the Matrix.

Problem 1 : When the row is added in the Matrix it takes the data from the last row of the data and duplicates it in the new row - you can change this data of course however I would like a blank row inserted instead.

Problem 2 : When I update I do a Matrix.FlushToDataSource - then I requery but it has not saved the new entry ?

How do I get the new entry to save into the database.

Any Help would be appreciated.


Helpful Answer

Not what you were looking for? View more on this topic or Ask a question