Tag Info

Hot answers tagged

1

You can get the document link using following line: var url = _spPageContextInfo.webAbsoluteUrl + oListItem.get_item('FileRef');


1

You can use built-in server controls in a SharePoint-Hosted app. You just can't use any code-behind. The markup for the various data source and UI controls remains the same. <SharePoint:SPDataSource ID="SPDataSource1" runat="server" DataSourceMode="List" SelectCommand="<Query></Query>" > <SelectParameters> ...


1

You can convert the date time string returned into javascript datetime object, and extract the information required. Take a look at this link var date = new Date("2013-09-23T23:56:46Z");


1

There are couple of ways to check the user existence. You can check following options: var targetSite = new Uri("siteurl"); var login = "username"; var password = "password"; var securePassword = new SecureString(); foreach (char c in password) { securePassword.AppendChar(c); ...


1

For anyone in future, I wrote code that will do this. listUrl is a WEB relative URL segment of the list, for example "Shared Documents". Note I'm just setting this.listName here, but at that point you have the full List object, so grab whatever you need at that point. Folder folder = ...



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