SHAREPOINT 2010 READ FROM LIST USING ECMASCRIPT


/ Published in: JavaScript
Save to your folder(s)

This code works for me without requiring any includes, plugins, or service packs. It should also integrate seamlessly with jquery. If needing to perform this process more than once on a page, make sure namedListItem variable is unique for each case (use different names for that page-scoped variable in each case).

For caml queries, wrap Query tag in View tag.

For lookup fields use .get_lookupValue() property syntax. For example...

<pre>topNavSection[enm] = oListItem.get_item('Section').get_lookupValue();</pre>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.