Grid Cell Validation Event

Description

In BBj 5.0 and higher, this event fires when the user edits a cell within the grid and then attempts to leave that cell. Specifically, this event fires if the user clicks in a different cell within the grid, clicks on a different control in the same window, or presses Tab while editing the cell.

To register a button for grid cell validation:

control!=BBjAPI().getSysGui().getWindow(context).getControl(id)

control!.setCallback(BBjAPI().getSysGui().ON_GRID_CELL_VALIDATION,"")

Remarks

If a control has registered for this event, the program must respond to it by invoking control!.accept(1) to accept the change or control!.accept(0) to reject the change.

 

Mandatory/Optional

Mandatory.

Event Mask Bit

None. Event is always visible.

Event Template

context:u(2),code:c(1),id:u(2),flags:u(1),x:u(2),y:u(2)

Field

Description

context

Window that requires validation.

code

N

id

ID of the button that initiated this event.

flags

0

x

0

y

0

See Also

BBjGridCellValidationEvent