Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 4041

Initial view is reset after executing APPLICATION.loadDataSources([DS1,DS2])

$
0
0

Hi.

 

APPLICATION.loadDataSources([DS1,DS2,...]) will reset the data sources' initial view in DS1.6 SP2. The datasources are based on BOE4.2 universe. The first load is OK, however, when I select different parameters, the initial view will be reset such as the total row is shown and the sort is messy. I try to control it by script, but the script is not valid.

 

The sample code is as below:

 

APPLICATION.loadDataSources([DS_KPISUM, DS_KPITREND,DS_SHOPKIND,DS_PROV,DS_TOPSHOP,DS_BOTTOMSHOP,DS_GRANDCAT]);

 

 

DS_KPISUM.setVariableValueExt("psbrand", gBrand);

DS_KPISUM.setVariableValueExt("psdate_type",gDateType);

 

DS_KPITREND.setVariableValueExt("psbrand", gBrand);

DS_KPITREND.setVariableValueExt("psdate_type",gDateType);

 

DS_SHOPKIND.setVariableValueExt("psbrand", gBrand);

DS_SHOPKIND.setVariableValueExt("psdate_type",gDateType);

 

 

DS_PROV.setVariableValueExt("psbrand", gBrand);

DS_PROV.setVariableValueExt("psdate_type",gDateType);

 

DS_TOPSHOP.setVariableValueExt("psbrand", gBrand);

DS_TOPSHOP.setVariableValueExt("psdate_type",gDateType);

 

DS_BOTTOMSHOP.setVariableValueExt("psbrand", gBrand);

DS_BOTTOMSHOP.setVariableValueExt("psdate_type",gDateType);

 

 

DS_GRANDCAT.setVariableValueExt("psbrand", gBrand);

DS_GRANDCAT.setVariableValueExt("psdate_type",gDateType););

 

 

DS_KPITREND.sortByMember("_pCpYkC0kEeaJzKScIw3RMw", true);

DS_SHOPKIND.setTotalsDisplay("_SK2pKVLOEeasp5FkhutC4A", TotalsDisplay.HIDE);

DS_TOPSHOP.sortByMeasure("_Rp60gTjeEea9kOaD91sJ_Q", true);

DS_TOPSHOP.setTotalsDisplay("_XngYwFlVEea21vBJbmp-Tg", TotalsDisplay.HIDE);

DS_TOPSHOP.setTotalsDisplay("_6Q57wyxdEeaU3sfcWYeAOA", TotalsDisplay.HIDE);

DI_TOPSHOP.setIgnoreTotals(true);

 

 

DS_BOTTOMSHOP.sortByMeasure("_dutiwV6TEearnsMvNtLlgg", true);

DS_BOTTOMSHOP.setTotalsDisplay("_SOWd8V6TEearnsMvNtLlgg", TotalsDisplay.HIDE);

DS_BOTTOMSHOP.setTotalsDisplay("_6Q57wyxdEeaU3sfcWYeAOA", TotalsDisplay.HIDE);

DI_BOTTOMSHOP.setIgnoreTotals(true);


Viewing all articles
Browse latest Browse all 4041

Trending Articles



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