SmartClient Version: v12.1p_2021-10-22/PowerEdition Deployment (built 2021-10-22)
I asked a similar question here: https://forums.smartclient.com/forum...ide#post262285.
I don't really want to go down a recursive parsing solution again.
I have a complicated (many cases) AdvancedCriteria coming down from the client. So
AdvancedCriteria c = dsRequest.getAdvancedCriteria();
gives me the client set.
I have an additional AdvancedCriteria that I want to add on the server to this client set.
A simple:
seems to have just added "AND '1' = '1' " into the secCrit criteria in the resulting fetch.
I can see the value of secCrit in the eclipse debugger and it has added the criteria, but likely in the wrong (?) way or place.
This is what the secCrit contains after the attempt to combine them:
The value of serverCriteria is: 'and:[{FULL_NAV_TREE.ProjName iNotEqual QA_Project}, {FULL_NAV_TREE.Revision iNotEqual A2}]'
Is there a proper way of adding the server side criteria to the client side.?
I asked a similar question here: https://forums.smartclient.com/forum...ide#post262285.
I don't really want to go down a recursive parsing solution again.
I have a complicated (many cases) AdvancedCriteria coming down from the client. So
AdvancedCriteria c = dsRequest.getAdvancedCriteria();
gives me the client set.
I have an additional AdvancedCriteria that I want to add on the server to this client set.
A simple:
Code:
secCrit = new AdvancedCriteria(DefaultOperators.And.getID(), new Criterion[] { request.getAdvancedCriteria().asCriterion(), serverCriteria.asCriterion() } );
I can see the value of secCrit in the eclipse debugger and it has added the criteria, but likely in the wrong (?) way or place.
This is what the secCrit contains after the attempt to combine them:
Code:
AdvancedCriteria:[and:[and:[and:[or:[and:[{ProjName iStartsWith BCM721}, {Revision iContains B}], {ProjName iStartsWith BCM31}, {ProjName iStartsWith BCM271}, {ProjName iStartsWith BCM688}, {ProjName iContains BCM339}, and:[{ProjName iStartsWith BCM741}, {Revision iContains 0}], and:[{ProjName iStartsWith DDR16}, {Revision iContains 2}], and:[{ProjName iStartsWith BCM78}, {Revision iContains 0}], and:[{ProjName iContains QA}, {Revision iContains A}]], {ServerGroupBy equals [ "ProjName_Revision", "Block_Name", "RTL_to_synthesis", "Synth_Rundir_Name", "Synth_Install_Name", "Layout_Rundir_Name", "Signoff_Type", "STA_Rundir_Name", "Signoff_Rundir_Name" ]}, {treeTitleField equals Signoff_Rundir_Name}], {Parent_Id equals -1}], and:[{FULL_NAV_TREE.ProjName iNotEqual QA_Project}, {FULL_NAV_TREE.Revision iNotEqual A2}]]]
Is there a proper way of adding the server side criteria to the client side.?
Comment