ENV: TS 6.7.2 SP2 - Win2K3
Has anyone ever used IWPageGeneration commands to generate multiple output files?
I have something like so (fired from the onSaveValid event):
function save_ok() {
var name = IWDCRInfo.getDCRName().replace(/\.xml$/, ".html");
IWPageGeneration.setOutputFile(name, true);
IWDatacapture.save();
return true;
}
that will successfully create /foo.html. I now want to add to the function, a command, like so:
function save_ok() {
var name = IWDCRInfo.getDCRName().replace(/\.xml$/, ".html");
var htmlName = "/html/" + name;
IWPageGeneration.setOutputFile(name, true);
IWPageGeneration.setOutputFile(htmlName, true);
IWDatacapture.save();
return true;
}
Which will only successfully create /html/foo.html. Is it that I can only generate one file per "on save" transaction?
TIA