views:

315

answers:

1

Hi, everyone. I have problem with fusioncharts evaluation in the ASP .NET(Sharepoint Portal).

I am customizing survey list for providing new view. I added to scheme.xml the next code.

<View BaseViewID="4" Type="HTML" WebPartZoneID="Main" DefaultView="TRUE" DisplayName="Charts" SetupPath="pages\viewpage.aspx" ImageUrl="/_layouts/images/survey.png" Url="overview.aspx" FreeForm="TRUE" ReadOnly="TRUE">
<!-- _locID@DisplayName="camlidV1" _locComment=" " -->
<Toolbar Type="Standard" />
<ViewFields>
</ViewFields>
<ViewEmpty>
  <SetVar Name="HandlerUrl">/_layouts/IEFS/SurveyHandler.aspx</SetVar>
  <HTML>
    <![CDATA[ 
    <!-- START Code Block for Chart 'ChartName' -->
      <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="350" height="350" name="SurveyChart">
      <param name="allowScriptAccess" value="always" />
      <param name="movie" value="/_layouts/IEFS/FusionCharts/MSCombi3D.swf"/>
      <param name="FlashVars" value="&chartWidth=350&chartHeight=350&debugMode=1&dataURL=]]>
  </HTML>
  <GetVar Name="HandlerUrl" />
  <HTML>
    <![CDATA["/>]]>
  </HTML>
  <HTML>
   <![CDATA[ 
      <param name="quality" value="high" />
      <embed src="/_layouts/IEFS/FusionCharts/MSCombi3D.swf" FlashVars="&chartWidth=350&chartHeight=350&debugMode=1&dataURL=]]>
  </HTML>
  <GetVar Name="HandlerUrl" />
  <HTML>
    <![CDATA[" quality="high" width="350" height="350" name="ChartName"  allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
      </object>
      <!-- END Code Block for Chart 'ChartName' -->
    ]]>
  </HTML>
</ViewEmpty>

As you can see I've just create standard object tag of fusioncharts control(I got it from examples). But when page is rendered I can see the next following error:

And I have error:

INFO: XML Data provided using dataURL method. dataURL provided: ./_layouts/IEFS/SurveyHandler.aspx dataURL invoked: ./_layouts/IEFS/SurveyHandler.aspx?FCTime=223 ERROR: An error occurred while loading data. Please check your dataURL, by clicking on the "dataURL invoked" link above, to see if it's returing valid XML data. Common causes for error are: No URL Encoding provided for querystrings in dataURL. If your dataURL contains querystrings as parameters, you'll need to URL Encode the same. e.g., Data.asp?id=101&subId=242 should be Data%2Easp%3Fid%3D101%26subId%3D242 Different sub-domain of chart .swf and dataURL. Both need to be same owing to sandbox security. Network error

My data-page(handler) is rendered valid xml data.

I read this link http://www.fusioncharts.com/docs?/Debug/Basic.html, but it doesn't help me.

Have ever you seen same error before?

With The Best Regards, Alexander.

A: 

Hi Alexander,

Could you please post your XML data which is being generated from SurveyHandler.aspx page?

Rahul Kumar