Custom table is ImpInboundData and it has a field JournalNum. On click of button "Open General Journal Lines", I want to open LedgerJournalTransDaily form based on JournalNum available in Custom table.
public void clicked()
{
Args args;
LedgerJournalTable ledgerJournalTable;
ImpInboundData impInboundData;
LedgerJounralId ledgerJournalId;
impInboundData = impInboundData_ds.cursor();
ledgerJournalTable = LedgerJournalTable::find(impInboundData.JournalNum);
if(ledgerJournalTable.RecId)
{
args = new Args();
args.name(formStr(LedgerJournalTransDaily));
args.record(ledgerJournalTable);
new MenuFunction(menuItemDisplayStr(LedgerJournalTransDaily),MenuItemType::Display).run(args);
}
else
{
warning("Journal Not Found");
}
}
Attached error screenshot.

Report
All responses (
Answers (