Which event should I place the code to create my own topmostitem?
Do you meant to modify SF source code?
Thank you
I am able to "hijack" the value of TopMostValue to change it from "-1" to "00000000-0000-0000-0000-000000000000" and it would work.
I would wait for your next update.
I cant test on it because my project no longer working after I compile SF source code. I got to reinstall SF.
OK, I have a field called VendorID which is GUID field type.
I add this field as browse dialog search field, ComboBox - business object (VendorsBO.FillAll()). I would hit error when I click on browse button.
InvalidOperationException The input value could not be converted to the output type.FormatException Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
After some debugging, I found that, TopMostItem.TopMostValue is always defaulted as "-1" when combobox is created (as shown as below). When program try to convert TopMostValue to GUID, it hit error.
Private Function CreateBOCombo(ByVal Item As SearchFieldItem) As Control....TopMostItem = New TopMostListItem(_BrowseDialog.EnumTopMostText, "-1")
Do you get what I meant?
Please advice
The combobox is in browse dialog form. How to reset its the combobox property? I was thinking all search fields are generated only during runtime.
Please advice.
I just found this code may cause the problem
How to fix it?