I am trying to debug the code done by the previous SI.
protected void VendorAccountMapping_ApAcctID_FieldUpdated(
PXCache cache,
PXFieldUpdatedEventArgs e)
{
VendorAccountMapping row = (VendorAccountMapping)e.Row;
Account account = PXResultset<Account>.op_Implicit(PXSelectBase<Account, PXSelect<Account, Where<Account.accountID, Equal<Required<Account.accountID>>>>.Config>.Select((PXGraph)this, new object[1]
{
(object) row.Apacctid
}));
if (account == null)
return;
row.Apacctcd = account.AccountCD;
row.APAcctDesc = account.Description;
}
The above code was salvaged from dll file but when I tried to replicate it in Visual Studio, this error was shown instead and the code couldn't be compiled.
What causes this error and how can I possibly fix it?
Suggest you try this simpler statement
Account account = SelectFrom<Account>.Where<Account.accountID.IsEqual<@P.AsString>>.View.Select(this,row.Apacctid);