on 02-24-2016 12:23 PM
Hi,
i've a requirement to search the all orders from all the users from single base site. While executing i could not able get the all orders.
how to write flexible query to get all orders in admin context ?
Please Let me know!!!
Thanks Kishore MS
getSessionService().executeInLocalView(new SessionExecutionBody() {
// your code
}, getUserService().getAdminUser());
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kishore,
I would say the correct thing would be to disable the search restrictions, do the search and enable them back again. In code it would be something like this:
searchRestrictionService.disableSearchRestrictions();
// Your query
searchRestrictionService.enableSearchRestrictions();
Regards, Juan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
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.