Interface IPivotProcessor
A processor used for loading and processing IPivot and IPivotFieldInfo records as a set from the UI across multiple views in a consistent manner
See https://web.lemonedge.com/help/pivots/ for more information
Inherited Members
Namespace: LemonEdge.Entities.Processors
Assembly: API.dll
Syntax
public interface IPivotProcessor : IBaseDataSetProcessorWithDBSave, IBaseDataSetProcessor, IProcessor, IDisposable
Properties
Fields
The fields used for the pivot
Declaration
IEnumerable<IPivotFieldInfo> Fields { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IPivotFieldInfo> |
Pivot
The pivot handled by this processor
Declaration
IPivot Pivot { get; }
Property Value
Type | Description |
---|---|
IPivot |
SQLWrapper
An interprator for the ISQLWrapper used to power this pivot
Declaration
SQLWrapperInterpretor SQLWrapper { get; }
Property Value
Type | Description |
---|---|
SQLWrapperInterpretor |
Methods
CreateNewField(PivotFieldType, Guid)
Creates a new field for this pivot of the specified type
. Also calls OnAddField(IPivotFieldInfo) to register the new field.
Declaration
Task<IPivotFieldInfo> CreateNewField(PivotFieldType type, Guid sqlTypeWrapperID)
Parameters
Type | Name | Description |
---|---|---|
PivotFieldType | type | The type of field for the pivot to create |
System.Guid | sqlTypeWrapperID | The sql wrapper column this field comes from so the processor knows the relationship for the pivot |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IPivotFieldInfo> | The new pivot field for this pivot |
LoadColumns()
Loads the SQLWrapper interprator for this processor
Automatically loaded from Load(), but can be called when changes are made to force loading
Declaration
Task LoadColumns()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task indicating the completion of this operation |
OnAddField(IPivotFieldInfo)
Adds a field item to this processor and registers it for tracking
Declaration
void OnAddField(IPivotFieldInfo item)
Parameters
Type | Name | Description |
---|---|---|
IPivotFieldInfo | item | The field item to add to this processor |
OnDeleteField(IPivotFieldInfo)
Removes a field item from this processor and stops tracking any changes with it
Declaration
void OnDeleteField(IPivotFieldInfo item)
Parameters
Type | Name | Description |
---|---|---|
IPivotFieldInfo | item | The field item to remove from this processor |