Quantcast
Channel: SCN : All Content - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 4216

Design Studio SDK: Result Set Information Component

$
0
0

This component will target new functional area - a bit of help for app designers, giving basic information about the data source. I am not sure which information can be helpful, so I started with basic statistics, like number of data cells, columns (for header and data area) and rows.

 

How does it Look?

(very primitive from UI point of view)

resin.PNG

 

But,...

There is another interesting feature - as Design Studio supports currently data bound components with only one data source assignment, this component is also having a flag:

resce.PNG

 

What it does, it places the connected result set in central place in Java Script object. Then, another component can access this result set and other result sets and combine information from those.

 

Code

 

var dataSourceInfo = {};  dataSourceInfo.plainData = that.getData();  dataSourceInfo.flatData = that._flatData;  if(that.getDCentralProvisioning()) {  org_scn_community_databound.centralDataStorage[that.oComponentProperties.id] = dataSourceInfo;  }

The data source is provided in the central array under the component technical name and can be accessed as below:

 

var lDataProvisioner = that.getDDataProvisioner();  var hasDataProvisioner = false;  if(lDataProvisioner != undefined && lDataProvisioner.length != "") {  hasDataProvisioner = (org_scn_community_databound.centralDataStorage[lDataProvisioner] != undefined);  }
if(hasDataProvisioner) {  that._flatData = org_scn_community_databound.centralDataStorage[lDataProvisioner].flatData;
}

(example from UI5 Table which implements this way of loading data sources)

 

What is the Use Case?

Of course, having the data sources stored centrally, we can now mix up result sets from more than one data source. For this, reflect to the component Design Studio SDK: Result Set Mixer Component.

 

as of today (26.03.2015) this component is in a "test phase" as the mixing options are quite restricted. Anyway, both components are in the compiled package and you can try to experiment on it. The description on basic use case you can find here Mixing Data from 2 Result Sets together (join, select).

testp.PNG

Help / API Specification

Go directly to the help site and find the component: Component List - SCN Design Studio Community

 

Download & Use

This component is available on the community package, as in SCN Design Studio SDK Development Community

 

Example as BIAPP:

org-scn-design-studio-community/applications · GitHub

 

Any thoughts?

feel free to add as usual...

 

Enhancements Ideas?

if you have good ideas (to those who would like to contribute but cannot code...) - place an "issue" with tag "enhancement" under Issues · org-scn-design-studio-community/sdkpackage · GitHub


Viewing all articles
Browse latest Browse all 4216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>