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');
}
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');
}