Good morning,
I have a form where users enter temporary inventory quantities for jobs until the jobs get closed. One part of the form is a BAQCombo listing all the warehouses. They can pick a warehouse to add the inventory to.
At the bottom of the dashboard, I list all of the inventory values stored in my temporary UD09 table. This is so users can see what has already been entered. Sometimes they want to combine records, but there is no easy way to do that yet. They have to delete the record, remember the quantity and reenter the record with the new total qty.
I’d like to avoid this by letting the user click an existing record from the table, and have the record load into the text fields and combo boxes to be edited. Using the code below I can sense when the user clicks a row in my grid, and then I can set the values of all the controls except for my BAQCombo:
private void V_UD_OpenJobInventory_1View_AfterRowChange(EpiRowChangedArgs args)
{
// ** Argument Properties and Uses **
// args.CurrentView.dataView[args.CurrentRow]["FieldName"]
// args.LastRow, args.CurrentRow, args.CurrentView
// Add Event Handler Code
MyPartNum.Text=args.CurrentView.dataView[args.CurrentRow]["UD09_Key1"].ToString();
epiRevs.Value=args.CurrentView.dataView[args.CurrentRow]["UD09_Key2"].ToString();
MyQuantity.Text=args.CurrentView.dataView[args.CurrentRow]["UD09_Number01"].ToString();
epiStatus.Value=args.CurrentView.dataView[args.CurrentRow]["UD09_Key3"].ToString();
baqComboC1.Text=args.CurrentView.dataView[args.CurrentRow]["UD09_Key5"].ToString();
epiUltraComboC1.Text=args.CurrentView.dataView[args.CurrentRow]["UD09_ShortChar01"].ToString();
epiJobs.Value=args.CurrentView.dataView[args.CurrentRow]["UD09_Key4"].ToString();
MyNotes.Text=args.CurrentView.dataView[args.CurrentRow]["UD09_Character01"].ToString();
MyDate.Text=args.CurrentView.dataView[args.CurrentRow]["UD09_Date01"].ToString();
}
I have tried accessing the .Text, and .Value. As well as assigning the BAQcombo to its own variable like:
public BAQCombo cmbWhse;
cmbWhse = (Ice.Lib.Framework.BAQCombo)csm.GetNativeControlReference("ab3e6a13-bcc2-45bb-8f27-e93f11951026");
And I tried using the cmbWhse.Text and .Value.
None of these resulted in a change to the BAQCombo box. All the other controls get filled in correctly, but the warehouse combo stays blank.
The whouse combo is fed by a static BAQ that just lists the warehouses that I care about. I tried removing the BAQ link and display/value members from the combo box before setting the value. But that didn’t work either.
What am I missing here?
Thanks!
Nate