SNAPSHOT_v12.1d_2020-02-21/PowerEdition Deployment (built 2020-02-21)
For too many reasons to enumerate, but basically the age and complexity of our code set I need to look into an AdvancedCriteria in a fetch on the server side and extract the field names and the criterion values for each field. And I don't see a way of extracting an array of Criterion from the AdvancedCriteria method on the server.
If I look into values in:
request.getAdvancedCriteria() or request.getCriteria() I get a data structure (which you're familiar with) of:
{_constructor=AdvancedCriteria, criteria=[{fieldName=Path_GroupType, operator=notEqual, value=0}, {fieldName=idSTARun, operator=equals, value=8686483}, {fieldName=PK_STA_Rundir, operator=equals, value=3903212} etc etc ]
I was thinking of using the static Evalutor class, but I don't always know the field names of the AC.
I was thinking of trying something like:
Criterion [] cc = (Criterion [])request.getAdvancedCriteria().get("crtieria");
but that seems problematic.
Thanks
For too many reasons to enumerate, but basically the age and complexity of our code set I need to look into an AdvancedCriteria in a fetch on the server side and extract the field names and the criterion values for each field. And I don't see a way of extracting an array of Criterion from the AdvancedCriteria method on the server.
If I look into values in:
request.getAdvancedCriteria() or request.getCriteria() I get a data structure (which you're familiar with) of:
{_constructor=AdvancedCriteria, criteria=[{fieldName=Path_GroupType, operator=notEqual, value=0}, {fieldName=idSTARun, operator=equals, value=8686483}, {fieldName=PK_STA_Rundir, operator=equals, value=3903212} etc etc ]
I was thinking of using the static Evalutor class, but I don't always know the field names of the AC.
I was thinking of trying something like:
Criterion [] cc = (Criterion [])request.getAdvancedCriteria().get("crtieria");
but that seems problematic.
Thanks
Comment