Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: GetListItems Returns "undefined" for a field

$
0
0

Are those two columns 'undefined' for all rows that you retrieve from the List 'riskmap_master'... Or only some rows have those two columns 'undefined' while others have other data on them?  I'm just trying to determine if those two field display OK for some rows and not others...

Could you paste the XML being returned by the GetListItems operation? Looking at the XML may help me help you :)

Also,

Run this from your page or from the browser developer tool (IE) or Firebug while on the page containing your code above:

$().SPServices({
  operation:    "GetList",
  listName:     "riskmap_master",
  completefunc: function(xData, Status) {
    console.log(xData.responseText);
    $(xData.responseXML).find("Fields > Field").each(function() {var $node = $(this);
      console.log( "Type: " + $node.attr("Type") + " StaticName: " + $node.attr("StaticName") );
    });
  }
});

This will output the list definition along with all of the fields currently defined for your list along with their static name to the console (taken from the GetList documentation page.

Paul



Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>