3,017 reputation
2720
bio website
location Norway
age 27
visits member for 4 years
seen 14 hours ago

Apr
3
comment Wher to put ContentPlaceHolderMain in custom master page
Are you sure? Isn't the div the syntax for the 2013 branding stuff
Apr
3
comment SharePoint Popup Close validation
It might be a bit "much", but how about storing a User Profile property?
Apr
3
comment SharePoint Popup Close validation
Isn't localStorage a better option if one is doing client side anyway?
Apr
3
comment Custom Ribbon Sharepoint 2013 Custom Action with javascript
Could it be permission? Have you tried, just for the sake of testing, to give full control on web and lists?
Apr
3
comment Provider Hosted app server error
At the bottom of the file SharePointContext.cs there should be a LoadSharePointContext, one for each "type", that is probably using httpContext.Session, is this session null?
Apr
3
comment Custom Ribbon Sharepoint 2013 Custom Action with javascript
Do you get the error if you try to deploy without the custom action as well?
Apr
3
comment How to make web part with properties for Js Development only
A SharePoint hosted solution can be deploy on any 2013 SharePoint, such as on premise. Note that you need to enable apps on your site for it to work.
Mar
31
comment The remote server returned an error: (401) Unauthorized
This actually works. I have no idea why, but it feels wrong. You can do something like this: var clientContextHack = new ClientContext(clientContext.Url). I can fetch the file through clientContext.Web.GetFileByServerRelativeUrl, but not OpenBinaryDirect without the hack.
Mar
31
comment Powershell add sitecollection primary adminstrator
Well, the $web variable in OPs gist does not yet exist, so what SPWeb to use from my snippet is up to him/her :)
Mar
31
comment CSOM vs JSOM vs SSOM vs REST
Something like this: chat.stackexchange.com/rooms/13812/csom-vs-jsom-vs-ssom-vs-rest
Mar
31
comment Error Setting Ratings using SharePoint Client Object Model
Your error message is a bit strange, but the link you provided does not use the SP.ProxyWebRequestExecutorFactory as it should. Have you tried this?
Mar
29
comment CSOM vs JSOM vs SSOM vs REST
Hi @Nikhil, what do you mean? Perhaps we could start a chat, I imagine a lot of questions/suggestions/changes might need some discussion.
Mar
28
comment Trying to setup a Provider hosted app
I agree with your answer below @NadeemYousuf (+1), although isn't the error message a bit strange? It looks like some property on the web (of the app) should have the same address as itself? (I have worked it provider-hosted, but not provider-hosted remote event receivers).
Mar
28
comment How to add Client Web Part to .aspx page programmatically in SharePoint provider hosted app?
What is wrong with this approach? Another way is to use CSOM to add the web part, it is quite easy
Mar
21
comment problem getting date time
Perhaps you must call moveNext() first? In any case, open your browsers dev tool console (Usually F12), and check for errors
Mar
21
comment List description displayed in webpart
I'm not familiar with that. But if the description is a list property (not items), perhaps you could use client object model instead? (It is very easy, I can give an example answer if that is what you are looking for)
Mar
21
comment List description displayed in webpart
A Webpart without a DLL, that would be a "Client WebPart" right? So I'm guessing 2013 and SharePoint hosted app?
Mar
18
comment using sharepoint client object model need to update item from one list to another in batch
.load is for loading data, not updating, I would just call update. This code should work perfectly: c=SP.ClientContext.get_current(),i=c.get_web().get_lists().getByTitle('Test').a‌​ddItem();i.set_item('Title','test');i.update();c.executeQueryAsync(), and it can be looped (batched) just as well as far as I know
Mar
18
comment using sharepoint client object model need to update item from one list to another in batch
If he is making a windows application, perhaps using C# and Microsoft.SharePoint.Client is more appropriate? Although the code would be very similar. And do you really need the .load?
Mar
8
comment this.Retrieve method is executed
Please include the error message from onRetrieveFailed (second argument, and get_message)