skip to Main Content
fieldData.OnData.bind( function(){
            fieldData.rows.forEach(function(row){
            
            console.log(row.qText)
        })

output

enter image description here

So my question is how do I get all these values into one array for use?

PS-(Basically I want last value moreover (2022-2023) )

Can anybody suggest a solution for this issue?

Any help is greatly appreciated.

Thanks in advance

2

Answers


  1. I think it’s already an array then you can use

    console.log(fieldData.rows) //array
    
    Login or Signup to reply.
  2. fieldData.OnData.bind(function() {
      let rows=[];
        
      fieldData.rows.forEach(function(row) {
        rows.push(row.qText)
      })
      console.log(rows);
    });
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search