Brand New Mobile Interface in SharePoint 2010

April 18th, 2010 1 comment

The new mobile interface in SharePoint 2010 is definitely improved comparing to the previous version. Sahil has got a short and nice blog post where he shows the basic browsing experience of a SharePoint site and a list in his iPhone. I also tested many different parts of the product in my iPhone and Windows mobile and the result  is quite interesting.  In this blog post, we will look at InfoPath forms and Excel Workbooks published to Excel Services.

Among many new features introduced in InfoPath 2010 and InfoPath Form Services 2010, are the equal rendition across the major browsers, compliant browser forms , WCAG 2.0, XHTML 1.0, and strict CSS. Below, you’ll see a SharePoint list that’s customized using InfoPath 2010. As you can tell,  a browser-enabled InfoPath form is used to create a new training course:

InfoPathPost0

The following Figure shows the specific  list item, created above in an InfoPath form rendered for mobile view:

InfoPathPost

As you can see in the left screenshot, if you have the appropriate permission you can create a new list item directly from within the mobile device or perform other actions.There are a couple of limitations, though. Remember “Enable rendering on a mobile device” in the form option dialog in InfoPath 2007? In InfoPath 2010, by default, every form can be viewed on mobile devices. However, there are unsupported controls and there are those controls that render as plain text boxes such as the Date/Time Picker and People/Group Picker, as shown in Figure below:

InfoPathPost1

Like before, possibilities are endless using the InfoPath object model. you can touch on everything on the form. Literally everything!

You can use the Environment object (in the form’s code behind) to determine which runtime environment and program was used to open the form.  This class provides a property called IsMobile which returns true if the form is viewed by a mobile browser. In this particular example, I am setting a field called IsMobileField which will be used later during the form load life cycle (not discussed in this blog post).

[CSharp]
public void FormEvents_Loading(object sender, LoadingEventArgs e)
{
XPathNavigator rootNav = MainDataSource.CreateNavigator();
if (Environment.IsMobile)
{
XPathNavigator mobileFieldNav = rootNav.SelectSingleNode(“/my:myFields/my:IsMobileField”, NamespaceManager);
mobileFieldNav.SetValue(“true”);
}
}
[/CSharp]

Another nice parity between desktop browser and mobile browser is the Excel Web App.  The Excel Web App works in IE, Firefox, and Safari. Figure below shows a published Excel Workbook in the browser and in Safari browser in iPhone 3G.For those of you who are not familiar with Excel Web App, it’s an extension of the Excel rich client that  allows users to view and edit workbooks in the browser.

Here you go:

A published Workbook in IE:

InfoPathPost25

A published Workbook in Safari browser in iPhone 3G:

InfoPathPost2

Pretty slick, eh?

As a final remark, don’t  forget two techniques:

  1. Mobile query string for quickly examine the mobile output of a page (it doesn’t work in some page)  : http://adventureworks.devhorizon.com/?Mobile=1 
  2. Mobile section in a view (all the way on the bottom of a page), as shown below.

InfoPathPost3

Categories: SharePoint 2010 Tags:

Now Available for Pre-order: Pro SharePoint 2010 Development

April 18th, 2010 No comments

I am pleased to announce that after several months of working on my second writing project, the book is finally available for preorder: Pro SharePoint 2010 Development. I wrote several chapters of this book and I hope you like them:

sp2010book.jpg

The book has shipped to the printer and will be at the bookstores by May 10th. Unless I’m mistaken, this book is the *first* SharePoint 2010 Development book on the shelves for those who might be interested.

Sorry for a couple months break from blogging. I’m back to blogging again, I hope.

My silence certainly does not mean that I’ve been sitting around doing nothing and it does not mean I’ve run dry on SharePoint 2010 topics. Actually, it’s been quite the opposite. My experiences with SharePoint 2010 over the last ten months have given me plenty of ideas to write about, but I had no time to blog them! I’ll try to post more now that I have the book off my shoulder. I’m planning to keep my posts in the same flavor but with the focus on SharePoint 2010 . I have many posts already lined up in my brain and I’ll try to publish them gradually.

Categories: General, SharePoint 2010, UG/CodeCamp Tags:

I’ll be presenting at Toronto Code Camp on May 1, 2010

March 28th, 2010 No comments

I’m pleased to say that I’ll be presenting at the fifth Annual Toronto Code Camp in a few weeks time. I will be doing THREE sessions on SharePoint 2010.

Location (Different than previous years): Seneca College

Session1: Why SharePoint is a great application development platform
May 1, 2010/ 09:00 AM – 10:15 AM
Do you want to find out why SharePoint is a great application development platform? Join this session and learn why SharePoint is rapidly becoming many organizations #1 platform for building and deploying enterprise-scale applications. This session will also include an overview and demonstration of the new features in SharePoint 2010.

Session2: Architectural and Code Level Best Practices for Developing Applications in SharePoint 2010
May 1, 2010/ 3:00 PM – 4:15 PM
In this 400-level session we will explore some of the best practices that you should know for developing enterprise-level applications, built on the top of SharePoint 2010 platform. We will also cover some of the architectural decisions you need to make upfront, and then will deep dive into code-level best practices and some of the IT Pro enhancements, made to the core platform, that may affect the design and implementation of your applications. This presentation will be split 70/30 between lecture and the actual demonstrations.

Session3: Building InfoPath Applications in SharePoint 2010
May 1, 2010/ 4:30 PM – 5:45 PM
With the power of SharePoint Server 2010 platform, Forms Services 2010 represents even more significant improvement over its predecessor. Some of the improvement came from the core platform itself and some of them were made available in InfoPath 2010 and Forms Services 2010. In this session, we will explore new features in InfoPath and Forms Services 2010 from form authoring all the way to publishing your forms to SharePoint.

More about Toronto Code Camp can be found here.

tcc.png

Categories: SharePoint 2010, UG/CodeCamp Tags:

Toronto SharePoint Camp 2010 – I’m Speaking!

March 14th, 2010 No comments

Hello Torontonian SharePointers!

It’s SharePoint Toronto Camp time again. And , I am  scheduled to present on my favorite topic of Best Practices for Developing Applications in SharePoint 2010. For more more information, check out http://www.torontosharepointcamp.com/Pages/Default.aspx.

See you this coming Saturday.

Categories: SharePoint 2010, UG/CodeCamp Tags:

Montreal SharePoint Summit 2010 Call for Speakers

October 7th, 2009 No comments

As a member of the SharePoint Summit 2010 board of directors and on behalf of the rest of the team, I am extending this invitation to all members of the SharePoint community to submit their session proposal to us at the following address:

http://www.sharepointsummit2010.com/call_speakers.asp


This is a great opportunity for you to showcase your expertise and knowledge of SharePoint with your peers that are also interested in SharePoint technology. The selection committee will pick speakers based on the following criteria:

  1. Subject quality
  2. Presentation content and relevance (Preferably SharePoint 2010)
  3. Innovative aspect

The deadline for submissions is January 15th, 2010 Dec/01/2009!

Location : Montreal (12-14 April , 2010)

Categories: MOSS 2007, SharePoint 2010 Tags: