Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / June 2005

Tip: Looking for answers? Try searching our database.

Changing InfoPath views from button or link in task pane

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
j_boatman@hotmail.com - 03 Jun 2005 17:26 GMT
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
Anton L - 03 Jun 2005 22:30 GMT
window.external.Window.XDocument.View.SwitchView(viewName)
j_boatman@hotmail.com - 03 Jun 2005 23:53 GMT
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_boatman@hotmail.com - 03 Jun 2005 23:58 GMT
I get the following message:

'window.external.Window.XDocume­­nt.View' is null or not an object
Anton L - 04 Jun 2005 00:42 GMT
Doing it through a function should be fine.
Are you sure you are passing the name of the view as a string [using ""]?
j_boatman@hotmail.com - 04 Jun 2005 00:59 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.