$.udb(ds).embeddedKeyCols()
note
This article is about the embeddedKeyCols() function of the DataSourceContainer object.
$.udb(ds).embeddedKeyCols()
Gets an array of key columns that are used in the relation of an embedded data source.
Returns a UdbCols object.
Syntax
$.udb( *ds* ).embeddedKeyCols( *embedded-data-source-name* )
The required ds parameter is a data source selector.
The optional embedded-data-source-name is a string that identifies a data source embedded within the data source. For embedded data sources at a deeper level, use one or more forward slash symbols (/) to descend to the deeper level. If embedded-data-source-name is not specified, all embedded key columns in scope are returned.
Examples
$.udb('EMP').embeddedKeyCols();
//EMP data source with an 'Embedded DEPARTMENT' as its direct member embedded
$.udb('EMP').embeddedKeyCols('Embedded DEPARTMENT');
//EMP data source with an 'Embedded DEPARTMENT' as its direct member embedded that also has an embedded datasource
$.udb('EMP').embeddedKeyCols('Embedded DEPARTMENT/Embedded COMPANY');