Solved

DropDown List box selection change form view

Posted on 2010-09-07
7
1,083 Views
Last Modified: 2012-05-10
I have a form with the general user name date etc and 2 further views of the same form with different data input text boxes etc.on the main form (defaultView) I have a  dropdown box with the following selections which I have entered manually. The selections are View 1, View2, and View3. depending on the selection by the user depends on what view of the form they see. How do I  set this to change the view when the user select view2 etc. ?
I have tried to set a rule on the listBox dropDown properties. The condition I set was View = view2
Add action set to change view. This isnt showing on my add actions.
How can i do this please without opening another form ?
0
Comment
Question by:digger6955
  • 3
  • 2
7 Comments
 
LVL 28

Accepted Solution

by:
clayfox earned 500 total points
ID: 33651655
Switch view action is only availabel on a button, cannot be done on a field change.
So either add a button - to switch view to what has been selected in the dropdown, but this adds another click.
Or if you only have 3 views just have three buttons, each for a specific view.

If you are really cool :)
You can spice up the buttons by formating them to look like hyperlinks or to create a simulated tabbed interface.
Have the same header and buttons on each view and then hylight the selected button on each view.

Another method is to have three sections on one view rather than three seperate views. Then have the sections hide based on the values in your dropdown and you can do exactly what you want to accomplish if you really want a dropdown interface.
0
 

Author Comment

by:digger6955
ID: 33652525
Cool :-)

Love the idea of the tabbed interface as I wanted to stear clear of buttons .I know its another question but I am still very new to this.howdo I create the simulated tabbed interface? Is this easy to do ?
0
 

Author Closing Comment

by:digger6955
ID: 33652539
I didnt like the button solution that I knew I could create. However I never thought of the simulated  tabbed solution . Again great answers to what may seem easy questions to the experts but is a throw the bl**dy PC out the window syndrome to me. Thank you.
0
 
LVL 28

Expert Comment

by:clayfox
ID: 33652979
The tabs are pretty simple once you get the idea.

So you make your button uniform, I usually give them a strong border and then they typically are adjacent to each other.

Then give the Section a strong border as well and the button sits directly above it.

Then there are formating rules on each button.
If view = 1 Bold the font
and the button action is to set the view = 1
then the next button is the same except for 2
Then as you click buttons it becomes bold and the other are not.
I have done this with sections in the same view, and just had then section one one top of the other and had conditional formating if view not = 1 hide, etc
But there is no reason you could not do this with views as long as they were formatted the same on the top, but it might not be quite as fluid since there is more overhead on a view switch.

Just take it step by step and experiment.
There may be some more information or examples at www.infopathdev.com I know other guys there showed this to me originally and they may have blogged about it.
0
 

Author Comment

by:digger6955
ID: 33653817
A very big Thanks for your patience and understanding. I will experiment  and I am sure the form will be good.Another problem solved this is good learning.
Thanks again
Rod
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now