O4WQUALIFYEVENT (OpenInsight 32-bit)
At 11 FEB 2012 04:42:24PM Robert Lee wrote:
The following code appears in the CREATE event of an O4W Stored Procedure.
O4WButton('Cancel', 'CANCEL')
O4WQualifyEvent('CANCEL', 'CLICK')
O4WText(' ')
O4WButton('Save', 'SAVE', O4WMarkedOptions(True$)) ;* Submit Button
The Save button works fine, but the Cancel button does not generate a Click event. I must be missing something obvious…
At 12 FEB 2012 10:52AM bshumsky wrote:
The following code appears in the CREATE event of an O4W Stored Procedure.
O4WButton('Cancel', 'CANCEL')
O4WQualifyEvent('CANCEL', 'CLICK')
O4WText(' ')
O4WButton('Save', 'SAVE', O4WMarkedOptions(True$)) ;* Submit Button
The Save button works fine, but the Cancel button does not generate a Click event. I must be missing something obvious…
Hi, Robert. There might be an event _named_ cancel, so I wonder if using that as the ID of the button might be causing confusion. Can you retry with your code changed as follows, to see if it makes any difference:
O4WButton('Cancel', 'BTN_CANCEL')
O4WQualifyEvent('BTN_CANCEL', 'CLICK')
O4WText(' ')
O4WButton('Save', 'SAVE', O4WMarkedOptions(True$)) ;* Submit Button
- Bryan Shumsky
At 12 FEB 2012 04:49PM Robert Lee wrote:
Hi Bryan
Yep, that's got it.
FWIW, the Cancel Event doesn't appear to be documented (eg O4WQualifyEvent) and not used in the examples. Depracated?
Thanks anyways.
Robert
At 12 FEB 2012 07:01PM bshumsky wrote:
Hi Bryan
Yep, that's got it.
FWIW, the Cancel Event doesn't appear to be documented (eg O4WQualifyEvent) and not used in the examples. Depracated?
Thanks anyways.
Robert
Hi, Robert. I thought that the CANCEL action was used when you wanted to reset validation, but looking in the code that appears to be called RESET. I can't actually find anything that does reference CANCEL, so either (a) just retyping your code resolved the problem, or (b) I remembered something that's in the code that you're running, but is no longer true. So, yes, let's assume that it's been deprecated
![]()
- Bryan Shumsky
At 12 FEB 2012 07:23PM Robert Lee wrote:
Yeah, I've just been double checking all this. It now appears the use of O4WResponse instead of O4WForm is what makes the difference.