I am hoping that new eyes can tell me what is wrong with this DCT.I have a really basic DCT. When I add the simplest of js/formapi, it fails. Here is the script (attached are version1 (no js/formapi) and version2 (with script below) :[HTML] init(); function init() { hID = 9; IWDatacapture.getItem("/monkey").setValue(hID); IWDatacapture.getItem("/msgBox").setValue("Highest ID used so far: " + hID); }]]> [/HTML] Success: a. Click New Form Entryb. Select form typec. Enter datad. Click Generatee. Save DCRf. Receive choice of TPL's and choose oneg. name generated file and save itFailure:When I add the script above, it fails at f. After I save the DCR, it seems to churn for a bit and then stops, with a JS 'finished with errors' at the bottom of the screen (but, I NEVER get to the point where I can choose the TPL.)Again, if I remove the script above, it all works seamlessly.Thanks in advance for any assistance.jt
Unfortunately, neither of those fixes worked. To recap, I first added the trigger and removed the direct call. This did not fix the issue. I then removed the script tag attribute of language. Also did not work.I also must apologize, because my initial explanation was not entirely true:The FAILURE occurs when it tries to SAVE the new dcr. I click Generate and the box pops up for me to name the DCR. I name it and it fails when it tries to build the dcr (JS error : 'Object does not support this method.')BUT (man, I hope you guys are following this), if I edit an existing templated file (created when the DCT did NOT have the formapi in it), I can (re)generate it without any problems at all.