Class JsonTableDataSource
JsonTableDataSource present a json array object
Inheritance
Inherited Members
Namespace: FastReport.Data.JsonConnection
Assembly: FastReport.Base.dll
Syntax
public class JsonTableDataSource : TableDataSource, IFRSerializable, IParent
Constructors
JsonTableDataSource()
Declaration
public JsonTableDataSource()
Properties
SimpleStructure
Get or sets simplify mode for array types
Declaration
public bool SimpleStructure { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
TableData
Gets or sets the table data.
Declaration
public override string TableData { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Remarks
This property is for internal use only.
UpdateSchema
Gets or sets value for force update schema on init schema
Declaration
public bool UpdateSchema { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
GetValue(Column)
Gets data stored in a specified column.
Declaration
protected override object GetValue(Column column)
Parameters
Type | Name | Description |
---|---|---|
Column | column | The column. |
Returns
Type | Description |
---|---|
System.Object | An object that contains the data. |
Overrides
GetValue(String)
Gets data stored in a specified column.
Declaration
protected override object GetValue(string alias)
Parameters
Type | Name | Description |
---|---|---|
System.String | alias | The column alias. |
Returns
Type | Description |
---|---|
System.Object | An object that contains the data. |
Overrides
InitializeComponent()
Initializes the object before running a report.
Declaration
public override void InitializeComponent()
Overrides
Remarks
This method is used by the report engine, do not call it directly.
InitSchema()
Initializes the datasource schema.
Declaration
public override void InitSchema()
Overrides
Remarks
This method is used to support the FastReport.Net infrastructure. Do not call it directly.
LoadData(ArrayList)
Loads the datasource with data.
Declaration
public override void LoadData(ArrayList rows)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ArrayList | rows | Rows to fill with data. |
Overrides
Remarks
This method is used to support the FastReport.Net infrastructure. Do not call it directly.
Serialize(FRWriter)
Serializes the object.
Declaration
public override void Serialize(FRWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer | Writer object. |
Overrides
Remarks
Do not call this method directly. You should override it if you are developing a new component for FastReport.
This method is called when the object needs to save the state. It may happen when:
- saving the report to the file or stream;
- saving the report to the designer's undo buffer;
- assigning the object to another object using the Assign(Base) or AssignAll methods;
- saving the object to the designer's clipboard;
- saving the object to the preview (when run a report).