While you can get the selected panel (DSV) object. To get the name of the data source, the parent object needs to accessed:
1 2 3 4 | var ec = app.easycatalogObject; var myDSV = ec.selectedDataView(); var myDS = myDSV.parent; alert(myDS.dataSourceName); |