cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Matrix/Checkbox/Datasource

Former Member
0 Kudos

Hi, i have a problem with a Matrix.

There are 3 Columns on this Matrix, one of those is a Checkbox. I fill the Columns with data, the Checkboxes where just added (no Checkbox is selected), the user has to select the value (Checkbox)he want's to by hand.

After i filled the Matrix i can see all the data on the Form, it's OK, but then i loose all entries after SBO is doing some work. There where shown only the empty rows and the checkboxes.

I guess it has something to do with the databinding. My problem is that i don't have the Data for this form on a db-table. I fill in the matrix the result of some querys. It looks like i need at least a DB-Field for the checkboxes, otherwise there are not working (not selectable)

Somebody knows a solution how i can keep the Data in the Matrix after SBO is doing some work? What could be the reason that i loose the data after filling it in the Matrix? Is there an easy way?

Thanks Andreas

Accepted Solutions (1)

Accepted Solutions (1)

rasmuswulff_jensen
Active Contributor
0 Kudos

Sounds like you need to bind you checkbox-column to a usedatasource (shortext,1). If you dont have a userdatasource data will not be preserved.

1. Just add an uds to the form.

2. Bind the specific column to it.

Hope this helps

Former Member
0 Kudos

Hy Rasmus! Thanks for the Info !

Is it possible that the problem comes from using a DB Datasource and no UserDatasource ? I don't have the data on db tables. I only fill in the Matrix with the result of some querys. Where i can bind the Matrix to if i have no tables with this values?

rasmuswulff_jensen
Active Contributor
0 Kudos

Almost every item on a form need a datasource... If the item reprecents some data in a table the databinding must be a dbds... If the data does not reflect any data in a table (Calulated value, user-decision, ect.) a userdatasource need to be created...

Add a userdatasource

oForm.DataSources.UserDataSources.Add(UID,type,length);

Databind to DBDS


col.DataBind.SetBound(true,”TABLE”,”FIELD”);

Databind to UDS


col.DataBind.SetBound(true,””,UID);

Former Member
0 Kudos

Hy Rasmus! Thank U for support!

I try it with the Userdatasource, i'm nearly shure it's the reason i loose now the data.

Thank you !

Andreas

Former Member
0 Kudos

Hy Rasmus!

With the UserDataSource it's working perfect!

I didn't understod that i need to bind datasources also to fields where the values doesn't come from a DB-field.

Thanks again!

Regards Andreas

Answers (0)