Events do not work

O

okaminer

Help!!

My events in infopath have stopped working
I don't know why
I even restarted the computer

my code is really easy (on button press):
function btnKeyUserDetails::OnClick(eventObj)
{
XDocument.View.SwitchView("MainView")
}

and for some wiered reason it doesn't work any more

please help
 
Top