Try our conversational search powered by Generative AI!

Class XFormStatistics

Summary description for FormStatistics.

Inheritance
System.Object
XFormStatistics
Implements
System.Web.UI.INamingContainer
Namespace: EPiServer.Web.WebControls
Assembly: EPiServer.dll
Version: 7.19.2
Syntax
public class XFormStatistics : WebControl, INamingContainer

Constructors

XFormStatistics()

Declaration
public XFormStatistics()

Properties

AllPages

Gets or sets a value indicating whether form data for all pages should be returned.

Declaration
public bool AllPages { get; set; }
Property Value
Type Description
System.Boolean

true if form data for all pages should be returned; otherwise, false.

Remarks

If this value is set to false only form posts that have been made to the current page are returned.

BeginDate

Gets or sets the first date for posted data that will be fetched.

Declaration
public DateTime BeginDate { get; set; }
Property Value
Type Description
System.DateTime

The first date for posted data that will be fetched.

EndDate

Gets or sets the last date for posted data that will be fetched.

Declaration
public DateTime EndDate { get; set; }
Property Value
Type Description
System.DateTime

The last date for posted data that will be fetched.

Form

Gets the form.

Declaration
protected XForm Form { get; set; }
Property Value
Type Description
XForm

The form.

FormDefinitionID

Gets the ID of the form.

Declaration
public Guid FormDefinitionID { get; set; }
Property Value
Type Description
System.Guid

The ID of the form.

ImageUrl

Gets or sets the url to the image that is used when rendering statistics.

Declaration
public string ImageUrl { get; set; }
Property Value
Type Description
System.String

The url to the image that is used when rendering statistics.

NumberOfVotes

Gets the number of votes that was returned.

Declaration
public int NumberOfVotes { get; protected set; }
Property Value
Type Description
System.Int32

The number of votes that was returned.

PageDefinitionID

The property definition ID of the property that defines the form.

Declaration
[Obsolete("Use the property named PropertyDefinitionID instead", false)]
public int PageDefinitionID { get; }
Property Value
Type Description
System.Int32

The property definition ID of the property that defines the form.

PageGuid

The guid identiy of the page that the form is contained on.

Declaration
public Guid PageGuid { get; set; }
Property Value
Type Description
System.Guid

The page that the form is contained on.

Declaration
public PageReference PageLink { get; set; }
Property Value
Type Description
PageReference

PropertyDefinitionID

The property definition ID of the property that defines the form.

Declaration
public int PropertyDefinitionID { get; }
Property Value
Type Description
System.Int32

The property definition ID of the property that defines the form.

PropertyName

Gets or sets the name of the property for the xform.

Declaration
public string PropertyName { get; set; }
Property Value
Type Description
System.String

The name of the property for the xform..

Statistics

Gets the form postings.

Declaration
[Obsolete("The property is no longer needed. All statistics are calculated using Linq")]
public IList<XFormData> Statistics { get; }
Property Value
Type Description
System.Collections.Generic.IList<XFormData>

The form postings.

StatisticsType

Set StatisticsType to format output: N=numbers only, P=percentage

Declaration
public string StatisticsType { get; set; }
Property Value
Type Description
System.String

Methods

Clear()

Clears the statistics and child controls.

Declaration
public virtual void Clear()

CreateChildControls()

Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.

Declaration
protected override void CreateChildControls()

SetNumberOfVotes(Int32)

Sets the number of votes.

Declaration
[Obsolete("Use property 'NumberOfVotes' instead", false)]
protected void SetNumberOfVotes(int newValue)
Parameters
Type Name Description
System.Int32 newValue

The new value.

Implements

System.Web.UI.INamingContainer

Extension Methods