Hi,
I’m new to the acumatica development and I had to create a new screen, In the screen I need to get customer currency code after the customer is selected.
This is my DAC code for customer
#region CustomerID
>PXDefault]
rCustomerActive(DisplayName = "Customer",DescriptionField = typeof(Customer.acctName))]
public virtual int? CustomerID { get; set; }
public abstract class customerID : PX.Data.BQL.BqlInt.Field<customerID> { }
#endregion
This is my Field Update event is Graph.cs file
protected void _(Events.FieldUpdated<APProforma,
APProforma.customerID> e)
{
APProforma row = e.Row;
if (row.CustomerID != null)
{
Customer cust = PXSelectorAttribute.Select<
APProforma.customerID>(e.Cache, row) as Customer;
row.currency = cust.CuryID;
}
}
After I adding the above code into my graph in the screen customer name is not set with customer field.
Anyone can help for this.
Below i have add both DAC and graph file for your reference.
Thanks You