掲示板

How I can search for user by her lastName ?

13年前 に Carole Béatrice DEMGNE KAMDEM によって更新されました。

How I can search for user by her lastName ?

New Member 投稿: 7 参加年月日: 10/07/01 最新の投稿
Hi,

I use the following code to search all users with lastName "Dupond" but I don't have the good results.

Hits hits = UserLocalServiceUtil.search(companyId,"","",
                                              "Dupond","","",
                                              true, userParams,true,1,20,sort);


Please, someone can tell me what is wrong ?

Greets,
Carole
thumbnail
13年前 に Felix Joseph Christy によって更新されました。

RE: How I can search for user by her lastName ?

Regular Member 投稿: 111 参加年月日: 09/08/26 最新の投稿
Hi Carole,

If you really need an object of type Hits, then it would be a problem, if you are happy with just List, then use :

UserLocalServiceUtil.dynamicQuery()


Cheers,
Felix
13年前 に Carole Béatrice DEMGNE KAMDEM によって更新されました。

RE: How I can search for user by her lastName ?

New Member 投稿: 7 参加年月日: 10/07/01 最新の投稿
Thanks Felix