I put some user defined fields to the matrix in the Quotation form (uid 139).
To fill the user defined fields (cell-level) with data they have to be activated. Everything works fine.
Now I want to hide the fields an fill them with data.
I tried these lines of code:
oSBOMatrix = oForm.Items.Item(.....).Specific
l_uds = oForm.DataSources.UserDataSources.Add("U_ek_1_fw", BoDataType.dt_PRICE)
l_oColumns = oSBOMatrix.Columns
l_oColumn = l_oColumns.Item("U_ek_1_fw")
l_oColumn.DataBind.SetBound(True, "", "U_ek_1_fw")
l_uds.Value = 100
oSBOMatrix.SetLineData(1)
With the DataBind statement I get this error:
The item is not a user defined item and cannot be manipulated in such manner
Can I use UserDataSources with existing forms?
How can I fill hidden fields within a matrix in an existing form?
thx,
Ingo