Show Description as Combobox Value
Sebastian Schweer
Hallo,I have declare a UDF in B1 (Name: UDF_ABC) and fill in with some Values only by the B1-Mask.
Now I declare a Combobox which should show these Values:
ComboBox.DataBind = DataBind.CreateNew("ComboBox");
ComboBox.DataBind.TableName = "OITM";
ComboBox.DataBind.Alias = "UDF_ABC";
ComboBox.DataBind.Alias.GetType();
ComboBox.DataBind.DataBound = true;
The Combobox shows the Values rightly.
But, it is possible, that the Combobox shows me the Description instead of the Value-Name? I don't find a method for it :(
Thanks,
Sebastian
Michael Egloff
Hello Sebastian,there's a property on the combobox called ".DisplayDesc"
set it to true and it's showing you the description.
Sebastian Schweer
Hallo Michael,thank you. That Works. :D
I totaly overseen this option. :bang:
For all others, here is my Code to show the Description of a Combobox with Values from a UDF (here in the Item Master Data/OITM):
ComboBox.DataBind = DataBind.CreateNew("ComboBox");
ComboBox.DataBind.TableName = "OITM";
ComboBox.DataBind.Alias = "UDF_ABC";
ComboBox.DisplayDesc = true;
ComboBox.DataBind.DataBound = true;
Best regards,
Sebastian
0
Please sign in to leave a comment.
Comments
0 comments