Hi All,
I have a requirement that when a query is selected to run the Design Studio application, the query views under the query must be populated in a dropdown list. I am able to do that by asking user to select a query in InforAreas of the Data Source Browser(see image below).
here is my code:
var q = CONNECTION.getChildren(CONNECTION.getSelectedDataSource()); if (q.length != 0){ q.forEach(function(element, index) { DROPDOWN.addItem(element.name element.description); });
See the image above, query views are popuated as a result of selecting a query from InfoAreas.
However there are some issues:
Issue 1: When searching for the same query in the Data Source Browser, we are unable to populate query views using CONNECTION.getChildren
Issue 2: When passing "&XQUERY=[query name]" in the URL to run the DS application in Internet Explorer, we are unable to populate query views using CONNECTION.getChildren
For the same query, because we pass XQUERY in URL instead of opening the query using the Data Source Browser or we search the query in the Data Source Browser, the query views are not populated. Please advise!