Skip to Content
author's profile photo Former Member
Former Member

UI+DI: Updating hidden User defined fields in Matrix

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


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?



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Apr 20, 2004 at 10:56 AM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.