title: Trying to push items in an observableArray after reading from an Excel file but not all the data is being pushed
body: <p>The table below is also the format of my excel file</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  
  &lt;html lang="en" xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8" /&gt;
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;button data-bind="click: GetCount"&gt;Get Tickets&lt;/button&gt;
      &lt;table&gt;
          &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;
                  #REQ
              &lt;/th&gt;
              &lt;th&gt;
                  #RITM
              &lt;/th&gt;
              &lt;th&gt;
                  #TASK
              &lt;/th&gt;
              &lt;th&gt;
                  Start Date
              &lt;/th&gt;
              &lt;th&gt;
                  End Date
              &lt;/th&gt;
              &lt;th&gt;
                  Status
              &lt;/th&gt;
              &lt;th&gt;
                  Comments
              &lt;/th&gt;
          &lt;/tr&gt;
             &lt;/thead&gt;
  
           &lt;tbody data-bind="foreach: AddNewTicket"&gt;
               &lt;tr&gt;
                   &lt;td data-bind="text: req"&gt;&lt;/td&gt;
                   &lt;td data-bind="text: ritm"&gt;&lt;/td&gt;
                   &lt;td data-bind="text: task"&gt;&lt;/td&gt;
                   &lt;td data-bind="text: sDate"&gt;&lt;/td&gt;
                   &lt;td data-bind="text: eDate"&gt;&lt;/td&gt;
                   &lt;td data-bind="text: status"&gt;&lt;/td&gt;
                   &lt;td data-bind="text: comments"&gt;&lt;/td&gt;
               &lt;/tr&gt;
           &lt;/tbody&gt;
      &lt;/table&gt;
  
      &lt;script src="knockout-3.4.0.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="ViewTicketsJS.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The JS file is as follows:</p>
  
  <pre><code>function AddNewTicketFunc(req, ritm, task, sDate, eDate, status, comments) {
      var self = this;
      self.req = req;
      self.ritm = ritm;
      self.task = task;
      self.sDate = sDate;
      self.eDate = eDate;
      self.status = status;
      self.comments = comments;
  
  }
  
  function AppViewModel() {
      var self = this;
      self.username = ko.observable();
      self.REQ = ko.observable();;
      self.RITM = ko.observable();
      self.TASK = ko.observable();
      self.user = ko.observable();
      self.URL = ko.observable();
      self.access = ko.observable();
      self.Description = ko.observable();
  
  
  
      self.AddNewTicket = ko.observableArray([/*
          new AddNewTicketFunc("1", "2", "3", "4", "5", "6", "7")*/
          ]);
  
      self.GetCount = function () {
          var cn = new ActiveXObject("ADODB.Connection");
          var strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = C:/Users/nairas2.dv/Documents/Visual Studio 2012/Projects/TaskList.xlsx;Persist Security Info=False;Extended Properties=Excel 8.0;"
          cn.Open(strConn);
          var rs = new ActiveXObject("ADODB.Recordset");
          var SQL = "select * from [TicketsTable$]";
          rs.Open(SQL, cn);
          //rs.Open(cn);
          if (rs.bof) {
              document.write('No records available for this query');
          }
  
          if (!rs.bof) {
  
              rs.MoveFirst()
              while (!rs.eof) {
                  var count = rs.fields.count;
                  alert(rs.fields(0).value + rs.fields(1).value + rs.fields(2).value+ rs.fields(3).value+ rs.fields(4).value+ rs.fields(5).value+ rs.fields(6).value);
                  //alert(count);
                 /* for (var i = 0; i != rs.fields.count; ++i) {
                      document.write(rs.fields(i).value + " | ");
                  }*/
  
                      //this.AddNewTicket.push(new AddNewTicketFunc(rs.fields(--count).value, rs.fields(--count).value, rs.fields(--count).value, rs.fields(--count).value, rs.fields(--count).value, rs.fields(--count).value, rs.fields(--count).value));
                  self.AddNewTicket.push(new AddNewTicketFunc(rs.fields(0).value, rs.fields(1).value, rs.fields(2).value, rs.fields(3).value, rs.fields(4).value, rs.fields(5).value, rs.fields(6).value));
          //self.AddNewTicket.push(new AddNewTicketFunc("1", "2", "3", "4", "5", "6", "7"));
  
                //  document.write("&lt;br /&gt;");
                  rs.MoveNext();
              }
          }
          rs.Close();
          cn.Close();
      }
  }
  
  ko.applyBindings(new AppViewModel());
  </code></pre>
  
  <p>On debugging I found the error at the push function</p>
  
  <p>Here is the screenshot of the output:
  <a href="http://i.stack.imgur.com/sOuM6.png" rel="nofollow">As you can see the remaining fields are blank</a></p>