on 09-22-2017 4:05 AM
I need to display financial Year in the drop down I,e (2017-18) format. for the backend we are using as BW.we are having Year and year month dimensions maintained in the backend.I tried several option but didn't get desired result set
Hi Afzal,
You can try the following code to achieve the desired result:
var myYears = DS_1.getMembers(<Year Dimension>, 10);
var yearText = "";
var yearNum = 0;
myYears.forEach(function(year, index) {
yearNum = Convert.stringToInt(year.internalKey);
yearText = (yearNum - 1) + "-" + year.internalKey.substring(2);
DROPDOWN_1.addItem(yearNum + "", yearText);
});
Regards,
Mustafa.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.