
BBjDataAwareGrid
Creation Path
|
+--BBjSysGui
|
+--BBjWindow
|
+--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
A BBjDataAwareGrid object is created through the following BBjWindow methods:
Return Value |
Method |
BBjDataAwareGrid |
addDataAwareGrid(int ID, int x, int y, int width, int height int channel, string template, string flags) |
BBjDataAwareGrid |
addDataAwareGrid(int ID, int x, int y, int width, int height, int channel, string template) |
Methods of BBjDataAware Grid
Return Value |
Method |
void |
|
void |
deleteRow(int index) |
string |
|
string |
|
string |
getRecord(int index) |
int |
|
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(int 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 p_focus) |
Methods of BBjDataAwareGrid inherited from BBjGrid implemented for MouseWheelEnabled
Return Value |
Method |
int |
|
void |
setScrollWheelBehavior(int trav) |
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
REM Create a data-aware
BBjGrid object |
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.