ROWVALIDATION Notify Event

Description

In BBj 5.0 and higher, a row was changed in a data-aware grid that registered for row update validation. BBj fires this event to ask the application to accept or reject the change.

To register a data-aware grid for row update validation:

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

control!.setCallback(BBjAPI().getSysGui().ON_GRID_ROW_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.

Event Template

context:u(2),code:i(1),id:u(2),objtype:i(2),row:i(4),rcd:c(1*=)

Significant Field

Description

context

Context in which the event occurred.

code

31

id

ID of the data-aware grid that caused the event.

objtype

Type of resource that caused the event.

row

Number of the changed row.

rcd

The contents of the changed row, not yet updated to the database.

See Also

NOTICE() Function - Get SYSGUI Notice String

NOTICETPL() Function - Get Notice String Template

BBjGridRowValidationEvent



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.