Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Generate out put file name validations
kumardas
Hi,
I need to do the validations for the generate out put file name. In DCR, When we click on Generate button, it opens a dialogue box. Then we enter select path and enter file name for out put file and then click on ok. The .html file will be generated with the given name in dialogue box.
Now i need to do the validations for this file name. I am trying to use onGenerate event. But it is not showing the generate dialogue box at all, if i use onGenerate event. If this is the case, where user can enter name for the out put file ?
Please suggest me.
Find more posts tagged with
Comments
Rick Poulin
Either use a JavaScript prompt() or capture that information in a DCR field. You won't have a fancy browser widget though, unless you somehow use a browser field to capture a folder? I don't even think that's possible because it has to pick files, so if you want something more than a plain text field, you have some work to do.
This is perhaps easier if the folder path to the DCR matches the target folder path as a rule, in which case you can ask for just the file name.
ISCBorisB
But it is not showing the generate dialogue box at all, if i use onGenerate event.
onGenerate triggers before the form is generated. So, make sure that your event handler returns boolean "true" if you want to continue.
As to getting the name, check IWPageGeneration Object. It provides some access to Form Settings, *may* help...