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]