on 07-12-2013 2:21 PM
In DS script, I can construct an array as
var myArray = ["AK", "AL", "AR"];
But how do I access the the array elements?
When I try the following it errors out
var myArrayElement = myArray[0];
Are there any methods available for array?
Thanks.
Hi Murali,
in Design Studio 1.1 it is definately not possible to work with arrays in the way you want to do it. So there is no way to read the nth element of an array. I also double checked with the development team.
Actually you can use an array like yours only for scenarios like to set a filter for a dimension or something like that.
Hopefully that will extend in the upcomming releases.
Regards
Dirk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the information. Yes. That is what I figured out too.
I hope SAP release more datatype functions.
By the way, do you or your development team friends have documentation of BI Action Language (that is used for scripting). Or are we just limited to the script editor context help alone.
Thanks.
Murali
Hi Murali,
May be this will help you out. BIAL is a subset of the JavaScript/ECMAScript standard.
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf
BR
Adlin
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
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.