We have upgraded our TeamSite from 5.5.2 SP6 to 6.5 SP2 (this is in a Windows 2000 Server environment). We have a template that uses FormAPI to autogenerate the DCR name and it worked fine under 5.5.2. Now with 6.5 it hangs on the line where IWDatacapture.save() is called. I've determined this by using alert() statements. I've also determined that everything should be fine up to this point (DCR name is set, all fields are valid, etc). Has anyone else experienced problems with IWDatacapture.save() after upgrading to TS 6.5 SP2? Below is the code in question...
/*****************************************************************************
* Name: OnDCTSaving
* Purpose: Names the DCT and validates that an SME, a sub-process, and a
* keyword were chosen
* Inputs: button (Button)
* Outputs: boolean - true to continue save, false to cancel save
*****************************************************************************/
function OnDCTSaving(button)
{
if(ValidateSME() && ValidateSubprocess() && ValidateKeywords() && isFormValid())
{
alert("Checking file name");
var fileName=IWDCRInfo.getDCRName();
alert("File name checked");
if(fileName=="")
{
alert("Blank file name");
fileName="faq_"+IWDatacapture.getItem("/faqID").getValue();
alert("File name created: " + fileName);
IWDCRInfo.setDCRName(fileName,setDCRNameComplete);
var newFileName = IWDCRInfo.getDCRName();
alert("File name set on DCR: " + newFileName);
}
IWDatacapture.save();
alert("FAQ saved as "+fileName);
return true;
}
else
{
IWDatacapture.setHighlightMode(true);
IWDatacapture.redrawLabels();
alert("Please enter valid selections for all required fields.");
return false;
}
}
/*****************************************************************************
* Name: setDCRNameComplete
* Purpose: This is called back when the DCR name has been successfully set.
* his is a dummy routine that does nothing.
* Inputs: none
* Outputs: none
*****************************************************************************/
function setDCRNameComplete()
{
return true;
}
Darryl Lutherdarryl.luther@weyerhaeuser.comSenior Web Analyst
Weyerhaeuser