InfoPath hiding view

P

Pragyan

Hi

I am working on an application using InfoPath 2003. I have a requirement that
I have to hide a view in the view menu based on some condition.
For Example - I have 3 views. When i select view 1, the View 3 should be
visible in the view menu, but when i select View 2, the View 3 should not be
visible in the view menu.

please help me as soon as possible, this is very urgent.

Thanks & Regards,
Pragyan
 
S

Swathi (GGK Tech)

Hi Pragyan,

To my knowledge, there is no option to hide/show the views in view menu
based on conditions. One workaround is add 3 buttons (View1, View2, View3) on
the form in 3 views. When the button is clicked, view is switched to the
corresponding view. For example, if the user clicks on View2 then the form
will switch to view2. Add the rules for switching views. And add the
conditional formatting to show/hide according to your requirement. Uncheck
the ‘Show on the view menu when filling out the form’ check box in the view
properties no t to show the views on the view menu.
 
P

Pragyan

Hi Swathi,

thanks a lot for your quick reply. I got some idea but one limitation is
there if i uncheck the ‘Show on the view menu when filling out the form’
check box in the view properties, the particular view will not appear at all
in the view menu even when it is required.
As per my requirement there should not be any button to switch the view. Is
it possible to hide or display the particular view in the view menu based on
a drop down selected? This is what my requirement says.

for Example - I have 2 views. The View 1 contains a drop down which has 2
values.
If you select the value 1 in the view 1 then view 2 will appear in the view
menu and i can navigate to that. But if you select value 2 from the drop down
in view 1, then i should not navigate to view 2 as view 2 is not there in
view menu.

Thanks a lot in advance

warm regards,
Pragyan
 
G

Greg Collins

There's no way to do this -- at least not without managed code. Using
managed code, I "believe" you can get access to the menus and fiddle with
them--so you might be able to do what you want. But if at all possible, I
would avoid such a course and go back to the people who have limited your
design and talk to them about doing something in-view, like tabs, where you
have full control over visibility.
 
E

Ed Thurber

I have provided this functionality by building a "tab" strip across the top
of each view. the strip consists of buttons. each button switches to a
different view. only include buttons for the views you want them to be able
to access.

you can even get fancy and use additional graphics and button formatting to
make it look like folder tabs and indicate the selected tab.

hope this helps

Ed
 
Top