Hello All,
I use jumpref() to make AX Data auto link to Ax Transaction Form.
Form InventSum inside Grid Field data ,when user click the data(number),
Ax will auto open the InventTrans form (by ItemId).
I use jumpref, but can't work.
I don't know how to get the record between the InventTans Table and InventSum Table.
Please help and Thanks.
==========================
My problem is:
below is my code that compile is OK.
but when in running (use mouse that right click the view detail function) get the error message:
Could not process the lookupRecord value on the Args instance. The table 'InventTrans' does not exist as a root FormDataSource for the form 'InventTrans'.
==========================>My code
public void jumpRef()
{
//super();
Args locArgs = new Args();
//* DirPartyTable locDirPartyTable;
InventTrans inventTrans;
locArgs.caller(this);
// Find and set buffe ------ I don't know how to do this!!
inventTrans = InventTrans:: find (InventSum.ItemId); // InventTrans no find ItemId method??
//* locDirPartyTable = DirPartyTable::findRec(CustTable::find(SalesTable.CustAccount).Party);
inventTrans.ItemId = InventSum.ItemId;
// Set record
//* locArgs.record(locDirPartyTable);
locArgs.record(inventTrans);
locArgs.lookupRecord(inventTrans);
new MenuFunction(menuitemDisplayStr(InventTransItemIdx), MenuItemType::Display).run(locArgs);
}
*This post is locked for comments