Skip to Content
author's profile photo
Former Member

User Selection under Permissions

I'm uploading a set of documents programatically to a folder (an instance of ICollection). I need to set the permissions to the folder. But before I could set the permissions, I want the user to select a bunch of users using the "User Selection Search" User interface. Can it be done? If so, what is the iView that I could call from my JSP? And how can I retrieve the selected users?

Any help is appreciated,

Thanx,

Mahesh

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Sep 26, 2005 at 03:42 PM

    Hi Mahesh,

    just use <i>com.sap.ip.collaboration.coreui.api.people.composite.PeoplePicker</i> as a HTMLB component. You can define the selection mode (single/multiple), for instance:

    peoplePicker.setPeopleSelectionMode(PeopleSelectionMode.SINGLE_SELECTION_INPUT_FIELD);

    the kind of principals to search for on an include/exclude basis:

    peoplePicker.setSearchFor(UMEPrincipalType.USER, true);

    After the user has chosen some users, they are listed in the input field and to be read from your component as usual, for instance (the parameter is the ID as usual):

    PeoplePicker peoplePickerINPUT = (PeoplePicker)dynPage.getComponentByName("_peoplePickerSingleSelection" + CLASSNAME);

    Hope it helps

    Detlev

    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

    Add comment
    10|10000 characters needed characters exceeded