JmgCleanupTermReg.initFileHandle Method [AX 2012]
Initializes the CommaTextIo, opens the archive file in write mode, and sets the field delimiter to a comma and the record delimiter to a carriage return and a newline character.
Syntax
private void initFileHandle()
Run On
Called
Examples
The following example demonstrates the use of this method.
public boolean getFromDialog()
{
boolean ret;
ret = super();
cleanupMode = dfCleanupMode.value();
maxAge = dfMaxAge.value();
archiveFileName = dfArchiveFileName.value();
if (maxAge < 30)
{
ret = checkFailed("@SYS39825");
}
if (ret && cleanupMode == JmgTermRegCleanupMode::ToFile)
{
if (!archiveFileName)
{
ret = checkFailed("@SYS18624");
}
else
{
this.initFileHandle();
}
}
return ret;
}