I created a form string control on VendInvoiceProdReceiptNotInvoiced form .
Then I used
[Extensionof(tablestr(VendInvoiceProdReceiptNotInvoiced))]
Final class test ()
{
Public display str testa()
{
Purchtable tab;
VendInvoiceProdReceiptNotInvoiced tab2;
Select tab where tab.purchid == tab2.purchid;
Return purchid.invensiteid;
}
}
However I am getting the error;
Unable to cast object of type 'dynamics.ax.application..forms.VendInvoiceProdReceiptNotInvoiced' to type 'Microsoft.Dynamics.Ax.Xpp.Common'
Then on the formstring I put data method.