BBjDataAwareGrid
Description
The BBjDataAwareGrid object provides methods to manipulate the data-aware grid control in BBj. The BBjDataAwareGrid extends the BBjGrid object and therefore implements all the methods in BBjGrid.
Implemented Interfaces
Focusable, MouseWheelEnabled, TabTraversable, Validateable
Creation
BBjAPI > BBjSysGui > BBjWindow > BBjDataWareGrid
A BBjDataAwareGrid object is created through the following BBjWindow methods:
|
Return Value |
Method |
|
BBjDataAwareGrid |
addDataAwareGrid(int ID, number x, number y, number width, number height int channel, string template, string flags) |
|
BBjDataAwareGrid |
addDataAwareGrid(int ID, number x, number y, number width, number height, int channel, string template) |
Creation Flags
|
Flag |
Description |
|---|---|
|
$0001$ |
Sets the grid control to be initially disabled. |
|
$0002$ |
Creates a managed grid control as a column heading. |
|
$0008$ |
Allows users to resize grid columns. |
|
$0010$ |
Sets the grid to be initially invisible. The grid can be made visible with the following command: print(sysgui) 'show'(id) |
|
$0020$ |
Draws vertical lines between columns in Visual PRO/5 2.0x. In Visual PRO/5 2.10 and higher, use flag $8000$ to draw vertical lines. The default behavior in Visual PRO/5 2.10 and higher is for this flag to do nothing. However, if the 2.10 backward compatibility SETOPTS bit (byte 7, bit $08$) is set, this flag will cause vertical lines to be drawn. |
|
$0040$ |
Draws horizontal lines between rows. |
|
$0080$ |
Includes a horizontal scroll bar with the control. |
|
$0100$ |
Includes a vertical scroll bar with the control. |
|
$0800$ |
Creates a three-dimensional recessed client edge around the control. Note that the client edge is displayed inside the control's bounding rectangle, slightly reducing the visible area of the grid. |
|
$1000$ |
Creates a three-dimensional raised edge around the control. Note that the raised edge is displayed inside the control's bounding rectangle, slightly reducing the visible area of the grid. |
|
$8000$ |
Draws vertical lines between columns. |
Methods of BBjDataAware Grid
|
Return Value |
Method |
|
void |
|
|
void |
deleteRow(int index) |
|
string |
|
|
string |
|
|
string |
getRecord(int index) |
|
boolean |
|
|
int |
|
|
string |
|
|
string |
|
|
string |
|
|
string |
|
|
void |
|
|
void |
replaceCommasWhenDisplaying(int row, string char) |
|
void |
replaceCommasWhenSaving(int row, string char) |
|
void |
replaceDecimalsWhenDisplaying(int row, string char) |
|
void |
replaceDecimalsWhenSaving(int row, string char) |
|
void |
|
|
void |
seekLastRecord(string title, string msg, string cancelString) |
|
void |
setDataChannel(int channel, string template) |
|
void |
setInsertErrorMessage(string msg) |
|
void |
setInsertMessage(string msg) |
|
void |
setShowInsertMessage(boolean show) |
|
void |
setShowUpdateMessage(int show) |
|
void |
setUpdateBusyMessage(string msg) |
|
void |
setUpdateDeletedMessage(string msg) |
|
void |
setUpdateErrorMessage(string msg) |
|
void |
setUpdateMessage(string msg) |
|
void |
|
|
void |
Methods of BBjDataAwareGrid – Miscellaneous Grid Functions
|
Return Value |
Method |
Methods of BBjDataAwareGrid inherited from BBjGrid
Methods of BBjDataAwareGrid inherited from BBjControl
Methods of BBjDataAwareGrid inherited from BBjGrid implemented for Focusable
| Return Value | Method |
|---|---|
|
boolean |
|
|
void |
setFocusable(boolean focus) |
Methods of BBjDataAwareGrid inherited from BBjGrid implemented for MouseWheelEnabled
| Return Value | Method |
|---|---|
|
int |
|
|
void |
setScrollWheelBehavior(int mode) |
Methods of BBjDataAwareGrid inherited from BBjGrid implemented for TabTraversable
| Return Value | Method |
|---|---|
|
boolean |
|
|
void |
setTabTraversable(boolean trav) |
Methods of BBjDataAwareGrid inherited from BBjGrid implemented for Validateable
| Return Value | Method |
|---|---|
|
void |
accept(boolean valid) |
|
string |
Events
|
Callback Code |
Object-oriented Event |
Read Record Event |
Code |
|
ON_GRID_ROW_DELETE |
N (Notify code 25) |
||
|
ON_GRID_ROW_INSERT |
N (Notify code 24) |
||
|
ON_GRID_ROW_INSERT_CANCEL |
N (Notify code 26) |
||
|
ON_GRID_ROW_UPDATE |
N (Notify code 27) |
||
|
ON_GRID_ROW_VALIDATION |
N (Notify code 31) |
Remarks
BBjDataAwareGrid also generates all the events of a BBjGrid.
Constants inherited from BBjGrid
|
GRID_STYLE_BUTTON_UP |
|
GRID_STYLE_BUTTON_DOWN |
|
GRID_ALIGN_LEFT |
|
GRID_ALIGN_RIGHT |
|
GRID_ALIGN_CENTER |
|
GRID_HIGHLIGHT_OUTLINE |
|
GRID_HIGHLIGHT_COLOR |
|
GRID_SELECT_CELL |
|
GRID_SELECT_ROW |
|
GRID_SELECT_COLUMN |
Constants inherited from BBjControl
Example
|
See Also
SQL Date Columns in Data Aware Grids
For more information on Data Aware Grid channels, see Set Channel and Template - GRID SENDMSG() Function 80.
CALLBACK Verb - Register BBj Subroutine
GRID Mnemonic - Create a Grid Control
See the BBj Object Diagram for an illustration of the relationship between BBj Objects and the Grid Tutorial 2 - Standard Grid Using BBjGrid Methods for more information.