Can the backupDatabase() method save a .adb to the client? In the code snippet below the statement "dbAdmin.backupDatabase(oDatabase,oFile)" seems to always return FALSE when the path is on the client. When the path is not included, the statement returns TRUE. I can't find the backup file. I don't have access to the server except thru the client and server admin tool.
Thank you for your help.
//Select the target folder
var selectedFolders=Dialogs.getClientFolder("Select the target folder for backups","",false);
Context.setSelectedPath(selectedFolders[0]);
Context.setSelectedFile(sDBName+"_"+startTime.toDateString());
var sPath=Context.getSelectedPath()
var sFile=Context.getSelectedFile();
var oFile=new java.io.File(sPath,sFile);
if(dbAdmin.backupDatabase(oDatabase,oFile)){
//Log backup result
sMessage=sDBName+" was backed up on "+new Date();
oExcelSheet1.cell(nRow1,nCol1).setCellValue(sMessage);
//oExcelSheet1.cell(nRow1,nCol1).setCellStyle(cellStyleTrans);
nCol1++;
}else{
//Log backup result
sMessage=sDBName+" could not be backed up on "+new Date();
oExcelSheet1.cell(nRow1,nCol1).setCellValue(sMessage);
//oExcelSheet1.cell(nRow1,nCol1).setCellStyle(cellStyleTrans);
nCol1++;
}