$.udb(ds).name()
note
This article is about the name() function of the DataSourceContainer object.
$.udb(ds).name()
Returns the name of the first data source in the container.
note
This function only returns the value of its 'Name' property from Web Designer. For referring to a data source in an embedded page, you'll need to use the .path() function. For calculating a relative path to that data source, use .pathTo().
Syntax
$.udb( *ds* ).name()
The required ds is a data source selector.
Examples
$.udb('EMP').name();
Result:
'EMP'
$.udb('Related DEPT page/DEPT').name();
Result:
'DEPT'