/// <summary> /// Creates a new instance of the report definition variable. /// </summary> /// <param name="owner">The owning report definition.</param> /// <param name="variable">The variable to create a report variable from.</param> public ReportDefinitionVariable( ReportDefinition owner, Variable variable, ReportDefinitionVariable parent ) { this.Owner = owner; this.NestedVariables = new List <ReportDefinitionVariable>(); this.Scores = new ReportDefinitionScoreCollection(); this.XmlNode = this.Owner.XmlDocument.CreateElement("Variable"); this.XmlNode.AddAttribute("Id", variable.Id.ToString()); this.XmlNode.AddAttribute("Scale", variable.Scale.ToString()); if (parent != null) { parent.XmlNode.AppendChild(this.XmlNode); } this.VariableType = GetVariableType(); RenderCategories(); ParseCategories(); }
/// <summary> /// Creates a new instance of the report definition variable. /// </summary> /// <param name="owner">The owning report definition.</param> /// <param name="xmlNode">The xml node that contains the variable definition.</param> /// <param name="parent">The parent report definition variable.</param> public ReportDefinitionVariable( ReportDefinition owner, XmlNode xmlNode, ReportDefinitionVariable parent ) : this(owner, xmlNode) { this.ParentVariable = parent; }
public ODataRenderer(ReportDefinition definition, string query) { this.Definition = definition; this.Query = query; this.RequestString = HttpContext.Current.Request.Url.ToString().Replace( "Query=" + this.Query, "" ); }
/// <summary> /// Creates a new instance of the report definition variable. /// </summary> /// <param name="owner">The owning report definition.</param> /// <param name="xmlNode">The xml node that contains the variable definition.</param> public ReportDefinitionVariable( ReportDefinition owner, XmlNode xmlNode ) { this.Owner = owner; this.NestedVariables = new List <ReportDefinitionVariable>(); this.Scores = new ReportDefinitionScoreCollection(); this.XmlNode = xmlNode; //this.IdVariable = this.IdVariable; this.VariableType = GetVariableType(); ParseCategories(); ParseNestedVariables(); }
public ReportDefinitionRendererJSON(ReportDefinition reportDefinition) { this.ReportDefinition = reportDefinition; this.Combinations = new List <ReportDefinitionRenderJSONCombination>(); }
public TableauReportDefinitionRenderer(ReportDefinition reportDefinition) { this.DefinitionXmlNodeMapping = new Dictionary <string, XmlNode>(); this.ReportDefinition = reportDefinition; }