I have a selector where I'm using the Where2 operator. due to the fact that I needed two nested WHEREs, ORed together - as follows... I've tried adding it and I cannot get it to work. I'm thinking that the Where2 only allows two nested OR conditions:
Where2< Where< xvwProjects.usrContractEntityType, Equal<Constants.investor>,
And< xvwProjects.usrBranchID, Equal<Current<GLTran.branchID>>,
And< AssistantController.xTACOpenSourceDetail.accountLookup, Equal<Current<GLTran.accountID>>>>>,
Or< Where< xvwProjects.usrContractEntityType, Equal<Constants.investment>,
And< AssistantController.xTACOpenSourceDetail.accountLookup, Equal<Current<GLTran.accountID>>>>>>,...
The above works fine. My question is, how can I add another OR group to this as follows:
Where2< Where< xvwProjects.usrContractEntityType, Equal<Constants.investor>,
And< xvwProjects.usrBranchID, Equal<Current<GLTran.branchID>>,
And< AssistantController.xTACOpenSourceDetail.accountLookup, Equal<Current<GLTran.accountID>>>>>,
Or< Where< xvwProjects.usrContractEntityType, Equal<Constants.investment>,
And< AssistantController.xTACOpenSourceDetail.accountLookup,Equal<Current<GLTran.accountID>>>>>>,
Or< Where<xvwProjects.nonProject, Equal<True>>>,
Or, if that can't be done, which Search do I use (I'm currently using Search5 because I need a join, a where, and an aggregate)? Is this something than can be done in BQL? What would the format be?