Can I loop the "Columns" on a particular cell

Can I loop the "Columns" on a particular cell

HardCorps88HardCorps88 Posts: 11Questions: 5Answers: 0
edited February 2016 in Free community support

I was wanting to do something like this when returning my object to the array.

"columns": [
{"data": "TreeNodeId" },
for(i=0; i < result.length; i++)
{
{"data": "DailyHours"}
}

Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 64,061Questions: 1Answers: 10,559 Site admin
    Answer ✓

    I'm not quite sure what your goal is here - your above code is not valid Javascript. Are you trying to build an array with objects in it? If so, I would suggest building the array before you initialise the table and then assign the resulting array to columns.

    Allan

  • HardCorps88HardCorps88 Posts: 11Questions: 5Answers: 0

    Yeah I was trying to pseudo code what I was attempting to figure out. I ended up having to do it in my code and return it.

This discussion has been closed.