Code:
public void FormEvents_Loading(object sender, LoadingEventArgs e) { XPathNavigator root = MainDataSource.CreateNavigator(); XPathNavigator C1 = this.CreateNavigator(); string txtC1 = C1.SelectSingleNode("/my:myFields/my:field76", this.NamespaceManager).Value; XPathNavigator C2 = this.CreateNavigator(); string txtC2 = C2.SelectSingleNode("/my:myFields/my:field79", this.NamespaceManager).Value; XPathNavigator C3 = this.CreateNavigator(); string txtC3 = C3.SelectSingleNode("/my:myFields/my:field83", this.NamespaceManager).Value; if (!this.New) if (txtC1 == "false" && txtC2 == "false" && txtC3 == "false") { e.CancelableArgs.Cancel = true; e.CancelableArgs.Message = "You don't have permission to open the form"; return; } }
Looks like AND operator is not working? as each individual check works.
Comment