We recently upgraded from E9 to E10 and our purchasing team has noticed a change in the default behavior of the Suppler Button on the details tab of the Supplier Tracker page. In E9, after selecting a Supplier the button would stay enabled and allow the user to click it to select a new Supplier. In E10, after selecting a Supplier (via typing in or search select) the button becomes disabled and the only way to change Supplier is by manually clearing the window with the broom icon. We would like to return to E9 functionality with this if possible, but are unsure what is causing this and how to change it.
E10, I always have to use the broom to get the supplier button enable again.
If you insist to fix it, you can do a customisation and whenever the textBox Name change, enable the Supplier button again. I have attached the simple code below.
Change the code on the guid for the Name text box and the Supplier button guid.
Hope this helps.
// **************************************************
// Custom code for SupplierTrackerForm
// Created: 5/10/2018 9:49:13 AM
// **************************************************
extern alias Erp_Contracts_BO_Vendor;
extern alias Erp_Contracts_BO_APInvoice;
extern alias Erp_Contracts_BO_LogAPInv;
extern alias Erp_Contracts_BO_APPromissoryNotes;
extern alias Erp_Contracts_BO_PaymentEntry;
using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Windows.Forms;
using Erp.Adapters;
using Erp.UI;
using Ice.Lib;
using Ice.Adapters;
using Ice.Lib.Customization;
using Ice.Lib.ExtendedProps;
using Ice.Lib.Framework;
using Ice.Lib.Searches;
using Ice.UI.FormFunctions;
public class Script
{
// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
// Begin Wizard Added Module Level Variables **
Ice.Lib.Framework.EpiTextBox txtName;
// End Wizard Added Module Level Variables **
// Add Custom Module Level Variables Here **
public void InitializeCustomCode()
{
// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
// Begin Wizard Added Variable Initialization
// End Wizard Added Variable Initialization
// Begin Wizard Added Custom Method Calls
txtName = ((Ice.Lib.Framework.EpiTextBox)(csm.PersonalizeCustomizeManager.ControlsHT["78720c07-d5a7-42f4-baea-399dc02bb0d3"]));
txtName.ValueChanged += new System.EventHandler(this.txtName_ValueChanged);
//this.epiTextBoxC1.ValueChanged += new System.EventHandler(this.epiTextBoxC1_ValueChanged);
// End Wizard Added Custom Method Calls
}
public void DestroyCustomCode()
{
// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
// Begin Wizard Added Object Disposal
txtName.ValueChanged -= new System.EventHandler(this.txtName_ValueChanged);
// End Wizard Added Object Disposal
// Begin Custom Code Disposal
// End Custom Code Disposal
}
private void txtName_ValueChanged(object sender, System.EventArgs args)
{
// ** Place Event Handling Code Here **
Ice.Lib.Framework.EpiButton button = ((Ice.Lib.Framework.EpiButton)(csm.PersonalizeCustomizeManager.ControlsHT["fd5cdf41-9d75-4e56-aeb3-b305e2cafd6d"]));
button.ReadOnly = false;
}
}
You can also click the binoculars to get the search form.
Mark W.
2 Likes