$.udb.cancelWindow()
note
This article is about the cancelWindow() function of the $.udb object.
$.udb.cancelWindow()
Rejects the lookup value and close the lookup page or dialog.
Returns a UdbPromise object.
Syntax
$.udb.cancelWindow()
Example
$.udb.cancelWindow()
.then(() => {
// executed when returned to the previous page
})
.catch(() => {
// executed when no lookup page was opened
})
.finally(() => {
// executed after success / failure is handled
});
tip
This function is called by default on the Cancel button of the default lookup pages.
Related events
| Event | Applies to | Occurs when |
|---|---|---|
| beforenavigate | Page objects | Before navigation to the previous page is executed |