Get value from UDF
Bart De Cattelle
Dear all,One simple question I think :
I need to get the value from a UDF on my sales order.
THis udf is linked to a usertable.
How can I get the value from this UDF in Coresuite Customize?
This is the code I use and that is not working :
customize.UI.Components.ComboBox.GetFromUID(pVal.Form, "U_Test").Selected.Value
Kind regards
Bart
Manuel Marhold
Hi Bart,the UDFs in the system-forms are shown in an extra window which hast the FormTypeEx = "'-" + FormTypeEx (from systemform).
So you need to use: customize.UI.Components.ComboBox.GetFromUID(pVal.FormUDF, "U_Test").Selected.Value
I don't know if there is an property FormUDF but I think there must be pval.FormTypeExUDF as least..
Michael Egloff
Hi Bart,Manuel is absolutely right!
customize.UI.Components.ComboBox.GetFromUID(pVal.Form.UDFForm, "U_Test").Selected.Value
will give you the udf value
Manuel Marhold
Hi Michael,one question at this point: how do you recieve the udf-form?
If you open an form in SBO twice without the udf-form and the activate the udfs on one of the forms, the FormCount is not the same like the one of the mainform.
0
Please sign in to leave a comment.
Comments
0 comments