Hi, all
I create PXCacheExtension<PMProformaLine> and add new custom field.
Next i override method BillTask.
In this method base functional create
PMProformaTransactLine line = new PMProformaTransactLine();
And when i try this AKTPMProformaLineExt lineExt = line.GetExtension<AKTPMProformaLineExt>();
I get this error. GetItemExtension failed.
Solved
GetExtension failed
Best answer by Naveen Boga
Hi
Database table - PMProformaLine
CacheExtension - PMProformaTransactLine
PMProformaTransactLine line = new PMProformaTransactLine();
// logic
line = ProformaTransactDetails.Insert(line);
and then use AKTPMProformaLineExt lineExt = line.GetExtension<AKTPMProformaLineExt>();
I think it should work, if not please share the your CacheExtension DAC and GraphExtension code as well, if possible.
Login to the community
No account yet? Create an account
Social Login
Login with your Acumatica accountEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.