HI All
The following code when executed is opening customer form for account number specified i.e. 0001
static void Job1(Args _args)
{
MenuFunction menuFunction;
CustTable bufferRecord;
_args = new Args();
bufferRecord = CustTable::find('0001');
menuFunction = new MenuFunction(menuitemDisplayStr(CustTable), MenuItemType::Display);
_args.record(bufferRecord);
menuFunction.run();
}
but when the same code is executed for the custom table is opening first record in table instead of the record with recid 5637161829.
static void Job1(Args _args)
{
MenuFunction menuFunction;
MyCustomTable bufferRecord;
_args = new Args();
bufferRecord = MyCustomTable::findbyRecId(5637161829);
menuFunction = new MenuFunction(menuitemDisplayStr(MyCustomTable), MenuItemType::Display);
_args.record(bufferRecord);
menuFunction.run();
}