4.14.2Class DBView

Creates a DB View.

Class DBView( entity, spec, [cond],[fields] )
entity The entity on which the view acts as a filter.
cond initial value of the table conditions.
fields initial value of the view fields.

This class represents a filter through which entities can be seen differently.

If not specified in the constructor call, the DBView.fields and DBView.cond property can be specified at any moment.

Note: It is not necessary to specify the fields composing a primary key of an entity in a view, if they must not be seen; those fields are automatically added to any access query even if not explictly requested.

Methods
applyApply this view to retreived data.
applyDictApply this view to retreived data.
titlesReturn the titles of the columns that should be seen in this view.

Methods

apply

Apply this view to retreived data.

apply( data )
data A dictionary of key => value pairs.
ReturnAn array containing just the fields having a title, possibly rendered via their rndr function

applyDict

Apply this view to retreived data.

applyDict( data )
data A dictionary of key => value pairs.
ReturnA dictionary containing just the fields having a title, possibly rendered via their rndr function

titles

Return the titles of the columns that should be seen in this view.

titles()
Returnarray of strings representing the titles of the columns filtered by this view.
Made with http://www.falconpl.org