SysImport without confirmation dialog
If you run a something like the following, you'll be met with a confirmation dialog for existing elements.
private void importAOT(str fileName)
{
SysImportElements sysImport = new SysImportElements();
sysImport.newFile(fileName);
sysImport.parmImportAot(true);
sysImport.import();
}
This is of course not desirable if you are trying to write some kind of automated task. Change the sysImport.import statement to this:
sysImport.import(#impRemoveExcess | #impIgnoreCheckStatus);
The macros are located in AotExport.
This posting is provided "AS IS" with no warranties, and confers no rights.
Comments
- Anonymous
June 18, 2008
PingBack from http://axaptasource.com/2008/06/sysimport-without-confirmation-dialog-7/