C# Class Phresco.FusionCharts.ListToXmlConverter

Converts a SharePoint List (SPList) into a nice XML string that can be directly used by fusion charts
Exibir arquivo Open project: photon-infotech/sharepoint-resource-management Class Usage Examples

Public Methods

Method Description
GenerateXml ( string chartTitle, string xValue, string xTitle, string yValue, string yTitle, GroupAction groupAction, string colors ) : string

Generate the nice XML output for fusion charts

ListToXmlConverter ( string listName, string viewName ) : System

Constructor

PrepareData ( string xValue, string yValue, GroupAction action ) : Plots

Transforms the list of items into something easily usable (a Plots object). Performs also operations such as SUM, COUNT over GROUPBY

Private Methods

Method Description
GetListAndView ( ) : void

Retrieves a SPList from its name

ListValidColumns ( ) : string

Returns a list of valids column name that can be used.

QueryList ( ) : void

Get the list of items in the list based on the view

Method Details

GenerateXml() public method

Generate the nice XML output for fusion charts
public GenerateXml ( string chartTitle, string xValue, string xTitle, string yValue, string yTitle, GroupAction groupAction, string colors ) : string
chartTitle string Title of the chart
xValue string Column name to use as x value
xTitle string Title to give to x
yValue string Column name to use as y value
yTitle string Title to give to y
groupAction GroupAction Action to perform (sum, count, ...)
colors string List of colors to use (separated by ;)
return string

ListToXmlConverter() public method

Constructor
public ListToXmlConverter ( string listName, string viewName ) : System
listName string
viewName string
return System

PrepareData() public method

Transforms the list of items into something easily usable (a Plots object). Performs also operations such as SUM, COUNT over GROUPBY
public PrepareData ( string xValue, string yValue, GroupAction action ) : Plots
xValue string The name of the column to use as xValue
yValue string The nam of the column to use as yValue
action GroupAction The action to perform, if any...
return Plots