Is there an easy way to also have the file regenerate?
My goal is to not prompt the user AND to regenerate the file.This does assume that we are working on a DCR with a generated file that does exist.The user should click "Next/Finish" and workflow should kickoff. I would like the regenerated file and the DCR to move into workflow. I've got the following to suppres the prompt to regnerate the file when a user clicks next:IWEventRegistry.addFormHandler("onClose", noRegen);Is there an easy way to also have the file regenerate?Thanks,Steve
data/
Automatically generating content is a real issue with TeamSite. The business do not care what is generated they just want to update their content. I wrote a module that is configured with an xml file. In that file you define the DCR to TPL relationship and most importantly where the content should be generated. If you are working on a large scale implementation then you need something like this.
I forgot to mention that the mapping is based on regex, so mapping allows you to generate content of a particular type into a particular directory. Below is an exaple mapping file :-<config><host name="server"> <branch name="/default/main"> <dcrmapping version="1.0"> <match name="Framework" vpath="templatedata/content/area"> <presentation alias="1" filter="1" type="directory" value="area.tpl" extension=".jsp" prefix="" postfix="" directory="vm/clients/jsp" hierarchy="true" generate="1"> </presentation> </match> <match name="Framework1" vpath="templatedata/content/handset"> <presentation alias="1" filter="1" type="directory" value="morePictures.tpl" extension=".html" prefix="" postfix="" directory="vm/clients/handset" hierarchy="true" generate="1"> <match name="Framework8" vpath="templatedata/content/phoneabroad"> <presentation alias="1" filter="1" type="specific" value="payg_countries.tpl" extension=".jsp" prefix="" postfix="" dest="vm/clients/jsp/phoneabroad/payg_countries" hierarchy="true" generate="1"> </presentation> <presentation alias="1" filter="1" type="specific" value="payg_regions.tpl" extension=".jsp" prefix="" postfix="" dest="vm/clients/jsp/phoneabroad/payg_regions" hierarchy="true" generate="1"> </presentation> <presentation alias="1" filter="1" type="specific" value="pm_countries.tpl" extension=".jsp" prefix="" postfix="" dest="vm/clients/jsp/phoneabroad/pm_countries" hierarchy="true" generate="1"> </presentation> <presentation alias="1" filter="1" type="specific" value="pm_regions.tpl" extension=".jsp" prefix="" postfix="" dest="vm/clients/jsp/phoneabroad/pm_regions" hierarchy="true" generate="1"> </presentation>