I customized the Sales Order Entry form, and now the tabs (#1 in pict below)) don’t respond unless I first select the Order Number in the tree (#2 in pict)
When the form first loads (i.e. no Order selected, I cannot select the other tabs. I can do this with the base form.
And when I open the form in developer mode, I can’t select the Header, Lines, or One Time Ship To tabs, to customize their content.
I tracked it down to a function being called in SalesOrderForm_Load()
The function is to auto-populate a dropdown with data from UD05. Here’s the code
Private Sub setPMCombo()
Dim recSelected as Boolean
Dim whereClause as String = "Checkbox01 = False"
'MessageBox.Show(whereClause)
'Dim dsSetPMCombo as Dataset = Epicor.Mfg.UI.FormFunctions.SearchFunctions.listLookup(oTrans,"UD05Adapter", recSelected, False, whereClause)
Dim dsSetPMCombo as Dataset = Ice.UI.FormFunctions.SearchFunctions.listLookup(oTrans,"UD05Adapter", recSelected, False, whereClause)
if (recSelected) Then
epiUltraComboC1.ValueMember = "ShortChar01"
epiUltraComboC1.DataSource = dsSetPMCombo
epiUltraComboC1.DisplayMember = "ShortChar01"
Dim fields as String() = New String() {"ShortChar01"}
epiUltraComboC1.SetColumnFilter(fields)
epiUltraComboC1.LimitToList = true
end if
end sub
The control epiUltraComboC1 is bound to OrderHed.ProjManager_c
UD05.Checkbox01 is a flag to filter records selected from the table.
Is that not the way to populate a dropdown?
Should this be called in Form _Load, or some other event?
I actually got it working by using a regular epiCombo (not an epUltraCombo), and set the EpiBOName to Ice:BO:UD05.
Also had to set the DisplayMember, EpiColums, EpiSort, and ValueMember fields to ShortChar01 (thats the UD filed that shows on the form and needs to bestored in the OrderHed.PM_c UD field.
Getting rid of that custom code (that ran at Form_Load) fixed the issue with the tab not being selectable.
Still not happy that the epiRetrieverCombo control didn’t work as expected.