Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Usage of AdvancedCriteria.EQUALS_FIELD

    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.

    #2
    What are you trying to do, and what problem ar you having?

    If the problem is some kind of error, be sure to provide the error message, along with all other required details listed in the FAQ.

    Comment

    Working...
    X