| bio | website | |
|---|---|---|
| location | Perth, Australia | |
| age | 29 | |
| visits | member for | 1 year, 9 months |
| seen | 2 days ago | |
| stats | profile views | 25 |
Lead SharePoint developer for a major Australian mining company.
|
Mar 1 |
comment |
What options are available to me to find lists that were created using a specific list definition? There are bucketloads of posts and articles on the web with comparisons of foreach loops vs linq queries. The results are almost always contradictory though so it probably depends on the situation in which you're using the linq/loop. Perhaps I was a "little" excited when I disclaimed that LINQ is always faster, but I generally tend to place more faith in Microsoft's LINQ developers and testers than I do in my own unit tests. Either way, the question above is about code that will only ever run once, so inthat case it's best to go down the path of whichever is easiest to read 'n write. |
|
Mar 1 |
revised |
What options are available to me to find lists that were created using a specific list definition? added 7 characters in body; deleted 17 characters in body |
|
Mar 1 |
comment |
Did my workflow run on item changed or item creation? Comparing dates is hacky. What happens if an event receiver somewhere changes the item before you date comparison runs? Then you could get a very different result to what what you were expecting. Using the list item's event handlers is full proof as it gets executed beofre anything else in sharePoint (workflows, timer jobs etc) have the opportunity to access your list items. In regards to using Visual Studio, that's another whole topic for debate. I'm of the school of thought that everything should be done there so it can be wrapped up into a deployable and reusable solution, feature etc. |
|
Mar 1 |
answered | What options are available to me to find lists that were created using a specific list definition? |
|
Mar 1 |
comment |
Placing your branding images in the “14 hive” vs an Images list Are you suggesting that you create a document library (which is only site-scoped) and then use hard-coded URLs to access the files within it (to mimic farm-scoping)? No offense, but that's just hideous. The entire purpose of the hive is to act as [and I'm quoting the "Practical SharePoint 2010 Branding and Customization" book here] "a root location for all of the branding support files." |
|
Mar 1 |
answered | Placing your branding images in the “14 hive” vs an Images list |
|
Mar 1 |
answered | My browser enabled Infopath form does not open in my browser |
|
Feb 29 |
comment |
WebConfigModifications Remove functionality is not working in SharePoint 2010 In the same vein, you should try blowing away your site and re-inserting all your config changes from scratch. As soon as things get "out of sync" it's generally a lost cause. |
|
Feb 29 |
comment |
WebConfigModifications Remove functionality is not working in SharePoint 2010 Something to always keep in mind with these programmatic config changes is that SharePoint will only ever remove what it has placed there itself. I.e. if you put in a config entry by hand (or update it) then the actual file is no longer in sync with the config modifications in the content db and you'll never remove it. Download the free "SharePoint Manager 2010 V2" tool, this allows you to drill down and see exactly what config changes are in the content database, plus their proper names etc. that'll tell you straight away if what mods SharePoint "thinks" are in your config file. |
|
Feb 29 |
revised |
WebConfigModifications Remove functionality is not working in SharePoint 2010 deleted 7 characters in body |
|
Feb 29 |
answered | WebConfigModifications Remove functionality is not working in SharePoint 2010 |
|
Feb 29 |
comment |
Did my workflow run on item changed or item creation? If you don't neeed to change any of the workflow's behaviour, then you only need this 1 line: properties.Web.Site.WorkflowManager.StartWorkflow(properties.ListItem, approvalWorkflowAssociation, approvalWorkflowAssociation.AssociationData); |
|
Feb 29 |
comment |
Did my workflow run on item changed or item creation? Correct. Instead of having your workflows start automatically and then trying and work out where / why they were initiated, just start them manually during the appropriate event. All the stuff I put in there about changing the workflow's association data is entirely optional -- but I thought I'd just show you how you could change one of the workflows behaviour if need be (since you said they were 99% similar). |
|
Feb 29 |
answered | Did my workflow run on item changed or item creation? |
|
Feb 23 |
revised |
Using Information Management Policies to prevent users from downloading videos from a document library added 29 characters in body; edited title |
|
Feb 23 |
comment |
Using Information Management Policies to prevent users from downloading videos from a document library I think I knew that in the back of my mind but was just waiting for someone to confirm it. Alas, I will have to turn my attention to streaming the videos instead then... Cheers. |
|
Feb 23 |
asked | Using Information Management Policies to prevent users from downloading videos from a document library |
|
Jan 24 |
answered | Can an event receiver update a list item before the alert email is sent? |
|
Jan 20 |
comment |
How do programmatically determine when Approval workflow has completed I'm not sure what you mean here Steve. Can you please elaborate? |
|
Jan 20 |
revised |
Is it possible to limit the visibility of list items to not only just me (the author), but anyone from my company too? Added example |