static void
Addit_getNextRecId(Args _args)
{
//Table that stores record ids details for tables
SystemSequences SystemSequences;
//Class that handles Record id generation
SystemSequence systemSequence = new
SystemSequence();
;
info(strFmt("%1",
tableNum(SalesTable)));
systemSequence.suspendRecIds(tableNum(SalesTable));
info(strFmt("Next
record id: %1", systemSequence.reserveValues(1,tableNum(SalesTable))));
systemSequence.removeRecIdSuspension(tableNum(SalesTable));
}
0 comments:
Post a Comment