Hey I am currently working on a customization that uses the Picker control (the two boxes with the arrows in between). I am trying to fill the left box (available list to pick from) using a BAQ DataView. Is there something I need to do to “refresh” my baq dataview? Or to get it to display the results? It seems to just come in blank. This is more or less the meat and potatoes:
public void CreateEquipmentBAQDV()
{
bdvEquipment = new BAQDataView("DMR_TEST");
oTrans.Add("Equipment", bdvEquipment);
}
public void SetupAttrListControl()
{
PartForm.Controls.Add(_atrpnl);
_atrpnl.Parent = (Control)csm.GetNativeControlReference("7e218246-2f6b-4309-88c1-a403231d3acf");
_atrpnl.Left = 8;
_atrpnl.Top = 48;
_atrpnl.Width = 350;
_atrpnl.Height = 300;
_atrpnl.PreserveSourceList = false;
_atrpnl.ReadOnly = true;
/** The following is broken down into a few simple parts. It generates a string list delimited by whatever character you would like
** This is only one of many implementations of InitDataBind. A screenshot above shows all of them. This is the only one I know how to use.
** It was modeled after the attributes in Customer Entry
** @SourceDataView (string) - This is the dataview containing the values for your source (left) list
** @SourceValueMember (string) - Think of this in terms of the dropdown list Value Member
** @SourceDisplayMember (string) - Think of this in terms of the dropdown list Display Column
** @StringDelimiter (char) - This is the character that you would like to use to seperate your values. Epicor typically uses ~ but you may use whatever suits your need
** @TargetColumn (string) - The column binding to insert the delimited string into
** @TargetDataView (string) - The dataview that your column to insert the string into resides.
** @Trans (EpiTransaction) - duh....
**/
_atrpnl.InitDataBind("Equipment", "Equip_EquipID", "Equip_Description", ',', "AssignedTools_c", "PartPlant", oTrans);
}