on ‎2018 Jul 02 11:26 AM
Hi All,
I have arrayList which contains list of order numbers, I want to fetch PK of orders which contains order number from arrayList , How I can do it?
I tried below code but its not working.
String [] orderNumbersToResent = ["1234","3467"] String orderQuery = "SELECT {PK} FROM {Order} WHERE {code} IN (?orderNumbersToResent)" final FlexibleSearchQuery orderSearchQuery = new FlexibleSearchQuery(orderQuery) orderSearchQuery.addQueryParameter("orderNumbersToResent",orderNumbersToResent);
Regards, Rasika
Request clarification before answering.
Hi , please find the code snippet to handle that type of array of values.
final Map queryParams = new HashMap(); queryParams.put("orderList", Arrays.asList(orderNumbersToResent));
send the query params to FlexibleSearchService with search method.
Thanks,
Venki
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 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.