Tag Info

Hot answers tagged

3

You can use the SP.ListItemCreationInformation.set_folderUrl method (MSDN). And here is a simple example: var clientContext = SP.ClientContext.get_current(); var list = clientContext.get_web().get_lists().getByTitle('Custom'); var itemCreateInfo = new SP.ListItemCreationInformation(); itemCreateInfo.set_folderUrl('/Lists/Custom/Folder'); var listItem = ...


3

CSOM: will work in SP online, SP 2010, 2013 and most probably 2016 REST: will work in SP online, SP 2010, 2013 and most probably 2016 OOTB Web service: will work in SP 2007, 2010, 2013 but maybe not in 2016 (and maybe not with future versions of SP online) Creating your own Web service with SOM: will work in SP 2007, 2010, 2013 and 2016


2

RIGHT click on IE hold SHIFT and then RIGHT click again on IE LEFT click "Run as different user" login Repeat 1.- 4. for other users :)


2

If I got you right, you search for documents using CSOM/REST. Let's assume you try to use 'query' method of '_api/Search' endpoint. All you need is to define selectproperties for query: You may need SPWebUrl to construct request to REST endpoint for item properties. Let me assume you're using on-premises SharePoint Server 2013 installation. In this case ...


2

Goto the search page where you are showing the results Edit the Search results webpart Edit the Query change query to speaker:{searchboxquery}


1

Try to add this line between line before this.oListItem.update() statement (between lines 15 and 16 in the sample): this.oListItem.set_item('Title', "My new folder!");


1

Change the pagination of list views to how you want and copy the changed URL. The next time you paste this URL, you'll see your pagination persisted. Some background info on how this works: If you notice the URL when you change the page of the list view, you'll notice something like #InplviewHash appended. This is because in SP 2013, inplview.js handles ...


1

I would create 3 different views with filters: View1 to display 1 to 35 items View2 to display 36 to 70 items View3 to display 71 to 100 items Add webparts to each column and select each webpart properties to display View1, View2 and View3. Tada...


1

You could add a number column to the list, call it, say, "Sort Order", and then create a view that sorts on the values of your "Sort Order" column.


1

Check out http://www.viewmaster365.com/#/How and http://www.viewmaster365.com/#/Create/ActionDelete It step by step explains how to execute JavaScript from a Calculated Column. The ID for an item is available on the Table Row, because a Calculated Formula is displayed inside that TR structure; all you have to do is: var ...


1

Use chrome and create multiple users In settings you can shift to a different user using top right menu every user login will be opened in a seperate window. Each window will have its own cache, saved passwords, bookmarks etc.


1

Personally, I use 3 browsers for testing with different users, this is the best way I think, you don't need to install a small VM, that's too dear and long to do it. Chrome, Firefox, Safari, Opera and Maxthon is your friends. Easy to install and test, just enjoy it.


1

There's a bunch of options: You can easily open up to 6 browser sessions: IE, IE InPrivate, Chrome, Chome Incognito, Firefox, Firefox Private browsing (+ Opera or else if you want!). They all have their own session/authentication information, and you can log in with 6 different users. At the same time, if you're developping in SharePoint, you can test ...


1

After doing a lot of searching through the ULS logs, I found some entries indicating that the index storage was running out of disk space. I increased the size of the disk, and that seems to have resolved the issues.


1

I finally found a solution which is satisfying for me. Even though I wrote, that postMessage is not what I want to do - this has now become the solution. I always knew that I can solve this problem with postMessage (refer to @Rafael Dabrowski post for details). What I didn't like about it, was always that I thought I would have to edit every single page ...


1

You may check the SPListItem.Workflows property on a given list item (e.g. the current list item) (see https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.workflows.aspx). That would give you the list of WF instances running in the scope of that item.


1

Add these scripts to your masterpage: <script type="text/javascript" src="/_layouts/sp.core.js"></script> <script type="text/javascript" src="/_layouts/sp.runtime.js"></script> <script type="text/javascript" src="/_layouts/sp.js"></script>


1

I had that same issue. Certificate turned up when I used this: foreach (var certificate in store.Certificates) { if (certificate.SerialNumber.ToLower().Equals(ClientSigningCertificateSerialNumber)) { storedCert = certificate; break; } } Update (original method, slightly changed): //removes unwanted characters string newString = ...


1

The follow function needs the MySite Site Collection. The information is stored in the site collection. There is a special List named Social in every MySite storing this information. For the Followed Document are store under the url: https://mysite.host/personal/<name>/Social/Followed Document


1

Use SPServices for this. You can pass the lastname / first name and get the user object using which you can fetch user properties. See: http://spservices.codeplex.com/wikipage?title=SearchPrincipals


1

I'm sorry but the setup user/farm user has to be a domain account. You can find more information about this following this link Setup user account - Domain user account Server farm account - Domain user account


1

You can refine the search by using the syntax PropertyName:Value. e.g. Title:Bob. You may find all available properties ("Managed Properties") in the search settings, from the CA. Some links: Default managed properties are listed here: https://technet.microsoft.com/en-us/library/jj219630.aspx. See existing properties: ...



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