Author: jbmurphy
-
My upgrade of SharePoint 2007 to 2010 “script”
One of my most recent projects was the migration of our intranet from SharePoint 2007 to 2010. Since we were going to change the name of the site, I was able to run through this “script” several times as practice to make sure I had everything correct. I decided to do a detach and attach…
-
PowerShell command to allow inline PDF viewing in SharePoint 2010
My users like to view PDFs in their browser on our SharePoint site. I needed to allow this in 2010: Here is the powershell to allow inline PDF viewing in SharePoint 2010
-
jbmurphy.com stats from last year
I missed my blogging goal of 2-per-week/104 for the year. I ended up 98 posts. Same goal for this year. I also missed 10,000 in a month. I was on track at the beginning of December, but then I had a big drop during the holidays. My monthly break down: Here is my year end…
-
How to hide a field in a SharePoint EditForm.aspx page, append a replica, add a jQuery autocomplete, and put the selected value in the original field.
If you look at this old post, you can see a technique that I used to hide a form field, and then append read-only data after it. I wanted to use this technique to hide a field in a form, append a replica with a jQuery autocomplete, and based on the selected value from the…
-
Using jQuery to add a new item to the breadcrumbs at the top of a SharePoint 2010 site.
I wanted to add a bread crumb item to a sub site that pointed back to the home page. This is the jQuery code I used to insert it. This code also aadds the little arrow divider
-
Event calendar I used in my SharePoint 2010 intranet
This is more of a note for myself, but I thought I would post it anyway, since it my be useful to someone. I used the following event calendar on the front page of my intranet. Small, clean, worked well: Event-Calendar-Listing-Web-Part-SharePoint-2010
-
PowerShell 3 – Invoke-WebRequest and Invoke-RestMethod, unable to set the Accept header?
With both of these commands, when I try to add an Accept header (I want to receive my CRM 2011 data in JSON format, so I need Accept=application/json) I receive the error: “This header must be modified using the appropriate property or method.” I think this is a bug. This link shows the bug, and…
-
PowerShell 3: Invoke-WebRequest vs Invoke-RestMethod and a SharePoint 2010 list with more than 1000 entries
When using Invoke-RestMethod with a SharePoint 2010 list and ListData.svc, it returns an “System.Xml.XmlElement#http://www.w3.org/2005/Atom#entry” object. Not sure why, but the end result is that you can’t get access to the “rel=next” url, or am I doing something wrong? I had to use Invoke-WebRequest and then take the Content and put it in an XML variable,…
-
SharePoint 2010 modal dialog (showModalDialog) without an existing page
I was retrieving Activity data from a Microsoft CRM 2011 REST query. I wanted to have a popup with more information. I decided to use the built in showModalDialog. The problem was that all the examples I found showed how to popup an existing page. I wanted the modal to contain data that didn’t exist…
-
SharePoint 2010, CSOM and External Lists – must use LoadQuery
I was working on some JavaScript code to pull data from an External List that was pointing to a Microsoft CRM 2011 database. The code was being used to populate a jQuery autocomplete like this post. In that post you can see on line 10, I use the “load” method. This worked, but if I…
