Hi all,
perhaps it''s already posted earlier. but for mass data upload I want to automate this. As a basis I use the Import translated attributes report. but this contains some user dialogs.
What functions can be used to get the same result as
var sfiles = Dialogs.BrowseForFiles(sdefname, sdefext, sdefdir, stitle, 0); but than hard coded.
Hi mr.Linschoten,
It's better have to change your problem. When you are be able to copy your file to the ARIS server (do this in your batch), you can read your file with
function getByteArrayByFile(sFileLocation){
var bData=[]
var oFileInputStream=new Packages.java.io.FileInputStream(sFileLocation)
var lCount = oFileInputStream.available();
for (var i=0;i<lCount ;i++){
bData.push(oFileInputStream.read())
}
}
try{oFileInputStream.close()}catch(ex){}
return bData
}
kind regards,
Ariene Kroeze