Skip to main content
15 events
when toggle format what by license comment
Jul 29, 2015 at 1:39 history edited jasonscript CC BY-SA 3.0
deleted 1 character in body
Jun 6, 2013 at 8:51 comment added Hugh Wood It's cool, answer with how you fixed it yourself and mark it as correct. SPServices is great for 2010 CSOM work arounds.
Jun 6, 2013 at 3:05 comment added jasonscript @(Hugh Wood), you might as well create an answer as this is the closest explanation I could come up with. I never got it working with the SharePoint CSOM, so I resorted to using the SPServicess library (spservices.codeplex.com)
May 9, 2013 at 13:18 comment added Hugh Wood Okay the object is delegating to itself awesome.. Okay looks like a script hasn't loaded properly before you run your code. What version of SharePoint is this? Looks like Scripts On Demand could help you out with execution timing.
May 8, 2013 at 14:00 comment added jasonscript Circular reference in value argument not supported
May 8, 2013 at 13:48 comment added jasonscript my code seems to work if I attach it to a button click event. but when I change it to the page load it no longer works. I'm sure it has to be something to do with SP dependencies or something JSON.stringify(itemCollection) gives me an error in console: circular reference
May 8, 2013 at 9:54 comment added Hugh Wood Okay just before the enumerator using a breakpoint JSON.stringify(itemCollection) to serialise the output in the console window.
May 8, 2013 at 9:43 comment added jasonscript I don't have access to the web.config of the SharePoint server. The line with the enumerator throws an exception. I never get to the while loop.
May 8, 2013 at 9:39 comment added Hugh Wood In your web.config find the compilation tag and set debug to true, this way you can trace through. Also stick the break point on the Enumerator and then look at items does it loop through the while loop?
May 8, 2013 at 9:30 comment added jasonscript itemCollection starts as an empty object {} When I get to the clientContext.loadQuery(itemCollection) the itemCollection is initialised with some SharePoint fields (which are minimized so they have unfathomable names: $0_0 and $4_0) Later, in the successHandler, the itemCollection is still initialized with the SharePoint properties. I can't really step into it because it goes into the minimized SP.js files from SharePoint
May 8, 2013 at 9:24 comment added Hugh Wood I boiled your code down to it's simplest version here jsfiddle.net/hughajwood/ZwJud using an ajax call to simulate the list call. The code does fall into scope but you aren't making a new version of the object for use so that's a consideration if you are using it more than once and could be a possible issue. Apart from that you need to stick a breakpoint on the loadQuery line and check to see if itemCollection is being instantiated there. If it is, stick one on the getEnumerator line and step through the code.
May 8, 2013 at 6:35 answer added Shawn timeline score: -1
May 8, 2013 at 6:21 history edited Benny Skogberg CC BY-SA 3.0
Removed final help note
May 8, 2013 at 4:28 review First posts
May 8, 2013 at 6:21
May 8, 2013 at 4:10 history asked jasonscript CC BY-SA 3.0