Hi
I have a multi-selection box. If the user selects one particular option I want to delete any other items selected.
The field with the selection box has an xpath /my:myFields/my:SKUIntroductionGroup/my:RegionalGroup (in the main data source).
In the rules on that field I have added a rule (see attachment). The rule is only triggered if the value of RegionalGroup is Global. The command I enter is Delete /xpath=/my:myFields/my:SKUIntroductionGroup/my:RegionalGroup[. !="Global"]. Followed by a call to the qRules.
When I select the Global option I get the error message shown below. But when I clear that message it has done what I want.
There are no values displayed in Success; or Error fields of the QdabraRules data source. I am using version 2.0
System.NullReferenceException
Object reference not set to an instance of an object.
at Qdabra.Tools.RulesLibrary.Commands.ExecuteCommand(Application application, XmlFormHostItem formHost, XPathNavigator commandsNavigator)
at Qdabra.Tools.RulesLibrary.FormCode.QdabraRules__Command_Changed(Object sender, XmlEventArgs e)
at Microsoft.Office.InfoPath.Internal.XmlEventHost.GenericProxy(Object genericDelegate, DataDOMEvent dataDOMEvent, InfoPathEvents type)
at Microsoft.Office.InfoPath.Internal.XmlEventHost.ChangedProxy(DataDOMEvent dataDOMEvent)
at Microsoft.Office.Interop.InfoPath.SemiTrust._DataDOMEventSink_SinkHelper.OnAfterChange(DataDOMEvent pDataDOMEvent)
I have obviously done something wrong - could you please advise.
Thank you
Catharine