title: How To Loop through result.invocationResult.resultSet in IBM worklight
body: <p>Everything works except the display function . In this display function i am trying to access the field Name from the resultSet but it is not working.</p>
  
  <pre><code>function succ(result)
      {   
  
          alert("connected");
          var a = result.invocationResult.resultSet[1].Name;
          $("#fetcharr").val(a);
          alert("connectedlll");
          display(result.invocationResult.resultSet);
          alert("the end");
  
  
      }
  </code></pre>
  
  <p>Display function is: </p>
  
  <pre><code>function display(items)
      {
  
          alert("heelo");
          for(var j in items )
          {
                  var a = j.Name;
                  alert(a);
  
          }
  
      }
  </code></pre>