How to detect the active View?

M

Morten Wennevik

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
 
R

Russ

Access the name of the current view with the following in your JScript:

XDocument.View.Name
 

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