3,027 reputation
2720
bio website
location Norway
age 27
visits member for 4 years
seen 2 days ago

Feb
26
comment Is it possible to programmatically add a web part to a page in a sharepoint hosted app (JS)
@CameronVerhelst SharePoint hosted app?
Feb
26
comment Is it possible to programmatically add a web part to a page in a sharepoint hosted app (JS)
@CameronVerhelst that answer is csom, not jsom. And, for what it is worth, missing the auth, but could probably be converted to jsom. This might be interesting though: sharepoint.stackexchange.com/a/86569/627
Feb
26
comment Is it possible to programmatically add a web part to a page in a sharepoint hosted app (JS)
If you give access to the library that holds the web part page, then you could probably edit it through jsom, and then add web part. Heh, if you could do that you could actually edit the iframe tag that holds your app, and through html5 (sandbox allow attribute) give full access, which renders the DNS-solution for cross origin lockdown useless.. so perhaps not
Feb
24
comment Register Javascript For Document Library
If you want JavaScript on your forms you could hack them in by adding a content editor web part directly to the form (they are web part pages). Just open a newform or editform then click Edit. This is a bit fragile and odd, but it works if you just want to "throw something in there". You question is a bit vague to know though
Feb
24
comment Download bulk data of around 150gb from Sharepoint 2013
I think that depends if you are sitting on the server or not, with PowerShell you might want to use remote powershell, and then it will probably have the same speed, but without the ability to print information about progress pr. file.
Feb
24
comment Download bulk data of around 150gb from Sharepoint 2013
Have you seen sharepoint.stackexchange.com/questions/44724/… ?
Feb
24
comment Download bulk data of around 150gb from Sharepoint 2013
How open are you to using PowerShell / C#?
Feb
21
comment How to pass and return value in SharePoint 2013 REST
Is the problem actually that you define a success function outside of the closure where you do the query? Such as this could fix that: var id='derp';$.ajax({success:function(){$(id)})
Feb
21
comment Library event receiver - Object reference not set to an instance of an object
I agree with @NadeemYousuf
Feb
21
comment Library event receiver - Object reference not set to an instance of an object
If web was null in OPs code, wouldn't this code have the same problem when calling web.Site?
Feb
21
comment Auto populating a text box based on listbox selected value and drop down value javascript sharepoint
I don't think comment is a good place to dump code, please use a pastebin such as gist.github.com . I can't derive anything from your dump either, only more proof that you have a select element, and as long as each option has value my code should work. You could extract the exact HTML and append it to the fiddle
Feb
21
comment Auto populating a text box based on listbox selected value and drop down value javascript sharepoint
By list box I would suspect <select><option></option></select>, like jsfiddle.net/HZ3fB
Feb
20
comment powershell to export list in sharepoint 2010
Great. Have my upvote :) (I usually don't care, but perhaps $web.Dispose()?)
Feb
20
comment powershell to export list in sharepoint 2010
I haven't tried your code, but is false something in PowerShell? I would expect $false
Feb
19
comment SQL Injections with SharePoint 2010 CAML Queries
Ok, I probably just misunderstood, since that is the only way I know how to add new/update using CAML.
Feb
17
comment SharePoint 2013 - disposing SP.ClientContext in JavaScript
Have you seen sharepoint.stackexchange.com/a/62902/627 ? This question might be a duplicate, as I believe it should be the same for 2013.
Feb
17
comment SharePoint 2013 - disposing SP.ClientContext in JavaScript
You had to dispose the JavaScript object in 2010? Are you sure? Got any link to that? However Microsoft.SharePoint.Client.ClientRuntimeContext extends IDisposable and you should dispose this, but only in C#, I imagine this will dispose off some TCP clients
Feb
17
comment SQL Injections with SharePoint 2010 CAML Queries
Not really related, just curious, are you really using <Batch> to add new/update list data?
Feb
16
comment How to Find Lookup field list using Programmatically
Maybe, who knows :) I'll give you a vote though, until further specified this is IMHO the correct answer.
Feb
16
comment How to Find Lookup field list using Programmatically
I have a slight feeling OP is looking for a way to find lists with lookup to a particular field, and if so it is much more complicated. In that case one might have to do a recursive search, very resource intensive. But I can only speculate because of the question vagueness