Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: retrieve recent records
Hello Guys ,
Whenever we use UserLocalServiceUtil.getUsers(0, UserLocalServiceUtil.getUsersCount()); then we get List of all users But how can we retrieve recently inserted record wise
Whenever we use UserLocalServiceUtil.getUsers(0, UserLocalServiceUtil.getUsersCount()); then we get List of all users But how can we retrieve recently inserted record wise
Hi,
You can user this UserLocalServiceUtil.getUsers(companyId, defaultUser, status, start, end, obc) and in obc (OrderByCompator ) you can give created date or userId in descending order.
You can refer this for OrderByComparatorhttp://liferaytutorial.blogspot.com/2013/12/order-by-comparator.html
You can user this UserLocalServiceUtil.getUsers(companyId, defaultUser, status, start, end, obc) and in obc (OrderByCompator ) you can give created date or userId in descending order.
You can refer this for OrderByComparatorhttp://liferaytutorial.blogspot.com/2013/12/order-by-comparator.html
Hi Mohammed ,
Thanks for the good suggestions . I will check this approch
Thanks & Regards ,
Pradip
Thanks for the good suggestions . I will check this approch
Thanks & Regards ,
Pradip
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™