Changing InfoPath views from button or link in task pane

J

j_boatman

Can anyone provide me with instructions on how to change views within
InfoPath from the task pane. I have already added an html page to the
task pane but this is as far as I have gotten. Help!?!
Thanks
 
J

j_boatman

I should mention that I am not quite the programmer that I used to be.
Can I just call that line in a javascript function (see below)? Do I
have to set any objects?

function SwitchViews()
{
window.external.Window.XDocume­nt.View.SwitchView(A) ;
}
 
J

j_boatman

I get the following message:

'window.external.Window.XDocume­­nt.View' is null or not an object
 
J

j_boatman

I just hard coded it for test purposes and still get the error...below
is exactly what I have.

function SwitchViews()
{
window.external.Window.XDocume­nt.View.SwitchView("A");
}

Where A is the name of my view.
 

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