DataPivot.addData

Specifies that field has to be included in the analysis. field is a field specification with the following accepted syntaxes: <itemizedlist> <listitem><para>a column name in the source data model (see <link linkend="gda-data-model-get-column-index">gda.data_model.DataModel.getColumnIndex</link>); or</para></listitem> <listitem><para>an SQL expression involving a column name in the source data model, for examples: <programlisting> price firstname || ' ' || lastname nb BETWEEN 5 AND 10</programlisting> </para></listitem> </itemizedlist>

It is also possible to specify several fields to be added, while separating them by a comma (in effect still forming a valid SQL syntax).

class DataPivot
bool
addData

Parameters

aggregateType gda.types.DataPivotAggregate

the type of aggregate operation to perform

field string

the field description, see below

alias_ string

the field alias, or null

Return Value

Type: bool

true if no error occurred

Throws