Hi All,I've already spent too much time on this one, but...When a user fills out a new DCT form and clicks either Finish (in CCPro) or Next (in CCStd) I'm need to force the process to automatically go into the generate step, which obviously automatically saves the dcr and prompts the user for an output file name. Otherwise, users can fill in a DCT, save the DCR and go away and never find that dcr again and they get all confused. I want to force the generation as part of the creation phase, not the workflow phase.Obviously, when editing an existing generated page, this is not an issue, its only when creating a new one I want to make life easier for users. I have tried leveraging:-C:\iw-home\httpd\webapps\content_center\formspub\datacapture.js-C:\iw-home\httpd\webapps\content_center\formspub\dcapi_datacapture.js-Form API calls-templating.cfg tweaks, etc. etc. but no luck. Has any one ever done this or have any ideas? I'd can't put this as a step in the workflow (for reasons beyond the scope of this thread).Thoughts?KeithPhilips Medical SystemsTeamSite 6.5 sp2Windows 2003
Hi Ghoti,Sure can. Basically I simply want to ensure that when someone clicks "Finish" on the new DCT screen, that it first saves, then generates, then closes. By default, is simply saves and closes, which is what its supposed to do.I tried trapping the SaveandClose event using FormAPI and force it to call generate as shown below, and no luck. Thougths?//force a Generate if user clicked Finish button. //alert("in saveHandler:"+button); /*switch (button) { case IWDatacapture.SAVE_BUTTON: alert("It is Save!"); break; case IWDatacapture.SAVEAS_BUTTON: alert("It is Save As!"); break; case IWDatacapture.SAVECLOSE_BUTTON: alert("Is it Finish?"); //top.iw_wizard_doFinish(); //top.iw_wizard_goSubmit(); //top.postGenerateForm(); //var finish = parent.document.getElementById("iw.base.wizard.finish.button"); //finish.href='javascript:parent.getScriptFrame().customFinishHandler();'; //datacapture.generatecmd top.doGenerate(); break; }*/