Tag Info

Hot answers tagged

2

Double quoted string expand variables and single quoted strings do not. Use like this: $query = "<query> <where> <eq> <FieldRef Name="ID" <Value Type="Number">$IDNum</value> </eq> </where> </query>" http://blogs.msdn.com/b/powershell/archive/2006/07/15/variable-expansion-in-strings-and-herestrings.aspx


1

The below code will help you var context = new SP.ClientContext.get_current(); var list = context.get_web().get_lists().getByTitle("ProjectInformation"); var camlQuery = new SP.CamlQuery(); camlQuery.set_viewXml('<View><Query><Where>--your query goes here -- </Where></Query></View>'); var collListItem = ...


1

$(document).ready(function() { ExecuteOrDelayUntilScriptLoaded(function getData(){ //your code to get data from sharepoint list. }, "sp.js"); }); load sp.js and then your code to retrieve list data http://msdn.microsoft.com/en-us/library/office/jj245759(v=office.15).aspx


1

You need either camlQuery.set_folderServerRelativeUrl(folderPath); (JSOM) or SPQuery.Folder (Server API). Both respect the "Recursive" attribute. MSDN references: SPQuery.Folder property CamlQuery.FolderServerRelativeUrl property


1

You cannot get the document icon as a property, you will have to make the url for it. SharePoint has already lots of icons available in the DOCICON.xml file at C:/Program Files/Common Files/Microsoft Shared/web server extensions/14/TEMPLATE/XML Simplest way could be to load based on file extension "/_layouts/images/icXXX.gif (where icXXX, would be ...



Only top voted, non community-wiki answers of a minimum length are eligible