Actual XML file location while dealing with CFchart

耗尽温柔 提交于 2019-12-20 07:44:06

问题


Could anyone tell me whether I need to place xml file in a separate directory while working with coldfusion? Right now I have kept my xml file in the same directory where I have .cfm file. When I run the file(cfm) it says,

Could not locate the style file filename.xml

Here is the error:

Could not locate the style file VerticalXLabels.xml. Ensure that the file exists and is readable.

The error occurred in C:\PATH\Testing_Connections.cfm: line 296
Called from C:\PATH\Testing_Connections.cfm: line 271
Called from C:\PATH\Testing_Connections.cfm: line 1

294 :         <cfchartseries  query="detail4" type="line" itemColumn="FIFTHCONN " valueColumn="FIFTHOccurances" > 
295 :        <cfchartseries  query="detail5" type="line" itemColumn="SIXTHCONN" valueColumn="SIXTHOccurances" >   
296 :        <cfchartseries  query="detail6" type="line" itemColumn="SEVENTHCONN" valueColumn="SEVENTHOccurances" >
297 :   </cfchartseries>  
298 : </cfchart>  

回答1:


According to the documentation here, you can put the XML file anywhere you like, however, you must be able to access it as if you were using CFINCLUDE.

ColdFusion uses the same rules to look for the chart style XML files as it does for files included using the cfinclude tag.



来源:https://stackoverflow.com/questions/17753325/actual-xml-file-location-while-dealing-with-cfchart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!