Has anyone gotten this to work? I've written a javascript function that is called from the Datacapture template. It actually has two functions. The first is this:function init() {IWEventRegistry.addFormHandler("onSave", saveHandler);}where I register the savehandlerThe second function is called saveHandler and is almost exactly out of the manual where I use a case statement and check the IWDCRInfo.getStatus to see if it's Available, Pending or unavailable. From that I'd like to get the DCR filename so I can automatically update a field in the DCR.This is my code for the second function:----- my code for second function begins here -----function saveHandler() { if (typeof IWDCRInfo != "undefined") && (IWDCRInfo != null) { var DRCName = ""; //Get Status of DCR alert("in there " + IWDRCInfo.getStatus()); switch (IWDRCInfo.getStatus()) { case IWDRCInfo.AVAILABLE: DCRName = IWDCRInfo.getDCRName(); alert(DCRName); break; case IWDCRInfo.PENDING: DCRName = "Pending"; alert(DRCName); break; case IWDCRInfo.UNAVAILABLE: DCRName = "Unavailable"; alert(DRCName); break; default: alert("oops"); } return true; } // Call the initialization routine on load. IWEventRegistry.addFormHandler("onFormInit", init); alert("completed dcrinfo.js");}------ my code ends here for second function -----The issue I'm having is that IWDCRInfo is coming up as undefined. I put a check around the function to determine this. Any help is appreciated.
Might help if you spell DCR correctly