Dear Isomorphic,
Can you kindly clarify to me the usage of AdvancedCriteria.EQUALS_FIELD.
I have a criteria as below:
AdvancedCriteria rootCriteria = new AdvancedCriteria("CNRT_GRP_ID", OperatorId.EQUALS_FIELD, criterion.CNRT_ID);
AdvancedCriteria c1 = new AdvancedCriteria("CNRT_PY_ID", OperatorId.EQUALS, getPYID());
AdvancedCriteria c2 = new AdvancedCriteria("CNRT_TP_ID", OperatorId.EQUALS, getTPID());
AdvancedCriteria idCritrray[] = {c1, c2};
AdvancedCriteria idCriteria = new AdvancedCriteria(OperatorId.OR, cArray);
AdvancedCriteria finalCritArray[] = {rootCriteria, idCriteria};
AdvancedCriteria finalCriteria = new AdvancedCriteria(OperatorId.AND, finalCritArray);
I am stuck in specifying the rootCriteria (line 1 above).
Thanks for your help.
Can you kindly clarify to me the usage of AdvancedCriteria.EQUALS_FIELD.
I have a criteria as below:
AdvancedCriteria rootCriteria = new AdvancedCriteria("CNRT_GRP_ID", OperatorId.EQUALS_FIELD, criterion.CNRT_ID);
AdvancedCriteria c1 = new AdvancedCriteria("CNRT_PY_ID", OperatorId.EQUALS, getPYID());
AdvancedCriteria c2 = new AdvancedCriteria("CNRT_TP_ID", OperatorId.EQUALS, getTPID());
AdvancedCriteria idCritrray[] = {c1, c2};
AdvancedCriteria idCriteria = new AdvancedCriteria(OperatorId.OR, cArray);
AdvancedCriteria finalCritArray[] = {rootCriteria, idCriteria};
AdvancedCriteria finalCriteria = new AdvancedCriteria(OperatorId.AND, finalCritArray);
I am stuck in specifying the rootCriteria (line 1 above).
Thanks for your help.
Comment