AnsweredAssumed Answered

userSearch doesn't return results

Question asked by av25474 on Apr 8, 2016
Latest reply on Apr 11, 2016 by av25474

Hello,

I'm using this piece of code in a B2 to get all users which have some text in their "student_id" field, but, I get zero results...

What I've been doing wrong? I'm using the developer machine 9.1.201410.160373. I run this inside an "execute" method of a "Job class", using Quartz.

However, if I from an standalone jsp page, it works properly

 

UserSearch us = UserSearch.getNameSearch(UserSearch.SearchKey.StudentId, SearchOperator.NotBlank,"");

us.setAdminSearching(true);

us.setOnlyShowEnabled(true);

List userList;

 

try {

      userList = UserDbLoader.Default.getInstance().loadByUserSearch(us);

     ....

}

 

 

Thanks a lot,

Alberto Campos

Outcomes