Skip to main content
Version: 11.2

$.udb.acceptLookupValue()

note

This article is about the acceptLookupValue() function of the $.udb object.

$.udb.acceptLookupValue()

Accepts the selected lookup value on a lookup page or dialog. After successful execution, the page is closed and the user is returned to the page that was current before the lookup page was opened.

Returns a UdbPromise object.

Syntax

$.udb.acceptLookupValue()

Example

$.udb.acceptLookupValue()
.then(() => {
// success (executed on the page we returned to)
})
.catch(() => {
// failure (executed on the lookup page)
})
.finally(() => {
// executed after success / failure is handled
});
tip

This function is called by default on the Select button of default lookup pages.

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