service DatabaseListBox in module com::sun::star::form::component::

(Global Index)

Syntax

service DatabaseListBox;

Description

This service specifies a data-aware ListBox.

Included Services

com::sun::star::form::component::ListBox

com::sun::star::form::DataAwareControlModel

Description

is an abstract service for specialized FormControlModel s which are data aware and thus can be bound to a data source.


Property Summary

BoundColumn When you make a selection from a list box, the "BoundColumn" property reflects which column value of a result set should be used as the value of the component. If the control is bound to a database field, the column value is stored in the database field identified by the property "DataField".

ListSourceType describes the kind of list source used.

Property Details



BoundColumn

Syntax

short BoundColumn;

Description

When you make a selection from a list box, the "BoundColumn" property reflects which column value of a result set should be used as the value of the component. If the control is bound to a database field, the column value is stored in the database field identified by the property "DataField".

0
The selected (displayed) list box string is stored in the current database field.
1 or greater
The column value of the result set at the position is stored in the current database field.
The bound column property is only used if a list source is defined and the list source matches with the types TABLE, QUERY, SQL or SQLPASSTHROUGH. Otherwise the property is ignored, as there is no result set from which to get the column values.

ListSourceType

Syntax

com::sun::star::form::ListSourceType ListSourceType;

Description

describes the kind of list source used.

Top of Page