Forms + multiviews= Trouble :(

D

Dazed

Hi All,

I have a form with with about 5 different views.

I have made a dropdown called media type this drop down has 5 different
values the user can select. Each value displays a different view.

My problem is as followed;

1. The default view is "Print Media"
2. If the user selects "Web Media" the form changes to the "Web Media View"
This is working good :)
3. the issues is once the user selects a view other than the default (e.g.
Web Media) and submits the form which than emails it to a manager
4.The Manager gets the form BUT he sees the default view "Print Media" not
the "Web Media"

is there a way to set the default view to what the user selects form this
drop down?
 
S

S.Y.M. Wong-A-Ton

You could add a field to your form to save the name of the last selected view
in. Then add code in the OnLoad event of the form to retrieve the name of the
view that was saved in the "last selected view" field and switch to this view
by using something like:

XDocument.ViewInfos("MyLastSelectedViewName").IsDefault = true;

to do the view switching in the OnLoad event (example is JScript code).
 

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