fiogf49gjkf0d Dear All,
I am having a strange problem with saleslogix 7.5.4 Here you go...
When ever i select certain custom reports in saleslogix 7.5.4 web in reporting page list box i am receiving script error called object expected. When i saw those lines suggested by jscript error in the view source of the browser, it is showing me following function is having some problem .
function loadFieldNameList(fieldsXML) {
if (document.body.debug == 'true') { alert('loadFieldNameList -- fieldsXML:\n'+ fieldsXML); }
varxmlDoc = getXMLDoc(fieldsXML);
if (xmlDoc != null) {
// Now that we have the list of fields, we need to display them...var selObj = document.getElementById("selFieldNames");
Var fields = xmlDoc.getElementsByTagName('Fields')[0];
for (vari = 0; i < fields.childNodes.length; i++) {
var oOpt = document.createElement('OPTION');
oOpt.value = fields.childNodes[i].getAttribute('name');
oOpt.innerHTML = fields.childNodes[i].getAttribute('displayname');
oOpt.fieldtype = fields.childNodes[i].getAttribute('fieldtype');
selObj.appendChild(oOpt);
}
if (document.getElementById("selConditionType").value != 'QRY') {
selObj.style.display ='inline';
selObj.style.display ='none';
}
selObj.onchange();
}
}
I have identified whats the problem is ... If you link the tables in your crystal report for framing some query and place the fields in the report you wont get object required js error. But if you write a query through command or generate report using sps/views it is showing object required error. This is because thegetfield drop down in this page will automatically populate all the fields of your crystal report to use filters in this page to generate crystal reports. But if you write a query/view/sp then this dropdown cannot get the fields that are in the query and hence it will through JS errors.
So i want to modify this function..
But i am unable to find this funciton in entire saleslogix project. Dont know and not sure why?
Could you please let me know where does the function "loadFieldNameList" exist in slxclient web code folder. It is very strange that i am unable to find this method in entire solution where as wedebug the code it is showing the error in the same function.
|