Hey All,
I am really stumped on this one. Can anyone tell me what is wrong with this conditions code:
SAPbouiCOM.Conditions oCons = oCFL.GetConditions(); SAPbouiCOM.Condition oCon = oCons.Add(); oCon.BracketOpenNum = 2; oCon.Alias = "QryGroup1"; oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL; oCon.CondVal = "Y"; oCon.BracketCloseNum =1; oCon.Relationship = SAPbouiCOM.BoConditionRelationship.cr_OR; oCon = oCons.Add(); oCon.BracketOpenNum = 1; oCon.Alias = "QryGroup2"; oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL; oCon.CondVal = "Y"; oCon.BracketCloseNum =2; oCFL.SetConditions(oCons);
It brings back the correct filtered list on my choose from list form but it has some strange behaviour. If we type a character and * in to match a wildcard set of records it brings back all of the correct records plus the first record in the unfiltered list everytime. Also if you select a value from the list it populates properly but if you type directly into the text box on the form and tab out it gets replaced with the same first value in the list. I have removed the filters and it works fine without them.
Can anyone please help us on this one?