Skip to main content
Version: 11.2

$.udb(ds).lookups()

note

This article is about the lookups() function of the DataSourceContainer object.

$.udb(ds).lookups()

warning

This technical function is not typically needed. You only need it if you want to access runtime metadata of referrer Lookup controls, in particular, if you need to access their runtime data source alias.

tip

You can access runtime metadata in the reverse direction (from given Lookup controls to the data sources they refer to) via the .lookupRefs() function.

Accesses runtime metadata of referrer Lookup controls.

Returns a Map object, where each entry maps the id of a data source with a Lookup control referring to this one, to that lookup's runtime metadata.

Syntax

$.udb( *ds* ).lookups()

The required ds is a data source selector.

Example

$.udb('DEPT').lookups();

Example result:
Map(1) {
'EMP' => { dsId: 'EMP', dsRef: '1.DS8', columns: [ { refParent: '$14', linkColumn: 'DEPT_NO' } ] }
}