Documents > BPS V2 C++ API
BpsRelationInputField Class Reference

Table field as combo box filled with options from a relation table. More...

#include <bpstablefield.h>

+ Inheritance diagram for BpsRelationInputField:

List of all members.

Public Member Functions

 BpsRelationInputField (const QString &aHeader, const QString &aColumn, const QString &aRelTable, const QString &aRelColumn)
QString relColumn () const
QString relTable () const

Detailed Description

Table field as combo box filled with options from a relation table.

 myFields 
     << new BpsRelationInputField(
                tr("Trip class"), 
                bStr("c_tripclass"), 
                bStr("t_tripclasses"), 
                bStr("f_tripclassname(c_key)")
        );

Constructor & Destructor Documentation

BpsRelationInputField::BpsRelationInputField ( const QString &  aHeader,
const QString &  aColumn,
const QString &  aRelTable,
const QString &  aRelColumn 
)
Parameters:
[in]aHeaderThe column header.
[in]aColumnThe whole column expression. This may also be something like "func(c_key) as c_fcol" where the whole expression will be returned as wholeColumn(), and column() will return the alias part "c_fcol" only.
[in]aRelTableThe relation table name.
[in]aRelColumnThe relation table column for display. May also be a function call or concatenated string.

Member Function Documentation

QString BpsRelationInputField::relColumn ( ) const
Returns:
the relation table column.
QString BpsRelationInputField::relTable ( ) const
Returns:
the relation table.

The documentation for this class was generated from the following file: