How to increase the limit of an array of elements in the SAP Analytics Cloud

Gauri Guglani
2 min readDec 3, 2024

--

Hello there,

When we work with input control in SAC, we notice that it by default gives us 100 arrays of elements but what if we need to see more elements from the input control, that is also possible by setting up the limit.

//Below code is storing all the active selected memebrs from the input control to IC_DATA
var IC_DATA = IC_DATE1.getInputControlDataSource().getActiveSelectedMembers();
console.log(IC_DATA);

The output that you get from the above code is shown below-

without adding limit to the array of elements

Now my Input control had more than 100 active selected members but we are only able to see 100 and the reason is-

Now to bring more elements and not only 100 below is the way you define the limit by just adding the max number you want your array to accommodate-

//Below code is storing all the active selected memebrs from the input control to IC_DATA and defined limit up to 1000
var IC_DATA = IC_DATE1.getInputControlDataSource().getActiveSelectedMembers(1000);
console.log(IC_DATA);

The output that you get from the above code is shown below and now it is giving us more than 100 elements because of the limit set by us, even though we have set 1000 the max active selected members in my input control is 293 as shown below-

Thanks for reading, I hope this will be useful.

--

--

Gauri Guglani
Gauri Guglani

Written by Gauri Guglani

Data Science |Technology |Motivation | Reader | Writer | Foodie| YT- https://www.youtube.com/@GauriGuglani

No responses yet