Submits
  • Member for 7 years, 6 months
  • Last seen more than 2 years ago
  • United Kingdom
Which one is faster CSOM or JSOM
Accepted answer
12 votes

Check out this excellent article where the performance of both is tested: Deep Dive – REST and CSOM Comparison I tested a series of pretty common operations in both REST and CSOM: Creating ...

View answer
How to get Relative Url using Jquery in Sharepoint Site
Accepted answer
9 votes

Use _spPageContextInfo in your JavaScript. Usage: var url = _spPageContextInfo.webServerRelativeUrl; alert(url); See others here: http://blah.winsmarts.com/2013-2-...

View answer
running Macro's in Excel Workbooks stored in SharePoint
6 votes

When you open an Excel workbook that's saved on SharePoint in the browser there will be a limited number of features available to you. One of the things you can't do is run macros. This is by design. ...

View answer
Best Practice for Lists and Web Part Pages
5 votes

A web part page with a list web part on it is actually exactly the same as "the list itself". When you say "the list itself", THAT is a web part page with a list view web part on it. Nothing more. So ...

View answer
"Edit document in Word" with Chrome now produces an error
Accepted answer
5 votes

Just under a year ago Google removed the NPAPI plugin from its Chrome browser. Since this change one is no longer able to do a number of things with the Chrome browser in SharePoint. It could be that ...

View answer
Workflow on update: get 'before' and 'after' values
Accepted answer
4 votes

The only way to achieve this with a workflow is to have an "old" column of the changed column. For example, let's say you have a column called ColumnA and another called ColumnA_old. ColumnA_old will ...

View answer
Odata orderby Calculated Field
4 votes

I don't believe SharePoint's REST API supports ordering or filtering on calculated columns. The workaround is to use the ListData web service, like so: http://mysite/sites/siteone/_vti_bin/listdata....

View answer
How to authenticate the user with Designer workflow 2013 and REST API?
Accepted answer
4 votes

In your REST call are you specifying the X-RequestDigest parameter in its headers? If not, you need to. Every REST call needs to be authenticated. You can find an excellent step-by-step guide on how ...

View answer
Break role inheritance and assign permissions to document with REST api?
Accepted answer
4 votes

In your comments you say you have made an attempt but can't break permissions inheritance in your workflow. The answer to your question is yes, you can break permissions inheritance via the REST API ...

View answer
How do you know a particular view is a personal view or a public view?
4 votes

When you click the view in the list or library look at the URL. With a personal view you will find the URL looks something like: Site/Lists/ListName/PersonalViews.aspx?

View answer
how to get the url of a list item in jslink?
4 votes

Try this. The url will take you to the display form of the item. (function () { var overrideContext = {}; overrideContext.Templates = {}; overrideContext.Templates.Header = "<ul id='...

View answer
SP.js file not loaded in a simple JSOM example
4 votes

It could be you're calling retrieveListItems before SP.js has been fully loaded, in which case try: SP.SOD.executeFunc('sp.js', 'SP.ClientContext', retrieveListItems);

View answer
SharePoint 2010 column validation alphanumeric
3 votes

You probably can't do this out of the box. An alternative is to use the PreSaveAction JavaScript function so that the form is validated when the user clicks the Save button - not sure if JavaScript ...

View answer
How to add a button to a document library
Accepted answer
3 votes

Rather than using $(document).ready() try this: <script> _spBodyOnLoadFunctionNames.push("ButtonFunc"); function ButtonFunc() { $('.ms-qcb-leftzone').append('<li class="ms-qcb-item">&...

View answer
Programmatically Get Version Changes for List Item in SharePoint 2013
Accepted answer
3 votes

There's no direct way provided by the server side API to get version changes. But you can compare the fields of different versions: using (SPSite site = new SPSite("http://my.domain.com/")) using (...

View answer
script runs too soon
3 votes

Try this instead. I've also fixed some errors in your code. _spBodyOnLoadFunctionNames.push("Init"); function Init(){ alert("Before SPCascade"); $().SPServices.SPCascadeDropdowns({ ...

View answer
Get Manager field of Active Directory from SharePoint Designer Workflow 2013
Accepted answer
3 votes

You're using SharePoint 2013 - got it. If your workflow is a SharePoint 2010 workflow you can simply use the Lookup Manager for User activity. If your workflow is a SharePoint 2013 workflow you will ...

View answer
Check if user is member of group
3 votes

function CheckMemberInAdminGroup() { var clientContext = new SP.ClientContext.get_current(); this.currentUser = clientContext.get_web().get_currentUser(); clientContext.load(this....

View answer
How do I trigger onchange from a default SharePoint 2010 date field?
3 votes

Yes this is possible. I have successfully used the the onvaluesetfrompicker function of a Date field, like so: $('#specificDateFieldID').get(0).onvaluesetfrompicker = DatePickerChanged; function ...

View answer
How do I get the sum of items of several document libraries using JavaScript
Accepted answer
2 votes

I answered a similar question here. Your JavaScript would look similar to this (note the use of jQuery): var count = 0; $.when( RestGet("listname1", "yourErrorDiv", "Couldn't get from listname1"...

View answer
Project Dashboard in SharePoint 2013
2 votes

Try something like this. You will need to add this JavaScript and a reference to jQuery on your page. It uses jQuery deferred/promises to wait for three REST calls to return successfully before ...

View answer
workflow to delete list item on subsite( Sharepoint designer call http web service )
Accepted answer
2 votes

You shouldn't need anything in the RequestContent field. Set RequestType to HTTP POST. Set RequestHeaders to your Dictionary 1 dictionary. You already have the Accept and Content-Type headers in ...

View answer
Messed up columns and forms after adding from existing site columns
Accepted answer
2 votes

Welcome to the site. What happens when you add site columns to a list or content type is that a copy of that column is taken and added to the list or content type. For this reason, if you were to ...

View answer
How to setup a lookup column refering to a document library's file url
2 votes

Assume you have a column in your DocLibA view that is a single value lookup column to a column in DocLibB (it actually doesn't matter which column in this case). You can use Client Side Rendering to ...

View answer
Autopopulate 'Name' field with text on Page Load on New Document Set Form
Accepted answer
2 votes

The NewDocSet.aspx Page If you look at the URL of this page you'll see it looks something like http://site/_layouts/15/NewDocSet.aspx You can see that NewDocSet.aspx lives in the LAYOUTS folder of ...

View answer
Using jQuery $(document).ready() in JavaScript Object Model
Accepted answer
2 votes

If I understand your question correctly, you are asking how to stack asynchronous calls so that the second function only executes when the first is complete. Look into jQuery deferreds, they allow ...

View answer
How to check is the URL given is of site collection or subsite using powershell
Accepted answer
2 votes

If you do: $site = Get-SPSite https://sharepointsite/sitecollection/web/web and you get an error message that says: Get-SPSite : Cannot find an SPSite object with Id or Url: https://...

View answer
How to count the number of times a Workflow is triggered in Sharepoint 2010
2 votes

If the workflow is kicked off when the copy button is clicked, this is a possible solution: In your list add a column called CopyCount of data type Number and default value 0. Update your workflow ...

View answer
CAML query with OR returns no result, where single part of it returns results
Accepted answer
2 votes

Try rewriting the query using the equals operator. Also note the Query tag is not required if you're not using the client object model: <Where> <Or> <Eq> <...

View answer
Sharepoint Visual studio workflow
Accepted answer
2 votes

Yes you can use the UpdateListItem activity. In the ListItemPropertiesDynamicValue property you need to set the Path and the Value. In Path select the field you want to update. In Value enter the ...

View answer
1
2 3 4 5 6