Samuel
But in the code sample I posted, there was no validation table involved (at that point). You are right: CodeMast.Code is 10 char, although CodeMast.Description is 30 char, but that shouldn't limit the combo itself.
OK, here is the proper test - the Sacred Texts - add this new web view to WebOrder.src:
Code:
Use cWebView.pkg
Use cWebPanel.pkg
Use cWebForm.pkg
Use cWebCombo.pkg
Use cCustomerDataDictionary.dd
Object oComboTest is a cWebView
Object oCustomer_DD is a cCustomerDataDictionary
End_Object
Set Main_DD to oCustomer_DD
Set Server to oCustomer_DD
Set piWidth to 700
Set psCaption to "ComboTest"
Object oWebMainPanel is a cWebPanel
Set piColumnCount to 12
Object oCustNum is a cWebForm
Entry_Item Customer.Customer_Number
Set piColumnSpan to 4
Set psLabel to "Customer Number:"
End_Object
Object oCustName is a cWebCombo
Entry_Item Customer.Name
Set piColumnSpan to 8
Set psLabel to "Customer Name:"
// Procedure OnFill
// Clear Customer
//
// Repeat
// Find gt Customer by Index.2
// If not (Found) Break
// Send AddComboItem (Trim(Customer.Name)) (Trim(Customer.Name))
// Loop
//
// End_Procedure
End_Object
Object oCustName2 is a cWebForm
Entry_Item Customer.Name
Set piColumnSpan to 8
Set psLabel to "Customer Name:"
End_Object
End_Object
End_Object
Which shows the combo not working.
Uncommenting the OnFill procedure causes it to work as expected (the first Trim seems to matter, the second does not).
And with that, my problem is solved! In fact it was the Trim which mattered in the real code.
Thanks for being there to talk it through with.
Mike