Xpages: Making a CRM app iPhone Friendly

On July 7, 2009, in mobile, xpages, by Mark Hughes

A new task has emerged, i need to make an internal crm database accessible to mobile phones. Since the iPhone is supported for Traveler 8.5.1, i decided to focus on this platform and the inherent capabilities it provides.

First i had allot of trouble getting things sized right for the screen, and then there was zooming issues. I finally discovered a way to help format the page correctly and disable zooming.

In the source view of the Xpage, go to the top and under the <xp:view> tag enter this tag in

<p><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">meta</span> <span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="viewport"</span> <span style="color: rgb(255, 0, 0);">content</span><span style="color: rgb(0, 0, 255);">="width=320; </span></p><p><span style="color: rgb(0, 0, 255);">initial-scale=1.0; maximum-scale=1.0; </span><span style="color: rgb(0, 0, 255);">user-scalable=0;"</span> <span style="color: rgb(0, 0, 255);">/&gt;</span></p>

It only affects the iPhone Safari and displays in its full size on all other browsers.

Other good news was the iPhone automatically turned the phone numbers into links. I made the email address a “mailto:” link, and that opens an iPhone email very fast without leaving Safari.

Tomorrow i will show how i got the iPhone Google maps application to map this address, and also map directions from your current location to the destination address.

And no, its not slow at all, and i don’t have 3G.

photo photo3

photo5 photo4


One Response to Xpages: Making a CRM app iPhone Friendly

  1. belgort says:

    Great stuff! Thanks for sharing.

Leave a Reply

Your email address will not be published. Required fields are marked *