Solved

DropDown List box selection change form view

Posted on 2010-09-07
7
1,165 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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

831 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