SIGN UP MEMBER LOGIN:    
ARTICLE

How to create Tab Control in InfoPath 2007

Posted by Destin joy Articles | SharePoint August 24, 2011
The InfoPath 2007 does nottab control , which very much needed in most of the InfoPath development. This article will help you to achieve the same
Reader Level:

InfoPath Dose Not support Tab control in designing this can be achieved by the following actions 
  Design a new, blank InfoPath form template.
  Insert a table with at 2 columns and 1 row.
  Merge the first 5 columns

61.png
  The design look like this below image
6.png
Save the template with source

8.png


The source will be like the below

9apng.png

Modify the View2.XML with help of notepad 

In view1.xsl, search for "<body style" (Shown in below Image) and copy the region to view2.xsl so both of the views look similar

9.png


  Note that for each view, we will have a different style for the button corresponding to that view, i.e. the "active" view. For example, the first view (View 1) will have the first button (Tab 1) as the active view button, while the rest will have non-active view buttons.

        For your active view, insert the following for the active button:

style="BORDER-RIGHT: #000000 1pt solid; PADDING-RIGHT: 10px; BORDER-TOP: #000000 1pt solid; FONT-WEIGHT: bold; PADDING-BOTTOM: 7px; MARGIN: 4px 0px 0px; BORDER-LEFT: #1e3c7b 2.25pt solid; WIDTH: 100%; COLOR: #ffffff; PADDING-TOP: 7px; BORDER-BOTTOM: #000000 1pt solid; BACKGROUND-COLOR: #517dbf; TEXT-ALIGN: right"

And for the non-active ones, insert the following

You will then have the following for view1.xsl:


10.png

View 2 tab selected
11.png

Login to add your contents and source code to this article
share this article :
post comment
 
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
Team Foundation Server Hosting
Become a Sponsor