Cancel in Browse

mariaProgress

New Member
Hello,
I have a problem with cancel update field in progress.

ON 'CHOOSE':U OF btn_cancel IN FRAME FR_SAISIE
DO:
GET CURRENT Q_user EXCLUSIVE-LOCK NO-WAIT.
IF Browser_user:CURRENT-ROW-MODIFIED THEN DO:
APPLY 'GO':U TO FRAME FR_SAISIE .
END.
END.

when I put a new record and I click on the btn_cancel ,it saves this new record but I want to cancel it and display the old .

thanks .
 
APPLY "GO" will commit your changes rather than rolling it back. CAn you try Apply "END-ERROR" rather than "GO" and let me know if this resolves?
 
Top