Anders Aune

Trondheim, Norway

Age: 32

Sharepoint Consultant at Enable AS

Still learning SharePoint and working primary with SharePoint 2013.

1d
answered Empty CAML Query recursively search through document sets
Apr
27
comment ctx object in document sets
@Chris I was thinking more specific just inside document sets, not other places, just when you are using the page docsethomepage.aspx
Apr
27
comment JavaScript injection with powershell (jQuery doesn't load in time)
On a side note, not related to custom action: In order to use ExecuteOrDelayUntilScriptLoaded you'll have to modify your jquery.min.js file and add NotifyScriptLoadedAndExecuteWaitingJobs("myCustomKey"); , in your case it would be NotifyScriptLoadedAndExecuteWaitingJobs("jquery.min.js");
Apr
27
comment ctx object in document sets
@Chris if you know the ctx object always will be created, can't you just use a setInterval and pool for the typeof ctx === 'object' or something?
Apr
25
comment CSOM - Check if one root site collection
@dstarkowski you are right, don't know why I didn't see that :)
Apr
25
answered CSOM - Check if one root site collection
Apr
25
answered camlQuery rowlimit not working on a list
Apr
23
comment REST abstraction layer WITHOUT jQuery
I'll keep an eye out for the next release and check it out :)
Apr
23
comment How i can set the "Due Date" field (on the fly) to be equal to Today date, when the "Status" dropdown list is changed to "In progress"
@johnG CSR is supported in Quick Edit like you say, and is the correct method to use here, since you want the user to have the option to change the date before they save
Apr
22
comment Simple clientContext.get_current throws undefined error
If it's a addin, have you loaded the SP.Runtime.js file too?
Apr
21
comment REST abstraction layer WITHOUT jQuery
Can't say I know any, but most only uses it for $.ajax it seems, could be tempting just to rewrite does parts to use fetch developer.mozilla.org/en/docs/Web/API/Fetch_API
Apr
19
answered Problems getting executeQueryAsync to work with Promise
Apr
18
comment HillbillyTabs 3.0 in SharePoint 2013 Select Box Bug
You are probably right about that, I haven't had time to take a deeper look at it yet. Kinda cool idea to just make tabs without much work
Apr
18
comment Add Ribbon Button via JavaScript
@Mark To remove all from a web ( named site in the example above), you can simply just use: site.get_userCustomActions().clear(); and execute. Else you have to iterate over the custom actions on the object you added it to, and check for the once you want to remove and use deleteObject
Apr
15
comment Add Ribbon Button via JavaScript
@Mark You are supposed to only run it one time, you are now adding a new Custom Action every time you load the page. You could add it with an sort of "admin" page for this, or simply just run it in the browser console
Apr
11
comment Hide a specific list from 'View All Site Content' using JSOM/CSOM?
And remember that the content in lists with hidden = true will not be crawled
Apr
10
answered Get person or group field from list then query user profile
Apr
8
comment HillbillyTabs 3.0 in SharePoint 2013 Select Box Bug
@AtariPixel yeah, thats the issue causing it to deselect. I'm guessing the changes to the DOM has something to do with it, that the ribbon uses some data attributes on the DOM elements or something. I haven't looked at the selectors etc used (if any) in SP.Ribbon.js , but if it has some parent selectors etc it could hit the new DOM elements added maybe.
Apr
8
answered HillbillyTabs 3.0 in SharePoint 2013 Select Box Bug
Apr
7
comment Programmatically read Excel file in SharePoint 2013 sandbox solution gives permission error
OpenXML should work in Sandbox solution, at least since 2.0 afaik
1 2 3 4 5