var sa =" SalesAmount";
var mk =" memberKey";
var dimKey ="维度";
var selection = Convert.stringToDataSelection();
selection [dimKey] = mk;
var cell = DS_1.getData(sa,selection);
;或者您可以"解析"选择字符串:
var sa =" SalesAmount";
var mk =" memberKey";
var dimKey ="维度";
var selectionString ='{"'+ dimKey +'":"'+ mk +'"}'
var selection = Convert.stringToDataSelection(selectionString);
var cell = DS_1.getData(sa,selection);
Hello Dimitris,
使" SalesAmount"和" memberKey"成为变量很简单:
但是,使" Dimension"变量有点棘手,因为JSON始终具有常数键。
为此,我们添加了功能Convert.stringToDataSelection()。 您可以使用它创建一个扩展的空选择
;或者您可以"解析"选择字符串:
此处是其他示例:
https://blogs.sap.com/2017/12/21/mysterious-memberlists-in-lumira-designer/
一周热门 更多>