简体   繁体   English

Sharepoint 2007:SharePoint列表数据-> HTML

[英]Sharepoint 2007: SharePoint list data -> HTML

I have a SharePoint page that displays an Angular Gauge from FusionCharts XT using a Page Viewer Web Part. 我有一个SharePoint页面,该页面使用Page Viewer Web部件显示FusionCharts XT的角度规 Here is the HTML that the Page Viewer is linked to: 这是页面查看器链接到的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>

What I want to do is replace what is inside those colorRange and dials tags with data pulled from a SharePoint list, probably with maxValueYellow, maxValueRed, and dialValue fields (or similar). 我想做的是用从SharePoint列表中提取的数据替换那些colorRangedials标签中的内容,可能是使用maxValueYellow,maxValueRed和DialValue字段(或类似字段)。 Is this possible? 这可能吗?

It should be possible. 应该有可能。 You can, for example, use JavaScript to get the data from the list and then populate your HTML code. 例如,您可以使用JavaScript从列表中获取数据,然后填充HTML代码。 To get the data from a Sharepoint list I recommand you to use a third party library like SharepointPlus or SPServices . 为了从Sharepoint列表中获取数据,我建议您使用SharepointPlusSPServices之类的第三方库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM