Andru's WebLog

//Comments about technology and software architecture
>MySelf.Persist();

June 2008 - Posts

Add Blackberry support to Forms Server 2007 or Sharepoint 2007

 A few months ago I was the architect for a project involving Microsoft Forms Server 2007 and we needed to support viewing Infopath forms on mobile devices, specifically Blackberry devices.

The Microsoft Forms Server 2007 is a striped down Sharepoint 2007 server so all Infopath forms web rendering for mobile devices is done through the ASP.NET mobile controls support.

Unfortunately, Blackberry devices aren't recognized so Infopath forms are render as standard web forms, wich aren't supported by Blackberry devices. Luckily for us, adding support for additional devices is not difficult and can be done by adding some information to a "compat.browser" file found in the "App_Browsers" folder inside the Sharepoint virtual directory. In this file you need to add the following:

<!-- BlackBerry RIM Browser -->
    <browser id="RIM40" parentID="Default">
        <identification>
            <userAgent match="BlackBerry" />
        </identification>
        <capabilities>
      <capability name="isMobileDevice" value="true" />
      <capability name="javascript" value="true" />
      <capability name="ecmascriptversion" value="1.3" />
      <capability name="version" value="${version}" />
      <capability name="majorVersion" value="${major}" />
      <capability name="minorVersion" value="${minor}" />
      <capability name="supportsCss" value="true" />
      <capability name="frames" value="false" />
      <capability name="cookies" value="true" />
      <capability name="isColor" value="true" />
      <capability name="requiresLeadingPageBreak" value="true" />
      <capability name="requiresUniqueFilePathSuffix" value="true" />
      <capability name="supportsBold" value="true" />
      <capability name="supportsFontSize" value="true" />
      <capability name="supportsImageSubmit" value="true" />
      <capability name="supportsItalic" value="true" />
      <capability name="requires303Redirect" value="true" />
     </capabilities>
    </browser>

With that your Blackberry browsers will be recognized as mobile devices and our Infopath Forms Server will be able to render the proper content.

Hope you find this useful, seeU!

Andrés G Vettori
MCSE/MCSD/MCT
Systems Architect

Leader of the C# Community of the Microsoft Users Group Argentina

Posted: Jun 07 2008, 11:40 AM by andresv | with 9 comment(s)
Filed under: ,
More Posts