0
在我的控制,我有這個功能,它調用一個效用函數來獲取所有下級用戶在當前登錄的用戶:顯示函數的返回值中的SelectList在VisualForce
public string getUsers() {
Set<Id> userlist = new Set<Id>();
userlist.add(UserInfo.getUserId());
userlist.addAll(RoleUtils.getRoleSubordinateUsers(UserInfo.getUserId()));
String retValue = ':All;';
Integer iCount = 0;
for (User usr: [select Name from User where Id in :userlist and isActive = true and Employee_Group__c like '%Sales%' order by Name]) {
retValue += usr.Name + ':' + usr.Name;
iCount++;
if (iCount < userlist.size()) {
retValue += ';';
}
}
return retValue;
}
我怎樣才能顯示retValue
,這是我的VFPage上的SelectList
用戶列表?