Hi,
I want to do autogeneration of htmls on 'onclose' event of teamsite 5.5.
On onclose event in my js i am calling a ipl using a callsever. In that ipl iam using iwgen clt to auto generate my dcr
js code:
init();
function init() {
IWEventRegistry.addFormHandler("onClose", onClose);
}
function onClose(button)
{
var server = window.location.hostname
var params = new Object();
IWDatacapture.callServer("http://" + server + "/iw-bin/eim_autogenerate.ipl", params,true);
return true;
}
function calldcrallert(dcrSavePath)
{
alert("call dcr allert");
}
-------------------------------------------------------------------------
eim_autogenerate.ipl code :
#!/iw-home/iw-perl/bin/iwperl
use CGI;
use Data:

umper;
use TeamSite::XMLparser;
use TeamSite::Config;
my $ex_cmd="/iw-home/bin/iwgen -t /default/main/BT/premigration/development/global/WORKAREA/contentupdate/templatedata/content/header_footer/presentation/header_footer.tpl -r /default/main/BT/premigration/development/global/WORKAREA/contentupdate/templatedata/content/header_footer/data/global_page/header/ff_header /default/main/BT/premigration/development/global/WORKAREA/contentupdate/media/static/wa/temp_222.html ";
my $returnedValue = `$ex_cmd `;
print qq{
body onload='parent.getScriptFrame().calldcrallert("/global_page/bbb_header");
};
exit;
--------------------------------------------------------------
My ipl is getting called and is returning the value to calldcrallert function.
But my iwgen clt is not executing . Html file is not getting generated.
it is giving the error as:
/default/main/BT/premigration/development/global/WORKAREA/contentupdate/media/static/wa/temp_222.html: could not create
When i am running the same clt from backend then it is executing properly but in my ipl file it is not working.
Could anyone suggest me where i am wrong and why my clt is not getting executed.