Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, November 25, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Reporting & Notification Forums - Reporting
Forum to discuss reports for SalesLogix including Crystal, SQL Reports, etc. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Reporting | New ThreadView:  Search:  
 Author  Thread: SLX 7.5.4 reporting object required error for custom errors
mark
Posts: 70
 
SLX 7.5.4 reporting object required error for custom errorsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Jun 12 7:52 AM
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.


 


 

[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: SLX 7.5.4 reporting object required error for custom errorsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Jun 12 9:28 AM
fiogf49gjkf0d


From what I can tell, in SLX 7.54, the loadFieldNameList function is found within an Embedded Javascript file on theSage.SalesLogix.Clients.Reports.dll.


 


You could use a Reflection tool to view the Content of the DLL. Expand the Resources, and load the one calledSage.SalesLogix.Client.Reports.jscript.Reporting.js


 


This means that you may not be able to overwrite this function.


You may try creating a function with the same name (and making sure it is within Context) and maybe the browser will use your copy of the function, but it will be a coin toss.


 


 


 


[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/25/2024 12:26:00 AM