JmgCleanupTermReg::termReg2Container Method [AX 2012]
Converts a JmgTermRegArchiveMap record to a container.
Syntax
client server public static container termReg2Container(JmgTermRegArchiveMap _input)
Run On
Called
Parameters
- _input
Type: JmgTermRegArchiveMap Map
A JmgTermRegArchiveMap record that should be converted to a container of values.
Return Value
Type: container
A container that contains values from the JmgTermRegArchiveMap map.
Examples
The following example demonstrates the use of this method.
private void archiveToFile(QueryRun _queryRun)
{
JmgTermRegArchiveMap input;
int noOfRecords;
;
noOfRecords = 0;
fileHandle.writeExp(this.getHeader());
while (_queryRun.next())
{
input = _queryRun.getNo(1);
input.selectForUpdate(true);
fileHandle.writeExp(JmgCleanupTermReg::termReg2Container(input));
input.doDelete();
noOfRecords++;
progress.setCount(noOfRecords);
}
}