Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

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

Revelation Software, Inc.


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

Revelation Software, Inc.


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.

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/64cf7390000441c95b8639a00.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1