Hello experts,
I want to add field FullName of DefBillContactID to selector of CustomerID
I use the following code but it doesn’t work.
[PXCustomizeSelectorColumns(
typeof(PX.Objects.CR.BAccountR.acctCD),
typeof(PX.Objects.CR.BAccountR.acctName),
typeof(PX.Objects.CR.Address.addressLine1),
typeof(PX.Objects.CR.Address.addressLine2),
typeof(PX.Objects.CR.Address.postalCode),
typeof(PX.Objects.AR.CustomerAttribute.Contact.phone1),
typeof(PX.Objects.CR.Address.city),
typeof(PX.Objects.CR.Address.countryID),
typeof(PX.Objects.AR.CustomerAttribute.Location.taxRegistrationID),
typeof(PX.Objects.AR.Customer.curyID),
typeof(PX.Objects.AR.CustomerAttribute.Contact.attention),
typeof(PX.Objects.AR.Customer.customerClassID),
typeof(PX.Objects.AR.Customer.status),
typeof(PX.Objects.AR.Customer.defBillContactID),
typeof(PX.Objects.CR.Contact.fullName))]
[Customer(Visibility = PXUIVisibility.SelectorVisible, Filterable = true, TabOrder = 2)]
[PXRestrictor(typeof(Where<Customer.status, Equal<CustomerStatus.active>,
Or<Customer.status, Equal<CustomerStatus.oneTime>,
Or<Customer.status, Equal<CustomerStatus.hold>,
Or<Customer.status, Equal<CustomerStatus.creditHold>>>>>), Messages.CustomerIsInStatus,
typeof(Customer.status), typeof(InnerJoin<Contact, On<Customer.defBillContactID, Equal<Contact.contactID>>>))]
[PXUIField(DisplayName = "Customer", TabOrder = 2)]
[PXDefault()]
Could you please advise me?
I am wondering if it is possible to bring this field to Selector of CustomerID or not since it is in 2 level deep
Regards,
Khoi
Best answer by andriikravetskyi35
View original