?
Solved

DropDown List box selection change form view

Posted on 2010-09-07
7
Medium Priority
?
1,323 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 28

Accepted Solution

by:
clayfox earned 2000 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

771 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