Combobox description issue
Mattia Ryffel
If i try to set any value in the Payment terms combobox SBO Crashes.The reason is the following:
in the payment terms table, there are some descriptions exceeding the Combobox.Description capacity (~50 char i think).
When the Combobox.Select(...) or Combobox.Value is used, also if i'm setting a payment term code with a very short description, somehow the primitive iterates between all the combobox values, unsafely trying to fit the descriptions in the combo... and BOOM!
I suppose this comes from SDK, but just wanted to let you know... or if you have any suggestion besides cutting down the customers payment term descriptions :P
Anders Olsson
Hi Mattia,Thanks for the heads up! Is this in 2007 I wonder? I tried to reproduce it in 8.8 and it doesn't crash. I tried a description of 100 characters and that can be selected. The description is cut off in the UI as it doesn't fix the ComboBox but there is no crash.
I set the description for code "10" to a 100 char (all X's) string and ran this (had a BP open):
Form bpForm = Form.GetFormFromType("134", 0);
ComboBox cbPaymentTerms = ComboBox.GetFromUID(bpForm, "75");
cbPaymentTerms.Value = "10";
Regards,
Anders Olsson
0
Please sign in to leave a comment.
Comments
0 comments