EpiUltraCombo showing several columns

I guess I mis-understood.  I thought you wanted more than one column.  The UltraCombo is for multiple columns.  When I only want one, I tend to use the epiCombo.  Having said that…  In customization properties you should see “Col1ManualWidth” etc under “Misc”.  I set the ones I don’t want to show to 0.

 

Brenda

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Thursday, May 15, 2014 12:35 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] EpiUltraCombo showing several columns

 

 

Thank you Brenda,

 

I'm not a code person, so looking at this, I'm not seeing any difference between what you have and what I have except you are displaying 2 fields.  I'm pasting my code:

 

 

private void SearchOnManufacturerAdapterFillDropDown()

            {

                        // Wizard Generated Search Method

                        // You will need to call this method from another method in custom code

                        // For example, [Form]_Load or [Button]_Click

 

                        bool recSelected;

                        string whereClause = string.Empty;

                        System.Data.DataSet dsManufacturerAdapter = Epicor.Mfg.UI.FormFunctions.SearchFunctions.listLookup(this.oTrans, "ManufacturerAdapter", out recSelected, false, whereClause);

                        if (recSelected)

                        {

                                    // Set EpiUltraCombo Properties

                                    this.EUCManufacturer.ValueMember = "MfgID";

                                    this.EUCManufacturer.DataSource = dsManufacturerAdapter;

                                    this.EUCManufacturer.DisplayMember = "Name";

                                    string[] fields = new string[] {

                                                            "Name"};

                                    this.EUCManufacturer.SetColumnFilter(fields);

                        }

            }

 

            private void EUCManufacturer_BeforeDropDown(object sender, System.ComponentModel.CancelEventArgs args)

            {

                        // ** Place Event Handling Code Here **

                        SearchOnManufacturerAdapterFillDropDown();

 

I created an EpiUltraCombo to get the manufacturer name on the Job Details.  I created the code using the simple search wizard then the event wizard, and it works great, except for one thing, the drop down displays several columns, not just the manufacturer name.  What am I missing?

I added the columns in the code:  (this is E9.05.702 code).

 

                private void SearchOnPartAdapterFillDropDown()

                {

                                // Wizard Generated Search Method

                                // You will need to call this method from another method in custom code

                                // For example, [Form]_Load or [Button]_Click

 

                                bool recSelected;

                                string whereClause = string.Empty;

                                System.Data.DataSet dsPartAdapter = Epicor.Mfg.UI.FormFunctions.SearchFunctions.listLookup(this.oTrans, "PartAdapter", out recSelected, false, whereClause);

                                if (recSelected)

                                {

                                                // Set EpiUltraCombo Properties

                                                this.ucbPartNum.ValueMember = "PartNum";

                                                this.ucbPartNum.DataSource = dsPartAdapter;

                                                this.ucbPartNum.DisplayMember = "PartNum";

                                                string[] fields = new string[] {

                                                                                "PartNum", "PartDescription"};

                                                this.ucbPartNum.SetColumnFilter(fields);

                                }

                }

 

                private void RMAProcForm_Load(object sender, EventArgs args)

                {

                                // Add Event Handler Code

                                SearchOnPartAdapterFillDropDown();

                }

}

 

Brenda

E10.500.1

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Wednesday, May 14, 2014 2:06 PM
To: vantage@yahoogroups.com
Subject: [Vantage] EpiUltraCombo showing several columns

 

 

I created an EpiUltraCombo to get the manufacturer name on the Job Details.  I created the code using the simple search wizard then the event wizard, and it works great, except for one thing, the drop down displays several columns, not just the manufacturer name.  What am I missing?

Thank you Brenda,

I'm not a code person, so looking at this, I'm not seeing any difference between what you have and what I have except you are displaying 2 fields.  I'm pasting my code:


private void SearchOnManufacturerAdapterFillDropDown()
{
// Wizard Generated Search Method
// You will need to call this method from another method in custom code
// For example, [Form]_Load or [Button]_Click

bool recSelected;
string whereClause = string.Empty;
System.Data.DataSet dsManufacturerAdapter = Epicor.Mfg.UI.FormFunctions.SearchFunctions.listLookup(this.oTrans, "ManufacturerAdapter", out recSelected, false, whereClause);
if (recSelected)
{
// Set EpiUltraCombo Properties
this.EUCManufacturer.ValueMember = "MfgID";
this.EUCManufacturer.DataSource = dsManufacturerAdapter;
this.EUCManufacturer.DisplayMember = "Name";
string[] fields = new string[] {
"Name"};
this.EUCManufacturer.SetColumnFilter(fields);
}
}

private void EUCManufacturer_BeforeDropDown(object sender, System.ComponentModel.CancelEventArgs args)
{
// ** Place Event Handling Code Here **
SearchOnManufacturerAdapterFillDropDown();