Skip to Content

Design Studio SDK: Array Util Component



Sometimes you just want to loop 10 times.. or create a custom array (simpler version of Design Studio SDK: Collection Util Component)


Items with

  • (String) value

as Design Studio does not have "for-loop", you can use this object to simulate - just create an array of X and loop at it.



void createArray (

  /**length*/ int lenght)

creates an array of given length, eg 10. content are integers starting with 0
void setValues (  /*values*/ String values,  /*separator*/ optional String separator)initialization with values, the loop is on values:
  • array lenght equals to the length of values

Default Separator is comma ,
void addValue (  /*value*/ String value)you can add values one by one as well
String getValues(  /*separator*/ optional String separator)

values separated by separator

Default Separator is comma ,

int getLength()length of current array
String getValueByIndex(  /* index */ int index)getValueByIndex

The Coolest Function


org.kalisz.karol.scn.pack.StringArray getValuesAsStringArray (

  /**max members*/ optional int maxMembers)

returns the complete collection of values as JSON loopable object.

maxMembers can restrict the length of the returned array

Another Cool Function


Array eaches

   (/*Starting int*/ int start,

    /* Ending int */ int finish,

    /* Interval increment */int interval)

see blog for details:

Design Studio SDK - BIAL loop (and my first GitHub co-author attempt)

Example Application

An Application with example can be downloaded at the BIAPP Repository:


Source Code & Licensing

This component is for free use. It is under the Open Source Apache Version 2.0 License.

Important Maintenance Notice (... as I am SAP Employee)

The component is NOT delivered under SAP maintenance license.

You cannot claim any Support on this component from SAP!

The components are created on "private" basis - you can use them as is. I can modify, correct or improve - but there is no obligation to do it. Of course I will try to correct bugs or improve the component as long I can.

Have Fun!

for other components see: Karol's SDK Components