on 2015 Aug 19 10:48 PM
Hi,
Using for loop, I am passing order codes one by one to fetch the OrderModel from DB through Flexible Search Query.
But the flexible search query is not working as expected, As only first time(first Loop) its fetch the Order Model, but from second loop, the flexible query return Order Model as null.
I debug the code and found that in DefaultFlexibleSearchService OOTB Class "jaloResult.getTotalCount() > 0" condition is not satisfied from 2 loop onwards.
Suggest how to resolved this issue, so that it will search all the valid orders from DB through Flexible Search Query.
Thanks
Request clarification before answering.
Hi Deepak,
For getting list of orders from list of codes we can use the below query snippet.
select {OrderModel.PK} from {OrderModel._typecode} where {code} in ('code1','code2','code3'......)
Its not required execute the flex query multiple times for diff codes.
Regards,
Raghavendra.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
21 | |
16 | |
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.