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 / October 2006

Tip: Looking for answers? Try searching our database.

How to detect the active View?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Morten Wennevik - 23 Oct 2006 12:05 GMT
Hi,

I'm quite new to InfoPath and hopefully this is easy to do.

I have an InfoPath form with eight Views.  This form has a custom task  
pane added, and on this pane a button.  I need to know which View is  
active when this button is pressed, and probably also when the Task Pane  
is loaded.  How can I find out which View is active, either in the Task  
Pane javascript or by setting an xml value if there is such a thing as  
load event in InfoPath?

Morten
Russ - 23 Oct 2006 16:10 GMT
Access the name of the current view with the following in your JScript:

XDocument.View.Name

> Hi,
>
[quoted text clipped - 8 lines]
>
> Morten
Morten Wennevik - 26 Oct 2006 11:24 GMT
Hi Russ,

Just what I needed :)

> Access the name of the current view with the following in your JScript:
>
[quoted text clipped - 12 lines]
>>
>> Morten

Signature

Happy Coding!
Morten Wennevik [C# MVP]

 
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.