Is it possible to concatenate arrays?

I’ve tried using [Array1].concat([Array2]) but it does not seem to work.

Any suggestions on how to combine arrays?

Hi Renzi,

Where are you trying to apply your script? Different languages are used at different parts of the application.

Back-end + Calculate Element = C#
Data = Python, R or Native Query Language of your data connector
Front-end = JavaScript

Each of these are a bit different.

I’m doing it on the front-end, specifically on the click event of a button.

I just gave it a quick go and i am able to concatenate using this code. On the click event of us a button using Dundas BI.

var array1 = [‘a’, ‘b’, ‘c’];
var array2 = [‘d’, ‘e’, ‘f’];
var result = array1.concat(array2);
alert(result);

hope this helps

Thanks Jeff! I was able to make it work.