Form Validation Event
Description
In BBj 5.0 and higher, the user pressed a button that is registered for form validation.
To register a button for form validation:
control!=BBjAPI().getSysGui().getWindow(context).getControl(id)
control!.setCallback(BBjAPI().getSysGui().ON_FORM_VALIDATION,label)
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. If processing events using an event loop, label specifies any string, including "". If processing events using callbacks, label must specify the subroutine that will handle the validation.
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 |
V (upper case V) |
id |
ID of the button that initiated this event. |
flags |
0 |
x |
0 |
y |
0 |