Skip to content
Advertisement

Multiple Arrays in DataTable

So I am working on a project and am having trouble trying to use multiple arrays of data in a data table.

The issue I am running into is my initial set of data comes from a sharepoint list call(the calculations variable).

I then use values in that array to run some calculations and put those into their own array(formulatedNumbers).

I have my DataTable filling the first 6 columns with data fine(with the calculations array), the issue is getting the second array(formulatedNumbers) into the 7th column.

My javascript buiding the datatable is below

TL;DR After I use the first array to fill in columns 1-6, I want to use another array to fill in column 7.

JavaScript

Advertisement

Answer

I suggest just adding the new attribute to each item in calculations.

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement