Wednesday, 15 June 2011

Striving for Nirvana - Write Once, Work Everywhere with XPages

Remember when Notes 5 was launched and we thought our Notes client applications would all now magically work on the Web ? XPages with 8.5.2 is significantly closer to this goal of one code stream working in the Notes client, most common browsers, and the iPad.

An XPages application that I recently delivered was built primarily to run in the Notes client, but also from browsers for staff who were out of the office. An additional 'nice-to-have' was for the workflow approvals to be able to be completed by the General Managers via their iPads.

The application is a little slow to load, the first time, from the Notes 8.5.2 client. But by no means unusable. However, reports from those with the 8.5.3 beta are that this has been significantly improved in the next release.

For the iPad/iPhone, I refer you to this wiki article by Mark Hughes, the XPages iPhone Application Tutorial

All I had to do to render the application for the iPad was to add the following two meta tags to a custom control that had already been added to every XPage for the menu components:

<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
<meta name="apple-mobile-web-app-capable" content="yes" />

Workflow approvals can now be executed from the General Manager iPads from wherever they choose to work. Such a neat way to demonstrate the power of XPages to management.

No comments:

Post a Comment