Skip to content

peViewType - cWebView

Assigns a view type

Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None

Syntax

Property Integer peViewType
Access Type Syntax
Read Access: Get peViewType to IntegerVariable
Write Access: Set peViewType to IntegerVariable/Value

Description

Assigns a view type. The framework supports three view types, Zoom, Select and Undefined.

This is a design time property.

Possible values:

Constant Meaning
vtUndefined (0) Undefined
vtZoom (1) Zooms are used to display and edit data around a single set of data.
vtSelect (2) Selects are used to present sets of records for selection. Selecting a record can cause a view to navigate forward to another view or it can navigate back, possibly returning and updating data to the invoking view.

Typically drilldown views will be Zooms (form) or Selects (list/grid). Zooms are used to display and edit data around a single set of data. Selects are used to present sets of records for selection. Selecting a record can cause a view to navigate forward to another view or it can navigate back, possibly returning and updating data to the invoking view.

Examples

A Select view may contain a list of customers. Selecting a customer may forward navigate to a Zoom view that displays information about the selected row's customer.A Select view may contain a list of customers. Selecting a customer may forward navigate to a Select view that shows all orders for that customer.A Select view may contain a list of customers. Selecting a customer may close the view and return a selected record to the invoking view (perhaps an Order Zoom that is selecting a customer for an order). Note that the same view might be used for all three purposes, possibly at the same time.

At the simplest level, assume each DataDictionary Object (DDO) in your application may have a Zoom view and a Select view. Both the Zoom and Select view will have the same main file and use the same DD class. Application flow will be determined by how these views are all linked together (i.e., what view navigates to what view and for what purpose). This linking is determined by the developer.