Message Boards
Help with search method of UserLocalServiceUtil
Daniel G, modified 2 Years ago.
Help with search method of UserLocalServiceUtil
Regular Member Posts: 141 Join Date: 3/14/17 Recent PostsHi,
I am trying to make a custom portlet which search users in function of expando values and first name.
I am trying with this
Hits hits = UserLocalServiceUtil.search(themeDisplay.getCompanyId(),
firstname,
null,
lastname,
"",
"",
WorkflowConstants.STATUS_APPROVED, // active or approved
params,
true, // andSearch
0,
UserLocalServiceUtil.getUsersCount(),
SortFactoryUtil.getSort(User.class, "orderByCol", "orderByType"));
where params are something like this:
{userExpandoAttributes=true, searchExpando=[[userArea, 22]]}
and userArea is a custom field. But this doesn´t work.
Anyone can help me? Any help would be appreciated
Regards,