2,054 reputation
2614
bio website
location Norway
age 26
visits member for 3 years, 1 month
seen 2 days ago
stats profile views 353

Mar
25
comment How do I update an already existing wsp on farm?
Not sure @Mike, I hardly use workflows myself. But at least if you update only the DLL you should be safe
Jan
24
comment sp.js not loaded js file provisioned by a module
What happens if you run _spBodyOnLoadWrapper() manually, and perhaps try 'SP.js', although I don't think it should be case sensitive.
Jan
21
comment How to download a sharepoint aspx page from server using powershell
The chocolatey way is quite cool: @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString($url))"
Jan
21
comment How do I update an already existing wsp on farm?
It might be true for all I know, and it probably should, but I have honestly never had any issues running Ùpdate-SPSolution -GACDeployment` on WSP files with newer DLL files. Do you have a link stating otherwise, @bkwdesign?
Jan
15
comment SPUserCollection class
I don't know what properties is, but if it is SPItemEventProperties then I would like to note that you can do properties.ListItem. And now that Egor pointed out you get SPFieldUserValueCollection, give you have a SPFieldUser field I will just leave this as a comment :)
Jan
15
comment SPQuery always returns values
Have you tried <Value Type="Text"> instead of with String?
Dec
9
comment How to return a value using context.executeQueryAsync?
With executeQueryAsync it is impossible. I believe you can do it with SPServices. See example
Dec
8
comment How to return a value using context.executeQueryAsync?
I have tried to keep your code as similar as your original one, while also trying to follow some best practices (jshinting), you can see the result here: gist.github.com/4241236
Dec
8
comment How to return a value using context.executeQueryAsync?
This is the way you are suppose to do it. When dealing with AJAX this is the common approach. You can get around this by augmenting XMLHttpRequest, but that is very bad :)
Dec
7
comment How to return a value using context.executeQueryAsync?
The value is not returned, instead you pass a function into the getSpCurrentUser as a variable (line 13 and 1, named callback) which will be called from within the getSpCurrentUser function (line 7 and 9). Since executeQueryAsync is asynchronous any code after line 19 will be run before you get your callback (line 14-18). There should not be two functions with the same name
Dec
5
comment How to create a folder in SharePoint 2010 document library using REST or HTTP methods
Hey. Sorry I haven't had time to look into it. Great that you found a solution for nested folders :)
Nov
27
comment Trouble-shooting jQuery Problems
Anywhere you like really, for example with script link. But to test this solution you can open up your console (F12) and run _spBodyOnLoadWrapper(), if this works you should immediately see improvements.
Nov
19
comment Adding style sheet to feature
Thanks for accepting :) Just a note, I prefer to add scripts and stylesheets in a Module because then I know they will be referenced only once (ish). If you reference directly in your visual Web Part then adding the same Web Part twice to a page might cause havoc (for scripts).
Nov
18
comment Adding style sheet to feature
Ah, sorry for misunderstanding. You can do it in the module as I mentioned in the answer. Let me update
Nov
16
comment Use of Virtual Machines for Sharepoint Development
You could also consider CloudShare, it's quite nice for development. (Disclamer: third party, not free)
Nov
15
comment Previous versions of ListItem with CSOM
It looks to me this is not possible, perhaps not even through the REST interface either. I can do it on files, e.g., ctx.get_web().get_lists().getByTitle('Test').getItemById(1).get_files().get_ver‌​sions(), but not on pure SP.ListItem. Although it should be possible through SPServices.
Nov
15
comment Number field on custom content type working inconsistently amongst items
Are you modifying and deploy the content type? That could prove difficult and inconsistencies might be related.
Nov
14
comment Upload a document in a specific folder
Comment to your statement about reflector: You could try DotPeek by JetBrains <3. I usually just use ReSharper, then I can right click or ctrl+b and get the code decompiled directly.
Nov
14
comment Upgradable Sandboxed solution without DLL
No, I click Upgrade. But I have tried that also, as well as remove/add.
Nov
14
comment Upgradable Sandboxed solution without DLL
Thanks for the answer, but the whole point about the question is to not have a DLL, hence your example code can not exist. And the scenario is basically for upgrade, not deactivate/activate. I must admit I have not tried IgnoreIfAlreadyExists, but I did not think it would help in my case.