Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Invalid category/type null was received
tlemke
In the process of switching from TeamSite 5.5.2 on Solaris 8 to TeamSite 6.5 SP1 on Solaris 9. In one of my DCT's I have the FormAPI code that allowed me to set the name of the DCR and then save it fine in 5.5.2. When I attempt this save on 6.5, I get the error, "Save unsuccessful. Invalid category/type null was received." What has changed here that is causing this error? I've seen posts inquiring about this in the past, but no real answer.
Russell
Tim Lemke
Convergys Corporation
Find more posts tagged with
Comments
Migrateduser
If you were to attach your code/config thereby giving us more information, I'm sure you'd get a more worthwhile response.
Dave
Current Environment(s):
(1) TS 6.5 on W2K3
(2) TS 6.1 SP1 on W2K3
By the way, I miss Unix terribly.
tlemke
Registration:
IWEventRegistry.addFormHandler("onSaveValid", handleNameDCR);
Offending function:
function handleNameDCR()
{
//Get the name and model number of this shoe and
//create a dcr name from it.
var objMonth = IWDatacapture.getItem("/Release Dates/ReleaseMonth");
var objDay = IWDatacapture.getItem("/Release Dates/ReleaseDay");
var objYear = IWDatacapture.getItem("/Release Dates/ReleaseYear");
var strYear = objYear.getOptions()[objYear.getValue()].text;
var strMonth = objMonth.getOptions()[objMonth.getValue()].text;
var strDay = objDay.getOptions()[objDay.getValue()].text;
var intMonth = getMonthNum(strMonth);
var datNow = new Date();
var strDate = intMonth + "-";
strDate += strDay + "-";
var strHead = IWDatacapture.getItem("/Headline").getValue();
var astrHead = strHead.split(" ");
var strHead = "";
for (var i = 0; i < astrHead.length; i++) {
if (i < 2) {
strHead += checkWord(astrHead
.toLowerCase()) + "_";
} else {
break;
}
}
var dcrName = strDate + strHead;
// Do Not exceed 50 characters in the file name. (NEED 6 CHARS TO APPEND DATE)
if (dcrName.length > 44) {
dcrName = dcrName.substring(0, 44);
}
dcrName += datNow.getHours() + "" + datNow.getMinutes() + "" + datNow.getSeconds();
dcrName = strYear + "/" + dcrName
//alert("DCR NAME: " + dcrName); //DEBUG LINE
if (IWDCRInfo.getDCRName() == "") {
IWDCRInfo.setDCRName(dcrName, null);
}
//Now return true so that the save continues with this name
return true;
}
Tim Lemke
Convergys Corporation