Skip to main content
Version: 11.2

$.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.

EventApplies toOccurs when
beforenavigatePage objectsBefore navigation to the previous page is executed