Infopath 2007(Beta) switching default view in Code

B

bkleynbok

Using new Object Model how would I set a view to be default view dynamically.

For example in the old Object Model I could access ViewInfos[] collection
and set particular ViewInfo like so:

string view = thisXDocument.DOM.selectSingleNode("//mstns:D_VIEW").text;
thisXDocument.ViewInfos[view].IsDefault = true;

In the new object model isDefault pproperty is not exposed.

Is there something that I should add.
 
S

Smolakm

Did you happen to find a solution to this? I am running into the same issue.
Thanks.
 

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