2014-02-12 143 views
0

我有一個SharePoint頁面,使用Page Viewer Web部件從FusionCharts XT顯示Angular Gauge。下面是該頁面查看器鏈接到HTML:Sharepoint 2007:SharePoint列表數據 - > HTML

<object width="400" height="300" id="Column3D" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"> 
    <param name="movie" value="http://somepath/AngularGauge.swf"/> 
    <param name="FlashVars" value="&chartWidth=400&chartHeight=300&DOMId=myChartIdRegisterWithJS=1&debugMode=0&dataXML=<chart lowerLimit='0' upperLimit='100' lowerLimitDisplay='Bad' upperLimitDisplay='Good' gaugeStartAngle='180' gaugeEndAngle='0' palette='1' numberSuffix='%25' tickValueDistance='20' showValue='1'> 
    <colorRange> 
     <color minValue='0' maxValue='75' code='FF654F'/> 
     <color minValue='75' maxValue='90' code='F6BD0F'/> 
     <color minValue='90' maxValue='100' code='8BBA00'/> 
    </colorRange> 
    <dials> 
     <dial value='92' rearExtension='10'/> 
    </dials> 
</chart>"> 
    <param name="quality" value="high"/> 
    <embed src="http://somepath/AngularGauge.swf" flashVars="&chartWidth=400&chartHeight=300&DOMId=myChartIdRegisterWithJS=1&debugMode=0&dataXML=<chart lowerLimit='0' upperLimit='100' lowerLimitDisplay='Bad' upperLimitDisplay='Good' gaugeStartAngle='180' gaugeEndAngle='0' palette='1' numberSuffix='%' tickValueDistance='20' showValue='1'> 
    <colorRange> 
     <color minValue='0' maxValue='75' code='FF654F'/> 
     <color minValue='75' maxValue='90' code='F6BD0F'/> 
     <color minValue='90' maxValue='100' code='8BBA00'/> 
    </colorRange> 
    <dials> 
     <dial value='92' rearExtension='10'/> 
    </dials> 
</chart>" width="400" height="300" name="AngularGauge" quality="high" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/> 
</object> 

我想要做的就是替換的是那些colorRangedials標籤與SharePoint列表拉,可能與maxValueYellow,maxValueRed和dialValue裏面的數據字段(或類似)。這可能嗎?

回答

1

應該有可能。例如,您可以使用JavaScript從列表中獲取數據,然後填充HTML代碼。要從Sharepoint列表中獲取數據,我建議您使用第三方庫,如SharepointPlusSPServices

+0

乾杯,我會研究它。 –