can not call XDocument.View.SwitchView

K

Kenneth

I want to switch to another view when a drop-down select changed, but got
error below:

"Invalid context for OM call Infopath"

The function is:

function msoxd_my_secondarycategory::OnAfterChange(eventObj)
{
var objMyDropdown;
objMyDropdown =
XDocument.DOM.selectSingleNode("//my:category/my:secondarycategory");

if ( objMyDropdown.text == "133" )
XDocument.View.SwitchView('Software Request');
}
 

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