Hi Faus,
Ok to get more concrete.
I have one View Appliaction Team and one Layout Team view. Just as short info my document is integrated into K2 workflow.
I have a check box on the App.Team view cbLayout. If this one is checked the process follows the line rule for the Layout Team.
Also I have an OnSwitchView Event (C# code by the way)
As you posted I do the following:
IXMLDOMNode nodeL = thisXDocument.DOM.selectSingleNode("my:myFields/my:cbLayout");
if(thisXDocument.View.ToString() == "Layout Team View")
{
if(nodeL.text == "true")
nodeL.text = "false";
}But when i switch between the views the checkbox stay checked ALL the time.