932 reputation
317
bio website
location Perth, Australia
age 30
visits member for 2 years, 8 months
seen 20 hours ago

Lead SharePoint developer for a major Australian mining company.


Sep
27
comment Determine the number of times a profile has been viewed
These values always seem to be nulls / zeros. Any idea why?
Sep
24
comment Determine the number of times a profile has been viewed
It's worth noting that this type of info is definitely calculated and stored within SharePoint somewhere, as it's displayed in the people search results when you search for yourself (as "Number of searches that led to you").
May
15
comment Can you build SharePoint 2013 solutions by simply copying the assemblies to your machine?
Couldn't agree more Ryan! Although we'd hoped to "future-proof" our solutions now while we're still in the main development phase (as opposed to deploying 2010 solutions to our 2013 production tenant and then kicking off a separate migration project down the track). Also, we ideally want our application to inherit the new 2013 look 'n feel so we didn't want to run our sites in 2010 mode.
May
15
comment Dynamically registering JavaScript from within a sandbox web part
The question clearly states that JavaScript and CSS files need to registered DYNAMICALLY from within a web part (for the purposes of only loading them as part of the page that they're required on). The "worst case" scenario I described is having the files for EVERY web part being registered on the home page. Adding the JS and CS registrations to the master page would ensure this.
Apr
29
comment new Item should show next 3 months and year in drop down
In SharePoint Designer, browse to your list. In the "Forms" pane, right-click "EditForm.aspx" and select "Edit File in Advanced Mode". From here, you can write your JavaScript / jQuery function directly in the "PlaceHolderAdditionalPageHead" content placeholder. Alternatively, navigate to your list's edit form in the browser, then append "?toolpaneview=2" to the end of the URL and hit enter -- this will open the form in edit mode. From here, simply drop a content editor web part into the page and place your script in that.
Apr
24
comment Provision XSLTListViewWebPart with <AllUsersWebPart> or <View> and customize the XslLink
Hi Brian. Can you shed any light on a fix for this if you've found one? I'm also provisioning some XsltListViewWebParts to a page via a Module and can't seem to hook them up to my custom XSL file (which is deployed to the Style Library) using the XslLink property. I'm working with a sandbox solution so deploying the file to the _layouts folder unfortunately isn't an option.
Apr
23
comment SPLimitedWebPartManager throwing “File is not checked out” error on AddWebPart and DeleteWebPart
There are a lot of other bogus fixes on the web which claim to fix this problem, but thumbs up, this seems to be only one that does the trick.
Apr
10
comment new Item should show next 3 months and year in drop down
I'm also concerned that this wouldn't satisfy the requirement to also show each item's originally / currently selected ReleaseMonth value? I've proposed an alternative solution which would solve this, so feel free to chime in.
Apr
4
comment Alert customization
Can you provide some more details -- like the line of code that is generating the exception, and the relevant lines from your SharePoint logs? Note: SharePoint often misleadingly displays an "access denied" page in the browser even when errors occur that have nothing to do with security! On the other hand though, if the "Access denied" message is appearing in your log files, then I'd say with certainty that it realy is a permissions issue. If all else fails, try elevate privelages or run the code as a different user (i.e. using impersonation or your farm admin accout).
Mar
21
comment Can the list view's XslLink property contain a web address?
Yes, all sites are within a single site collection. Unfortunately though, using the browser to hook-up my custom XSL isn't a viable option because it'0s used to render my custom blog template's home page and so it needs to be setup automatically when the site is being provisioned (we can't expect end users to manually execute some steps to brand their sites properly).
Mar
16
comment Can the list view's XslLink property contain a web address?
Hi Dave. If I manually copy my XSL to the filesystem on my dev machine everything works great, so there's no errors there. Obviously this won't be an option for me in prod as we have to deploy to SharePoint Online. I've also tried removing the space as you suggested, but still no luck. Plus -- I can't upload the XSL via the browser as it's part of a site template and so needs to be deployed automatically as part of the site provisioning process.
Mar
15
comment Difference between debug & release?
In what context? Compilation, performance, SharePoint scripts etc... If you put no effort into your questions I highly doubt you'll get any meaningful answers in return.
Jan
15
comment Programmatically add publishing page in sandbox solution?
I've already got the deletions working fine. However in order to provision the pages again AFTER the existing files have been deleted, it needs to be done programmatically in the feature receiver too. I realise I could use two seperate features (one to delete the files programmatically, and a second feature to declaratively reprovision the pages) -- however that seems a little unecessary!
Jan
14
comment Programmatically add publishing page in sandbox solution?
Hi C. Marius. I already have modules in my solution which deploy publishing pages to all my new sites, however in this particular case I am creating a feature which needs to delete and recreate the pages of an existing site each time it's deactivated and reactivated. Declarative modules do not support this behaviour (which is confirmed at the bottom of Waldek's post that you linked) -- when a feature containing a module is reactivated, the page is never overwritten, instead multiple copies of the web parts are added to the zones / page. So I'm stuck with using a feature receiver...
Jan
3
comment Rich Text fields in New Item Dialog - IE9
I'm not sure you'd ever need two exact copies of the same function on the same page, but in either case, this solution worked great for me without having to overwrite the RTE_GetEditorInstanceVariables() function. Happy days -- thanks Matt :) PS: This, together with your other stack exchange questions on these "random" SharePoint 2010 & IE9 bugs have been the most concise and definitive set of solutions I could find on the net. If you hung them all together in a blog post somewhere, I'm sure it'd be rather popular with other dev folk like myself.
Jan
2
comment Rich Text fields in New Item Dialog - IE9
Correct me if i'm wrong @Matt, but it doesn't look like there's any difference between the RTE_GetEditorInstanceVariables function you posted here and the OOTB function in form.debug.js
Nov
21
comment Programmatically find lists by template ID
Answer posted...
Nov
9
comment Programmatically find lists by template ID
Hi Hugh. I ended up just using a foreach loop to iterate through the SPWeb.Lists collection and checking each list's BaseTemplate value to get all the picture and asset libraries. The only reason we went with this approach is because I was able to change the web part requirements so that it just displays a selection of picture libraries in the current site (as apposed to the whole site collection). This is actually a major factor for us as our entire intranet is just a single site collection, and so it contains a few hundred child SPWebs -- and iterating all those could've taken ages!
Nov
5
comment Dynamically registering JavaScript from within a sandbox web part
I just updated the original question with a fourth option (which was posted in a comment by @eirikb). It uses the custom action method too, but he instead points it to a JavaScript function which then works out whether the script file should be loaded on the current page (as apposed to getting the custom action to blindly write the <script> tag). It's the most risky solution as I have no idea how much testing it's had (if any), but it's probably the cleanest as it can be used for CSS files too. Care to weigh in with an opnion?
Nov
5
comment Dynamically registering JavaScript from within a sandbox web part
I wasn't aware you could use tokens inside the ScriptSrc value -- that makes it an attractive option. Unfortunately though, in my case, the JavaScript files registered by the web parts really shouldn't be loaded onto every page in the site, just the home page. So that's a real deal-breaker for me! My common scripts are already referenced directly in my master page.