Thanks much for your response.I am making sure that user clicks the 'save' button to save the DCR before clicking 'preview'. So I have the DCR name at the time of clicking preview.But on click of preview, how i can generate the expected output file name instead of zz_tst... file. At what point of time the user will be prompted to set the generated page name then?I have attached the FormAPI code for further reference.
mumbleFratz.xml (DCR) => mumbleFratz.html (output)
var OutputFilename=IWPageGeneration.getOutputFile ();
templatedata/.*/data/