Design a form template for use on a mobile device InfoPath 2007

Author: mety Labels::



Introduction to designing form templates for mobile devices

By using Office InfoPath 2007 together with InfoPath Forms Services, you can design a browser-compatible form template (browser-compatible form template: A form template that is designed in InfoPath by using a specific compatibility mode. A browser-compatible form template can be browser-enabled when it is published to a server running InfoPath Forms Services.) that can be filled out by using a personal digital assistant (PDA) or other mobile device.
Form open in mobile device
Note You can create a browser-compatible form template for most mobile devices, including PDAs, smartphones, and any device that supports a Web browser with HTML, cHTML, or xHTML. However, InfoPath Forms Services does not support mobile device browsers that use Wireless Action Protocol (WAP).

You can design a browser-compatible form template for users to fill out exclusively in a mobile device browser. For example, you might design such a template if your warehouse is Wi-Fi enabled and your company provides all warehouse employees with PDAs to track inventory.
If you want your form template to be accessible to all users, regardless of their display device, you can design one view exclusively for mobile users, a second view for a desktop browser, and a third view for people who have InfoPath installed on their computers. This technique lets you design a single form template that can be filled out by different sets of users, instead of creating separate forms for each form-filling scenario.
Find links to more information about creating dedicated views in the See Also section.
Since each mobile device displays a given Web page differently, the exact appearance of the form will vary depending on the device that is used to access it. When you design your form template in InfoPath, it helps to target a specific mobile device so that you can optimize your design to suit that particular device.
This article describes tips and procedures for designing, publishing, and testing your mobile-enabled form templates, as well as control and feature limitations for mobile form templates,

Form controls and features that are not supported in mobile device browsers

Mobile devices support many, but not all, of the controls that are supported in browser-compatible form templates.
Note InfoPath will not warn you about a form control or a feature in your form template that is not supported in mobile device browsers.

Support for form controls

You can use the following table to determine whether InfoPath Forms Services supports a particular InfoPath control.
Since mobile device browsers do not support HTML tables, CSS (Cascading Style Sheets), and certain other browser technologies, some controls appear differently in a mobile device browser than they do in a desktop browser.
Furthermore, mobile device browsers completely ignore some controls; for example, a file attachment control.
Full support icon = Full support Partial support icon = Partial support No support icon = No support
InfoPath 2007 controlDesktop browsersMobile device browsers
Text boxFull support iconFull support icon
Check boxFull support iconFull support icon
ButtonFull support iconFull support icon
Expression boxFull support iconFull support icon
List boxFull support iconFull support icon
Drop-down list boxFull support iconFull support icon
Repeating sectionFull support iconFull support icon
HyperlinkFull support iconNo support icon
Option button 1Full support iconNo support icon
Optional section 2Full support iconNo support icon
Repeating table 3Full support iconNo support icon
File attachment controlFull support iconNo support icon
Date picker 4Partial support iconPartial support icon
Rich text boxPartial support iconNo support icon
ActiveX controlNo support iconNo support icon
Bulleted list controlNo support iconNo support icon
Choice groupNo support iconNo support icon
Choice sectionNo support iconNo support icon
Combo boxNo support iconNo support icon
Horizontal repeating tableNo support iconNo support icon
Horizontal regionNo support iconNo support icon
Ink picture controlNo support iconNo support icon
Master/detail controlNo support iconNo support icon
Multiple-selection list boxNo support iconNo support icon
Numbered list controlNo support iconNo support icon
Picture controlNo support iconNo support icon
Plain list controlNo support iconNo support icon
Repeating choice groupNo support iconNo support icon
Repeating recursive sectionNo support iconNo support icon
Scrolling regionNo support iconNo support icon
Vertical labelNo support iconNo support icon

1Consider using a drop-down list box instead.
2Consider using multiple views instead.
3Consider using a repeating section instead.
4In mobile device browsers, the date picker appears as a text box with data validation.

Support for business logic

You can add business logic to your form template to help prevent data-entry errors and to automate specific actions in the form for the user. In particular, you can use data validation (data validation: The process of testing the accuracy of data; a set of rules you can apply to a control to specify the type and range of data that users can enter.), conditional formatting (conditional formatting: The process of changing the appearance of a control, including its visibility and read-write state, based on values entered into the form.), and rules (rule: A condition or action, or a set of conditions or actions, that automatically performs tasks based on events and values in the form.)to make the form show validation messages, change formatting, or perform other tasks.
You can use the following table to determine whether or not a given browser supports a particular type of business logic.
Full support icon = Full support Partial support icon = Partial support No support icon = No support
InfoPath 2007 featureDesktop browsersMobile device browsers
Formulas 1Full support iconFull support icon
Data validationFull support iconFull support icon
RulesFull support iconFull support icon
Conditional formatting 2Full support iconPartial support icon
User rolesNo support iconNo support icon

1Except xdXDocument:get-Role, Position, and Last functions.
2Mobile device browsers support some conditional formatting features; for example, you can hide or display controls depending upon conditions you define in the form. You cannot use conditional formatting, however, to change the appearance of a control based on conditions in the form. For example, you cannot use conditional formatting to change the color of text in a control.

General design advice

You can find a lot of guidance on the Internet about how to design a form that users will view on a mobile device. Here are some additional tips to think about as you design the form template:
  • When users fill out a form on a mobile device, they must click the Update button on the mobile device toolbar to trigger a calculation or some other other type of business logic. Each click of the button forces the mobile device to submit data to the server, a process called a postback. To make it easier on the user, consider adding a button to the form template that automates the postback. For example, suppose your form includes a Total field that totals the numbers in three other fields on the form. In that case, you might add a Show Total button next to the Total field, so that users remember to refresh the fields in the form.
  • Rather than insert all of the controls on a single view (view: A form-specific display setting that can be saved with a form template and applied to form data when the form is being filled out. Users can switch between views to choose the amount of data shown in the form.), consider a design that has multiple views, especially for the display of conditional controls. Multiple views on a form help prevent a single view from becoming too large or complex, and therefore difficult to use on a small screen.
  • If the form has multiple views, add buttons that help users to navigate between views.
  • Use list boxes wherever possible; it is difficult to type on a mobile device.

Design a form template for use on a mobile device

With some exceptions, designing and publishing a form template for a mobile device is the same as designing and publishing a form template for a browser on a desktop computer. The following sections discuss how to design, deploy, and test a mobile form template.



Step 1: Specify a compatibility setting for the form template

The first step is to specify that you want to design a browser-compatible form template.
  1. On the File menu, click Design a Form Template.
  2. Under Design a new in the Design a Form template dialog box, click Form Template.
  3. In the Based on gallery, do one of the following:
  4. To make your form template compatible with a server running InfoPath Forms Services, select the Enable browser-compatible features only check box, and then click OK.
    Compatibility setting in Design a Form Template dialog box
    A new form template opens in InfoPath, with the text, Compatibility: InfoPath and InfoPath Forms Services in the status bar. The purpose of the text is to inform you that either InfoPath or a Web browser can display the active form template.
  5. Add controls, data validation, or any other features to the form template. As you design your form template, remember that mobile browsers do not support some of the controls that desktop browsers support.
    Note The Design Checker task pane will not warn you that a control or feature in your form template is not supported in mobile device browsers. To double-check support for a control or feature, see the Form controls and features that are not supported in mobile device browsers section later in this article.

Step 2: Specify a mobile device setting for the form template

After you create your browser-compatible form template, you must add an Update button to the toolbar of the form template, and then select a specific option in the Form Options dialog box to enable the form template for a mobile device browser.
  1. On the Tools menu, click Form Options.
  2. In the Form Options dialog box, click the Browser category.
  3. To add an Update button to the toolbar of the mobile device, under Include the following commands on the toolbars, in the Toolbars section, select the Update check box.
  4. Under Mobile Devices, select the Enable rendering on a mobile device check box.
    Mobile device setting in Form Options dialog box
  5. Click OK to return to the form template.
  6. Save the form template to the location of your choice.

Step 3: Create a document library to store the mobile forms

The next two steps describe how to submit form data to a library on a server that is running InfoPath Forms Services.
Use the following steps to create the library.
  1. Using a browser, open the SharePoint site where you want to store user forms.
  2. Click View All Site Content, and then click Create on the All Site Content page.
    Tip In most cases, you can use the Site Actions Site Actions menumenu as well.
  3. Under Libraries, click Document Library.
  4. In the Name box, type a name for the new library.
    The name will appear at the top of the library page, become part of the address for the library page, and appear in the navigational elements that help users to find and open the library.
  5. In the Document Template section, in the Document Template list, click None, and then click Create.

Step 4: Specify submission options for the form template

Now, you must configure your form template so that users can submit form data to the document library you created in step 3. In addition, you will create a formula that assigns a unique file name to each form that is submitted to the library.
  1. In InfoPath, open the browser-compatible form template that you created in step 2.
  2. On the Tools menu, click Submit Options.
  3. In the Submit Options dialog box, select the Allow users to submit this form check box.
  4. In the Send form data to a single destination list, click SharePoint document library.
    Submit Options dialog box
  5. To add a new data connection, click Add. The Data Connection Wizard dialog box opens.
  6. In the Document Library text box, type http://<ServerName>/<LibraryName>/Forms/AllItems.aspx, where <ServerName> is the name of the SharePoint server that is running InfoPath Forms Services, and <LibraryName> is the name of the library.
    Note If the document library is not located on the root site, you must insert the site name in the URL. For example, http://<ServerName>/<SiteName>/<LibraryName>/Forms/AllItems.aspx
  7. Click the button Formula button to the right of the File name text box.
  8. In the Insert Formula dialog box, click Insert Function. The Insert Function dialog box opens.
  9. Click the Text category, click the concat function, and then click OK.
    Concat function selected in Insert Function dialog box
  10. In the Insert Formula dialog box, click the first occurrence of the text "double-click to insert field" in the Formula box to highlight it, and then type 'form'. Include the single quotation marks.
  11. Click the second occurrence of the text "double-click to insert field" in the Formula box to highlight it, and then click Insert Function.
  12. Click the Date and Time category, click the now function, and then click OK.
    Tip The now function lets you automatically add the current date and time to the form name.
  13. Delete the remaining "double-click to insert field" items in the Formula box.
  14. Delete the extra space and the comma, so that the formula box contains the formula concat('form', now()), as shown in the following image.
    Concat formula in Insert Formula dialog box
    When users submit their form to the library, the form will be named according to this formula. Each submitted form will have a unique name.
  15. To return to the Data Connection Wizard dialog box, click OK.
  16. Click Next, and then click Finish.
  17. To return to the form template, click OK.
  18. On the Tools menu, click Form Options, and then click the Browser category.
  19. Under Toolbars, select the Submit check box, adn then click OK.
  20. Save your changes.

Step 5: Publish the form template to a server

To publish a form template that mobile devices can use, you must work with the administrator of the server that is running InfoPath Forms Services. That publication process can be divided into three distinct steps:
  1. The form designer must publish an .xsn file to a shared location. The .xsn file contains information about the server where the form template will ultimately appear.
  2. The farm administrator must upload the form template to the server and optionally verify that the form template is free from errors.
  3. The farm administrator or site collection administrator must activate the form template to a site collection (site collection: A set of Web sites on a virtual server that have the same owner and share administration settings. Each site collection contains a top-level Web site and can contain one or more subsites.) on the server, which makes the form template available to people using mobile devices.

Prepare the form template for administrator approval

As is the case for all form templates that you design for mobile devices, this form template requires administrator approval. The following procedure walks you through the process of preparing the form template for administrator approval, by saving it to a shared location on your computer or network. The farm administrator for the server is responsible for actually deploying the form template, which involves uploading and activating the form template on the server.
  1. On the File menu, click Publish.
  2. In the Publishing Wizard, click To a SharePoint server with or without InfoPath Forms Services, and then click Next to open the next page of the wizard.
  3. In the Enter the location of your SharePoint or InfoPath Forms Services site box, type the location of the SharePoint site where the forms will be stored, and then click Next to open the next page of the wizard.
  4. Review the settings, and note that the form template requires aministrator approval.
    Message in Publishing dialog box
    Click Next to open the next page of the wizard.
  5. In the Specify a location and file name for the form template box, click Browse.
  6. In the Browse dialog box, browse to a location that the farm administrator can access, and then in the File name box, type the name of the form template and click Save.
  7. Click Next to open the next page of the wizard.
  8. If you want specific fields in the form template to show as columns in the document library, click the Add button, select the fields you want, and then click OK. Otherwise, click Next to open the next page of the wizard.
  9. Verify that the information is correct, and then click Publish to save your form template (.xsn) file to the specified location.
  10. Click Close.
  11. At this point, you must ask a farm administrator to upload the form template to the server and then activate it to a site collection.
    Tip To watch a demo of the upload and activation process, see Demo: Deploy an administrator-approved form template

Step 6: Associate the form template with the document library

After a farm administrator uploads your form template to the server and activates it to a site collection, you must associate the form template with the library you created in step 3. When users create a new file in this library, a form based on the form template you created will open in their mobile device browser.
  1. Using a browser, open the document library you created in step 3.
    Tip The path should be something like http://<SeverName>/sites/team/<LibraryName>/Forms/AllItems.aspx, where <ServerName> is the name of your SharePoint site, and <LibraryName> is the name of the library where the forms will be stored.
  2. In the library, on the Settings menu Settings menu , click Document Library Settings.
    Document Library Settings command
  3. Under General Settings, click Advanced settings.
  4. In the Content Types section, under Allow management of content types, click Yes.
  5. Click OK to return to the Customize Library Name page.
  6. Under Content Types, click Add from existing site content types.
  7. Next to Select Content Types, click the name of the form template in the Available Site Content Types list.
    SharePoint user interface for adding content types
  8. Cick Add.
  9. Click OK to return to the Customize Library Name page.
  10. In the Content Types section, click Document.
  11. Under Settings, click Delete this content type, and then click OK.
  12. Return to the document library, and click the New button to make sure that the appropriate form opens.
    Note By default, the form will open in InfoPath. If you want to force the form to open in a browser, go back to the advanced settings page for the document library. Next to Browser-enabled Documents, click Display as a Web page, and then click OK.

Step 7: Test the form template

Once your form template has been published to a server that is running InfoPath Forms Services, it is a good idea to make sure that it is working correctly. You should test your form by using the targeted mobile device under the same working and lighting conditions as your users.
If you do not have the actual physical device, you can use a device emulator to mimic the behavior of most mobile devices. Emulators are available on the Internet for a variety of devices and operating systems.



0 comments |

Labels

Blog Archive

Powered by Blogger.

I made these pages for me and my friends to help solving the problem we face regarding Computer & internet, if anyone wants me to answer a question or find out about some information please send me email and I will try to reply.*P.S. some of the article I wrote and the other I found on the internet I posted them in sprit of learning and shearing, please forgive me if you found something you don’t want to be in my blog, email me and I will delete them. Thank you for your interest in my pages.امل نجم Amal Nagm

banner 1 banner 2