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
Hi Ingo
If you have added your UDFs by means of SBO - System Menu - Tools - Manage User Fields - Marketing Documents - Rows, you MUSTN'T bind these UDFs to UserDataSoruces again; they are already bound to columns like 'U_xyz'... in the tables QUT1 (quotation), RDR1 (order)...
To handle data in marketing document matrix, look what e.g. Lutz Morrien wrote about this topic. He gave some clever hints in this forum.
Add a comment