Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
how to keep output file name non editable on clicking ongenerate link
johnmukkad123
hi friends, i need to set the output file name with a predefined file name and non editable on clicking the ongenerate link in dcr edit window. when clicking on ongenerate button by default it will open a popup window and there is a browse option to set the output path manually. instead of this i want to set the outputfile name by predefined name in the popup window.
for this i added a javascript function and registered a form handler for ongenerate event. and i set the outputfile name using the command
IWPageGeneration.setOutputFile ("output_files/myfolder/myfilename")
it is setting outputfile name but we need to set the output file name in new popup window in the textbox near by browse button. right now the default popup window is not opening.how to call that popup window programatically in javascript and how to set that path in output file name text box ?
function init()
{
alert("in init method>>>");
IWEventRegistry.addFormHandler("OnGenerate", handleNameDCR);
}
function handleNameDCR(){
alert("in handleNameDCR"+IWPageGeneration.getOutputFile());
if(IWPageGeneration.getOutputFile() == "") {
alert("in handleNameDCR if condition >>");
IWPageGeneration.setOutputFile("output_files/myfolder/myfilename")
}
}
Find more posts tagged with
Comments
There are no comments yet