Isomorphic,
I have a situation where I cannot push some fields in the defaultWhereClause and need to construct my own whereClause for those fields in DMI and push that to the ds.xml via addToTemplateContext. I need this because I have a query which calculates share at different levels, so query has sub-query. But if I look at the structure of advanced criteria as map in DMI, it's bit complex with lots of Lists and HashMap. What is the best way to read through this map and identify the fields that I would like to use in my custom where clause construction.
What I mean is, is there any utility methods which when supplied with fieldName identifies any possible conditions within the advancedCriteriaMap and then gives it to you as a Criterion etc. instead of me writing the whole map navigation code.
Thanks.
I have a situation where I cannot push some fields in the defaultWhereClause and need to construct my own whereClause for those fields in DMI and push that to the ds.xml via addToTemplateContext. I need this because I have a query which calculates share at different levels, so query has sub-query. But if I look at the structure of advanced criteria as map in DMI, it's bit complex with lots of Lists and HashMap. What is the best way to read through this map and identify the fields that I would like to use in my custom where clause construction.
What I mean is, is there any utility methods which when supplied with fieldName identifies any possible conditions within the advancedCriteriaMap and then gives it to you as a Criterion etc. instead of me writing the whole map navigation code.
Thanks.
Comment