Category Archives: Eric

Show modal dialog form from another site collection

Ever get an error message saying “Refused to display ‘url’ in a frame because it set ‘X-Frame-Options’ to ‘SAMEORIGIN‘.” when trying to load a list form from another site collection in a modal dialog?  Add this to a line right after the last <% Register tag on the masterpage:

<WebPartPages:AllowFraming runat="server" />

Eric Oszakiewski

Eric Oszakiewski is a professional software developer based in Scottsdale, AZ with over 37 years of IT experience, and 19 years Native American Gaming experience. He is currently working as a .Net/SharePoint Development Lead for General Motors.

More Posts - Website

Follow Me:
TwitterFacebookLinkedInYouTube

Populate a SharePoint 2013 PeoplePicker field using JavaScript/jQuery

Here is a quick and fairly simple way to programmatically populate a SharePoint 2013 People Picker field with a user based on their email address. This example assumes you have more than one People Picker field on the page. You will need:

  • The display name of the People Picker Field
  • The email address of the user you want to add to the People Picker Field

Add the following code to either a Script Editor Web Part (inside <script> tags) or on your page in the PlaceHolderAdditionalPageHead, also in <script> tags:

var dispTitle = "";
var pickerDiv = $("[id$='ClientPeoplePicker'][title='" + dispTitle + "']");
var peoplePicker = SPClientPeoplePicker.SPClientPeoplePickerDict[pickerDiv[0].id];
var usrObj = { 'Key': 'email@address.com'};
peoplePicker.AddUnresolvedUser(usrObj,true); 

In one case, I had to remove the “title” attribute filter from the pickerDiv var to get it to work, but it was the only People Picker on the page, so we were good.

Hope this helps!

Eric Oszakiewski

Eric Oszakiewski is a professional software developer based in Scottsdale, AZ with over 37 years of IT experience, and 19 years Native American Gaming experience. He is currently working as a .Net/SharePoint Development Lead for General Motors.

More Posts - Website

Follow Me:
TwitterFacebookLinkedInYouTube

Microsoft Ignite Summary

This past week was the first Microsoft Ignite conference in Chicago, IL. As a prior attendee of Microsoft’s BUILD conference each year, this was quite a change for me. There was a healthy mix of IT Pro, SysAdmin and Dev sessions, over 200 sessions in total for the week. There was also a consistent hint of Azure and Office 365 in every session, regardless of category or audience type. It’s absolutely clear Microsoft wants everyone in the cloud, mainly in Azure, and we saw that even in on-prem sessions. The expo was huge, with lots of opportunities to talk with both Microsoft and their partners. From hands-on labs to live and in some cases interactive demos, there seemed to be something for everyone there.
Continue reading Microsoft Ignite Summary

Eric Oszakiewski

Eric Oszakiewski is a professional software developer based in Scottsdale, AZ with over 37 years of IT experience, and 19 years Native American Gaming experience. He is currently working as a .Net/SharePoint Development Lead for General Motors.

More Posts - Website

Follow Me:
TwitterFacebookLinkedInYouTube

SQL Saturday 370 – Phoenix

Thank you to everyone who attended my session – Make Your DBA Happy: 5 Habits Developers Can Implement Today.  If you missed the session you can watch the pre-recorded video (from a prior SQL Saturday) here.  

The slide deck is available here.  Enjoy!

Eric Oszakiewski

Eric Oszakiewski is a professional software developer based in Scottsdale, AZ with over 37 years of IT experience, and 19 years Native American Gaming experience. He is currently working as a .Net/SharePoint Development Lead for General Motors.

More Posts - Website

Follow Me:
TwitterFacebookLinkedInYouTube

Window 10 TP Build 9926 – Tablet Mode

I wanted to mention something I noticed when powering up my Surface Pro running Windows 10 TP Build 9926 this morning….Tablet Mode.  Down in the Notification section, click the icon and notice there is an option at the bottom for Tablet Mode:
Continue reading Window 10 TP Build 9926 – Tablet Mode

Eric Oszakiewski

Eric Oszakiewski is a professional software developer based in Scottsdale, AZ with over 37 years of IT experience, and 19 years Native American Gaming experience. He is currently working as a .Net/SharePoint Development Lead for General Motors.

More Posts - Website

Follow Me:
TwitterFacebookLinkedInYouTube