Hi all,I am generating a page on the click of Finish Button.But My problem here is:1.Yes it's possible, but I'm not sure if it is really advisable.2. Basically onSaveDone event handler that does a callServer() which generates the html - however, since this is asynchronous and happens after the save has been completed - what do you do if the generation fails?3.You could send an alert to the user - but the widow might not still be open so they won't see it. If they do see it - might it not be more confusing than helpful?Is It would probably be better to do something like this as part of a workflow task.So, My Idea is to generate the html as a part of the workflow,But our requirement is that "If the user clicks Finish Button at the backend html should be generated and should be deployed to test environment".So, I have to consider the case:1.If the genertion step fails after the workflow started, then the workflow sits there.without going to deployment step and is there any way that i suggest the user that generation is failed?Thanks in advance
You need to push back on the qualifications of the "requirement" - the page generation should be done as part of a workflow
...and in the checkstatus function i called IWDatacapture.save if DCR already exists.and in the onsavedone i am using iwft_compile.ipl? so, I wil gain have the same problem that the initiation of the workflow might fail as I am handling in the OnsaveDone..Any help is appreciated..How can I hanle this?Thanks in advanceThanks in Advance
Ghoti,Thanks for the reply and thanks for your patience..explaining me the pros and cons.
#!D:\Interwoven\TeamSite/iw-perl/bin/iwperluse TeamSite::CGI_lite;use TeamSite::Config;my $iwhome = TeamSite::Config::iwgethome();my $iwmount = TeamSite::Config::iwgetmount();use CGI;#Turn buffering off.$| = 1;my $IWGEN = $iwhome . "/bin/iwgen";my $in = new CGI;my $workarea = $in->param('workarea');my $templatepath = $in->param('templatepath'); my $recordvpath = $in->param('recordvpath');my $outputFile = $in->param('outputFile');my $genfile = $iwmount . $workarea . $outputFile;my $Success = "";my $cmd = qq[$IWGEN -t "$templatepath" -r "$recordvpath" "$genfile"];$Success = `$command 2>&1`; chomp($Success);debug($Success);$Success = CGI::escape($Success); ### Close the scriptexit;