Tab Control

B

Badajoz95

Dear InfoPath forum people,

My client wants to use InfoPath but they have an issue because it does not
have a Tab Control.

So, I could:

1. Use Views with buttons that I control and a similar - ie fake tabs...
2. Use a Master / Detail view which provides the same features (sort of) but
which I don't think the average user is going to understand is the same as a
tab control.
3. Import a custom control.... I tried importing ActiveX SSTab from VB6 as a
starting point but it could not act as a container.

All of which seem a fudge.

Anybody else hit this requirement or have any advice please?

Thanks in advance,

Paul.
 
J

Jerry Thomas [MSFT]

You can do this with sepearate views or multiple sections, using buttons to
look like tabs.
Several people have used Sections within one view.

Start with a layout table across the top of the page (1 row x how many
'tabs' you need). Put a button in each cell and change the label to "A",
"B", etc. The layout table doesn't have to show, it just makes it easier for
uniform appearance.

Add a field titled 'Tab".

Add a rule to each button so that when the button is clicked, the value in
"Tab" is changed to "A" for the 1st button, "B" for the next, etc. You can
also add Custom Formatting to the buttons so that when a button is clicked,
it looks clicked - the color changes, the button label gets bolded, etc.

Add a Section for each tab. Set the Custom Formatting for the first section
to "Tab" "is not equal" to "A" and click "Hide this control". Set each
section this way, "Tab" "is not equal" to "B", etc. This will hide all of
the controls within the section too!

Now when a user click "B", only the "B" section will show.

You can also have an tab labelled "All" or "print view" that shows
everything.
Then the Custom Formatting for each section would have a 2nd criteria
stating "Tab" "is not equal" "all".


--
Jerry Thomas[MSFT]
<[email protected]>
Microsoft Office InfoPath
---------------------------------------
This posting is provided "As Is" with no warranties, and confers no rights.
Use of any included script sample are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
Please do not send email directly to this alias. This alias is for
newsgroup purposes only.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top