Hi, I need to add a field value in the customers form to my custom form. I tried using field selecting to achieve this but no value is populated to the custom form.
protected void NCPMCustomerMaster_Outstanding_FieldSelecting(PXCache cache, PXFieldSelectingEventArgs e)
{
NCPMCustomerMaster row = (NCPMCustomerMaster)e.Row;
if (row != null)
{
Customer customerObj = PXSelect<Customer, Where<Customer.acctCD, Equal<Required<Customer.acctCD>>>>.Select(this, row.CustomerIntType);
if (customerObj != null)
{
row.Outstanding = customerObj.Balance;
}
}
}
Best answer by andriikravetskyi35
View original