Hi team,
I am doing customization on selector Customer ID on screen AR303000 to bring field Contact.fullName to selector view as following:
but I got error timeout when enter a text to search
The selector Customize ID is customized the field with following code:
using PX.Data;
using PX.Objects.CR;
namespace PX.Objects.AR
{
// Acuminator disable once PX1016 ExtensionDoesNotDeclareIsActiveMethod extension should be constantly active
[PXNonInstantiatedExtension]
public class AR_Customer_ExistingColumn : PXCacheExtension<PX.Objects.AR.Customer>
{
#region AcctCD
[PXMergeAttributes(Method = MergeMethod.Merge)]
[PXSelector(typeof(Search2<Customer.acctCD,
InnerJoin<Contact, On<Customer.defBillContactID, Equal<Contact.contactID>>,
InnerJoin<Address, On<Contact.bAccountID, Equal<Address.bAccountID>>,
InnerJoin<Location, On<Address.addressID, Equal<Location.defAddressID>>>>>>),
typeof(Customer.acctCD),
typeof(Customer.status),
typeof(Customer.customerClassID),
typeof(Customer.acctName),
typeof(Contact.fullName),
typeof(Location.taxRegistrationID),
Filterable = true,
DescriptionField = typeof(Customer.acctCD))]
public string AcctCD { get; set; }
#endregion
}
}
it is weird because I used the same code to customize selector Customer on screen Payments and Applications and it works fine, doesn’t face timeout issue.
I attached source code (Customer_classLibrary) and package (Customer_customizationProject) so that you could address the issue easily
Best answer by Naveen Boga
View original