Skip to content

Kitto.RB.ppStorePipe

TppKStorePipeline class

ReportBuilder data pipeline that feeds a KittoX in-memory store (TKStore) to a ppReport. Adapts TKRecord/TKField to the ppReport pipeline contract, so reports can be run directly against Kitto stores without a dataset.

pascal
constructor CreatePipeline(aOwner: TComponent;

Creates the pipeline bound to the given store and (optional) single record, with the specified ppReport pipeline name.

pascal
procedure FreeBookmark(aBookmark: NativeInt);

Releases a bookmark previously obtained via GetBookmark.

pascal
function GetBookmark: NativeInt;

Returns a bookmark for the current record position.

pascal
function GetDataSetName: String;

Returns the pipeline's data set name.

pascal
function GetFieldIsCalculated(aFieldName: String): Boolean;

Returns True if the named field is a calculated field.

pascal
function GetFieldNames(aFieldNameList: TStrings): Boolean;

Fills the list with the names of the store's fields.

pascal
function GetFieldAsDouble(aFieldName: String): Double;

Returns the named field of the current record as a Double.

pascal
function GetFieldAsGuid(aFieldName: String): TGUID;

Returns the named field of the current record as a TGUID.

pascal
procedure GetFieldAsStream(aFieldName: String;

Writes the named field of the current record into the given stream.

pascal
function GetFieldAsPicture(aFieldName: String): TPicture;

Returns the named field of the current record as a TPicture.

pascal
function GetFieldAsString(aFieldName: String): String;

Returns the named field of the current record as a string.

pascal
function GetFieldDataType(aFieldName: String): TppDataType;

Returns the ppReport data type of the named field.

pascal
function GetFieldIsNull(aFieldName: String): Boolean;

Returns True if the named field of the current record is null.

pascal
function GetFieldValue(aFieldName: string): Variant;

Returns the named field of the current record as a Variant.

pascal
procedure GotoBookmark(aBookmark: NativeInt);

Moves the current record position to the given bookmark.

TraTppKStorePipelineRTTI class

ppReport RTTI helper that exposes TppKStorePipeline properties to the ReportBuilder RAP scripting engine at design/run time.

pascal
class function GetPropRec(aClass: TClass;

Returns the RAP property descriptor for the named property.

pascal
class function GetPropValue(aObject: TObject;

Reads the named property value from the object for the RAP engine.

pascal
class function RefClass: TClass;

Returns the class (TppKStorePipeline) this RTTI helper describes.

pascal
class function SetPropValue(aObject: TObject;

Writes the named property value on the object from the RAP engine.

Routines

pascal
function ppConvertFieldType(aFieldType: TEFDataType): TppDataType;

Maps an EF data type to the corresponding ppReport field data type.

Released under Apache License, Version 2.0.