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

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!

Similar Messages

  • "File Dialog" Express VI returns the wrong path when the user selects the desktop

    In labview 8.0.1 with Windows
    XP, the File Dialog Express VI seems to return something other than the path
    selected by the user when configured to browse for folders (or files and
    folders) and the user selects the desktop.
    I can't determine exactly when it works and when it fails, but it always seems
    to fail if the user selects the desktop from the places bar (the shortcuts on
    the left side of the dialog) or from the drop-down menu at the top of the
    dialog and then clicks the "Current Folder" button to dismiss the
    dialog.  In this case it always returns whatever path is wired to the
    "Start Path" terminal.
    If the user navigates to the desktop with the "Up One Level" button
    or by selecting the actual desktop directory under Documents and Settings, the
    correct path is returned.
    If the user selects a file before clicking the desktop icon, then clicks
    "Current Folder" the correct path is returned.
    If the user clicks the desktop icon, clicks open, then clicks "Current
    Folder" the correct path is returned.
    It's possible to work around this bug in most cases by setting the start path
    to the desktop.
    Has anyone seen this behavior before?
    Can anybody verify this behavior by running the attached VI?
    In the past, when I've reported issues like this I've received responses from
    NI engineers that basically said "Thanks, but we already knew
    that".  Is there anywhere that users can search the list of known
    bugs and avoid wasting time tracking down issues that are already understood by
    NI?
    Thanks,
    Adam Brewster
    Attachments:
    File Dialog Test.vi ‏39 KB

    I'm on 8.2 and I can't get it to fail no matter how I select the desktop. I haven't tried it in 8.0, but I imagine that if this really is a bug, they did know about it and fixed it with 8.2. If this causes a real problem for you, I would suggest upgrading if you can.

  • Display Different reports depending on values in a User Selectable Dropdown

    Hello,
    I want to create a report which has a Drop-down and depending on the value selected from the drop-down, i want to display different reports.
    Say, a drop-down has 3 values, v1, v2 and v3. Now, if a user selects v1, he/she should see report r1. If v2 is selected, the user should see report r2. if v3 is selected from the drop-down, then report r3 should be visible. All the 3 reports have different structures (even different no. of columns). Also, v1, v2 and v3 are 3 different values belonging to a same picklist type field.
    Do you think this is possible? If yes, How ?
    Any sort of help will be highly appreciated. Thanks in advance.
    Regards,
    Ramil.

    The only way i could see this working would be to create a picklist on a object and then create your three reports placing them within the same folder and name the report something under 30 charters then place the same name in the picklist value and create a weblink to the report which at selection of the report will run either report.

  • R12 limit the user privilage under multi-org situation

    Hi
    In R12, users needn't change the repsonsibilty to achieve the same transaction for multi-org.i.e. u can do the ou1,ou2....under the same AP responsibility.
    while if i want to limit users privilage under this situation, user1 is just limited to the ou1, user2 is just limited to the ou2....how can i relaize it?
    Any help will be preciated.
    Regards,
    Chelsea

    you can achieve this easily...I would suggest go through Documentation atleast once. This Subject is very new.
    Here is one senario how can it acheive for AP Invoice Entry
    Responsibility: Payables
    Navigation: Invoices:Entry > Invoices
    On the Invoice Workbench, you can select an Operating Unit, or enter another field, such as PO or Supplier Site, from which the system will default an OU. Your list of available OUs is determined by your multi-org security profile defined in Oracle HR and associated to their responsibility through the MO Security Profile profile option.
    How it works....once the application automatically provides the operating unit of new (uncommitted) invoices during entry. The following are methods by which the operating unit is derived:
    1)Default Operating Unit from “MO: Default Operating Unit” Profile Option
    2)Default Operating Unit from Invoice Batch Header
    >>When entering invoice batches, users have the option of establishing a default operating unit for the invoices entered in the batch. This can be overridden at the invoice level as with any other value (Payment Method, for example) entered in the Invoice Batches window.
    3)Derive Operating Unit from Transaction Attributes
    >>>Oracle Payables will derive the operating unit of an invoice based on certain user entered attributes. If the user chooses a PO (via PO Default or QuickMatch features) or supplier site when the Operating Unit field is empty, the Operating Unit corresponding to the selected value will be populated onto the invoice.
    4) Set Operating Unit from Single Operating Unit Security Profile
    >>>>> That mean when a user’s security profile contains only one operating unit, it can be said that the user’s operating unit context has been “set” to this operating unit. This value is automatically defaulted to all new invoices and it cannot be overridden.
    Hope this make sense.
    same is true for other activity like payment , period close.Let me know , in case if you are not clear.
    thanks

  • How to make form field read only for users with certain permissions

    We need to make two form fields read only for users with certain permissions. Kindly guide me on how to do this in Infopath. I searched and there is an option to disable to the column, but no option to select user permissions. 
    Please give your suggestion on this. 
    thanks.

    Hi,
    See the link below:
    http://info.akgroup.com/blog-0/bid/69277/InfoPath-Restrict-visibility-to-users-in-a-SharePoint-Group
    Here you can add the fomatting action on the field to disable the field if those users belong to certain Sharepoint group (does not matter the permission levels though). Hope it helps.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Filtering criteria in User selection screen

    Hi experts,
    Is there any ways to display values in the selection screen based on the above criteria that user selected? For example, the selection screen has 3 selection tabs. The first tab is to choose region (A,B or C). When user selects region A, the second criteria shows only the factories that located in region a, not all of the factories. Once user select a factory, the thrid tab shows only the manager names that works in that factory.
    I'm new in this area so please provide me an instruction steps by steps.
    Thanks so much,
    Phant

    Do you have any mapping maintained in any InfoObject for all these characteristics you mentioned, or you are trying to pull out this information based on the trascational data from the cube.
    There is one option in the query designer. Go to Advance tab of the characteristic and under second option "Filter vale for selection during query execution", select Characteristic Relationships.
    - Danny

  • How to completely uninstall air app(clear up user files under app directory)?

    In the adobe air 1.1 install/uninstall document, it says "Removing an AIR application removes all files in the application directory. However, it does not remove files that the application may have written to outside of the application directory. "
    But it's not true. I found you cannot completely uninstall the app if there is any user files under app directory. If the user re-install the app, it will reminder the user "some error has occurred ...because an application with that name already exists at the selected installation location.... ".
    How to get rid of this problem if the user didn't clear up the folder manually before re-install?  If it's a limitation of adobe air, anyone could give me any evidence from official documents? Cause I have to persuade the user to accept it    Thank you.

    Psythik wrote:After returning my 6GB Zen Micro to the store (due to the fact that I filled it up quicked than I would've liked), I decided to go with the Zen Sleek player instead. Problem is, my computer still has the Zen Micro's drivers installed and apparantly it's conflicting with my Sleek because my computer won't recgonize it as a Zen Sleek even after installing the drivers (it just recgonizes it as a generic mp3 player). I can still transfer files to it as a would with a generic mp3 device in My Computer. Problem is, ID3 tags aren't properly sent this way (which is annoying when I want an album organized by track number).
    You shouldn't need to uninstall the Micro, it won't conflict. If tags aren't being sent properly then there might be some issue with the tags being read from the files. Check with a dedicated tagging program, and rewrite the tags perhaps on some test files.
    I'm assuming it's a Sleek with v2.xx firmware?

  • Image needs to be enable only user select the edit mode

    Hi Expert,
    I have added one Image using value node and in get method I have given my image name, I also regenerated set, I and P method. I also moved the image in the configuration part.
    Now the Image is visble in the webui in editable mode.  But the requirement while opening any service order the image should be visble under the gernal data in disable mode.  While user selecting the edit button then only the image should be visible in the web ui.
    I tried to make this image in I Method, but I method is not triggered while debugging.  So kindly let me know how to overcome this issue.  Expecting your response ASAP.
    Thanks and Regards,
    Kannan.

    Hello,
    Did you try to use different image sources depending on the document process mode ?
    Exemple:
    1) If the document is in edit mode, then image source = 'your_image.jpg'
    2) If the document is in display mode, then image source = cl_thtmlb_util=>get_icon_url( iv_icon_name = '1x1.gif' )
    Nicolas.

  • Get year from user selected month in field name

    Hi BExperts,
    I would your help about this problem on BI 7 :
    At the opening of the query, user selects a month (for example 03.2007).
    From this month, i have to indicate key figures on the selected month (03.2007) and key figures on the corresponding year (here 2007).
    I'm using a variable in order to get the selected month (0I_CMNTH).
    I don't know how to get the corresponding year (with a variable) ?
    For example : user selects "03.2007", in the query i would have :
    Period  Key figure
    03.2007     17
    2007           38
    Thanks for help.
    Points will be assigned.
    Cheers,
    Vince.

    Hello,
             I am not sure about the one you mentioned but this is another way which you can try by creating the customer exit variable V_YEAR under 0calyear characteristic and add the following code for gettting the previous year.
    data: year(4) type n,
             year1(4) type n.
    when 'V_YEAR '.
    if i_step = 2. "after the popup
    loop at i_t_var_range into loc_var_range
    where vnam = '0I_CMNTH'.
    year = loc_var_range-low (4).
    year1 = year - 1.
    clear l_s_range.
    l_s_range-low = year1.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    append l_s_range to e_t_range.
    exit.
    endloop.
    endif.

  • How to bind a user selected value to a view object bind variable?

    Hi
    I have two pages in ADF BC application. In the first page ,i will give a drop down menu to user which displays all the table names in my databse.
    when the user selects a table and goes to the second page..he should be given a menu or a check list of all the columns in the user selected table....
    to display the columns i have used the query
    Select COLUMN_NAME from user_tab_columns where table_name = : table_name in the view object.
    now how to bind the user selected table value in the first page to the table_name bind variable in view object ?
    thanks
    swathi.

    Hi,
    depends on how the select box is implemented. With ADF and ADF Faces, the default value selection is the list index. In a value change listener you could look up the selected value from the underlying iterator. Store this value e.g. in a session attribute and point the NDValue of the ExecuteWithParams operation to #{sessionScope.your_attribute}
    Frank

  • User selected global filter for country

    I am trying to build a scenario where I have a km repository like the following
    Australia
      - Support docs
      - Product Brochures
    USA
      - Support docs
      - Product Brochures
    Then I want to build a KM navigation iView that allows the user to select a global "filter" of their country... An Australian user would select Australia (a pre defined property per the global property service) and then this would be used to drive the content shown in the iView.
    I should be able to do this via permissions but I would rather have the user select the area of interest as they may be authorised to see both.
    Does anyone have any ideas on how this could be done?
    Thanks in advance
    Bernard

    Hi Bernard,
       You can create two KM Navigation iviews, one point to Australia and the other to USA folders.
       On the other hand, if you want to classify these document to do a search..so on. You must create country metadatas Australia/USA and type of document (Support/Product). Both of metadatas could be mandatories when you upload a file.
       Also, you can have only folder where all document are uploaded and assign these metadata. Then create taxonomies to classify them by country/type of documents so on. At last, your km navigation iview to point these taxonomies
      Patricio.

  • Apple Script to make Pages open in a user-selected screen position

    This is a follow-up to a response/script made previously by Yvan KOENIG that enables Pages to open a Pages template in a user-selected "left" position.
    http://discussions.apple.com/message.jspa?messageID=9100331#9100331
    This works great for me, but I'd like to take this one step further, if possible. I'm naïve when it comes to Apple Scripts
    Currently, if I use the script, it opens up in 100% 'fit-width' view as follows:
    http://trials.sent.com/pages/100.png
    What I'd like it to do is to open up in 125% 'fit-width' view as follows:
    http://trials.sent.com/pages/125.png
    I'd like to therefore ask if it's possible to somehow enable this in the script above.

    I looked at the English version.
    Let me say you that you are a funny guy.
    Set width and set "Fit Width" are incompatible commands.
    On my 1920 x 1200 screen, if I set scale to 125%, Fit Width is disabled.
    If I check "Fit width", the size remains unchanged but is no longer selected.
    On a smaller display, "Fit Width" will set the page in the "100%" mode.
    My guess is that it's what you get.
    As I am a good guy,
    I add some instructions in the code.
    Now you may activate several settings to fit your needs (when they are technically compatibles).
    --(SCRIPT openToLeft.app]
    Enregistrer le script en tant que Script, Application ou Progiciel : openToLeft.xxx
    déplacer l'application créée dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Pages:
    Il vous faudra peut-être créer le dossier Pages et peut-être même le dossier Applications.
    menu Scripts > Pages > openToLeft
    Le script créera un nouveau document à partir du modèle choisi et le poussera à gauche de l'écran.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    +++++++
    Save the script as a Script, an Application or an Application Bundle: openToLeft.xxx
    Move the newly created application into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:
    Maybe you would have to create the folder Pages and even the folder Applications by yourself.
    menu Scripts > Pages > openToLeft
    The script will create a new document from the selected template and will push it to the screen's left edge.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    +++++++
    Yvan KOENIG (Vallauris FRANCE)
    4 mars 2009
    property theApp : "Pages"
    property hardCoded : false
    true = the template is predefined
    false = you select the template when you run the script *)
    property zoomIt : false
    false = leaves the doc size as created
    true = issue a cmd + > command to enlarge it *)
    --=====
    on run
    my activateGUIscripting()
    tell application "Pages"
    set Templates_loc to localized string "Templates" (* nom local du dossier "Modèles" *)
    set MyTemplates_loc to localized string "My Templates" (* nom local du dossier "Mes Modèles" *)
    end tell -- theApp
    set templatesFolder to ((path to application support from user domain as text) & "iWork:Pages:" & Templates_loc & ":" & MyTemplates_loc & ":")
    if hardCoded then (*
    Here the template to use is hard coded in the script *)
    if templatesFolder does not end with ":" then set templatesFolder to templatesFolder & ":"
    set myTemplate to (templatesFolder & "un modèle09.template:") as alias
    else (*
    Here we are urged to choose the template in a dialog *)
    set templatesFolder to templatesFolder as alias
    Don't ask me why, Pages uses two Universal Type Identifiers for its templates
    the first one is used if only Pages '08 is installed under 10.4 or by both '08 and '09 under 10.5.6
    the second one is used under 10.4.11 if Pages '09 is installed *)
    set allowed to {"com.apple.iWork.Pages.template", "com.apple.iWork.Pages.sfftemplate"}
    if 5 > (system attribute "sys2") then
    set isOs4 to true
    set permitted to allowed
    else
    set isOs4 to false
    set permitted to {}
    end if
    if my parleAnglais() then
    set myTemplate to choose file "Choose a Pages template …" of type permitted default location templatesFolder
    else
    set myTemplate to choose file "Choisissez un modèle Pages …" of type permitted default location templatesFolder
    end if
    if not isOs4 then
    due to a system's bug, choose file is unable to filter the iwork's files UTIs
    So we must check by ourself *)
    set maybe to myTemplate as text
    tell application "System Events" to set typid to type identifier of disk item maybe
    if typid is not in allowed then
    if my parleAnglais() then
    error "The file “" & maybe & "” is not a Pages template !"
    else
    error "Le fichier « " & maybe & " » n’est pas un modèle Pages !"
    end if
    end if
    end if
    (* Here, the pathname of the template is of class alias *)
    end if -- hardCoded
    try
    tell application "Pages"
    activate
    set n to count of documents
    open myTemplate (* create a new doc from the template *)
    repeat
    if (count of documents) > n then
    exit repeat
    else
    delay 0.1
    end if
    end repeat
    tell window 1 (*
    As we are telling to application "Pages" we may use tell window 1 even if we have an Inspector or a Find/Replace dialog open.
    It would be wrong if we where telling to process "Pages" *)
    set {x1, y1, x2, y2} to get bounds
    set bounds to {0, 0, x2 - x1, y2 - y1} (* move the window to the left edge *)
    set view scale to 125.0
    --set fit page to true (* or false *)
    set fit width to true (* or false *)
    --set full screen to true (* or false *)
    --set outline visible to true (* or false *)
    --set ruler visible to true (* or false *)
    --set styles visible to true (* or false *)
    --set thumbnails visible to true (* or false *)
    --set toolbar visible to true (* or false *)
    --set two up to true (* or false *)
    end tell -- window
    end tell -- application
    end try
    end run
    --=====
    on activateGUIscripting()
    tell application "System Events"
    if not (UI elements enabled) then set (UI elements enabled) to true (* to be sure than GUI scripting will be active *)
    end tell
    end activateGUIscripting
    --=====
    on parleAnglais() (* Check if Pages is running in French *)
    local z
    try
    tell application theApp to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    --[/SCRIPT]
    Yvan KOENIG (from FRANCE jeudi 14 mai 2009 11:35:36)

  • Component responsible for "User Admin" under Administration Link.

    Hi
    Does anyone knows which component is responsible for the "User Admin" under Administration Link.

    The limitation is to speed up the Java applet.
    MaxQueryRows limits the number of results in Repository manager, but I do not think it does in User Admin. Try it out though.
    Nope found it while writing.
    http://download.oracle.com/docs/cd/E10316_01/cs/cs_doc_10/documentation/developer/idoc_script_reference_10en.pdf
    MAXSTANDARDDATABASERESULTS
    Type and Usage
    �� Configuration Variables (page -3)
    �� Content Server (page -6)
    Description
    Sets the maximum number of users displayed.
    �� This is valid for any applet that allows you to select users from a list.
    �� Default is 500.
    Location
    <install_dir>/config/config.cfg
    Example
    Used as a configuration entry:
    MaxStandardDatabaseResults=1000

  • How to call an action when the user selects a radiobutton

    Hai
    PLease help me in providing the information.
    In my Project i have two radio buttons as
    New
    Asssessment
    when the user selects new button, i want to automatically call an action in the controller(.jpf file)
    Simalarly when he selects the other radio button i need to call a separate action in the controller.
    Remember i dont have the submit button.
    I want to dynamically call an action when the user selects the radio button.
    i dont have any field inthe radio button which actually takes action as an attribute .
    please provide me the necessary

    Hi,
    You can use JavaScript to call the action in interest upon the Radio Button Element Being Selected.Should be simple, and if your controller is part of the portlet dont forget to use the jpfScopeId to asscoiate the controller instance with the one in the portlet.
    Let me know if you have any further questions.

  • How to make a report to display next 18 months of data with when user select a particular month from the filter in power pivot tabular model.

    Hi,
    i have a  dimension table  with month_key having values (201201,201202,201203.......202011,202012) and month name ( Jan 12, feb 12,......NOV 20, Dec 20)  and a fact  table with columns (month_key ,measure_types, Amount)
    My requirement is to create a power pivot report  in which when a user select a month from the filter, the report should display the (selected month+18 ) month's data against each type . when JAN 12 is selected ,the jan 2012 +18 = june 2013
    , month name should be populated with months till june 2013 only .
    i tried creating calculated column"END DATE " in the fact table with  dax expression to calculate the 18th monh from the current month  as below 
    month_key END DATE
    201201       201306    
    201202       201307      
    and thought of filtering the table with month key <= ENDDATE but it is not working as expected. could you please guide me on this ? Is there any time intelligence function that serve the purpose . Iam using  excel 2010
    ..hence could not do any calculation on the report side also. please suggest .
    Thanks in advance                                                                                                                                               

    Do you need to show the measure calculated for those 18 months as a total on 1 row, or do you need to select a single month and then display on row filters 18 distinct rows?
    The first is trivial as driezl has suggested.
    The second will require a second calendar table.
    I created this example workbook for a coworker who had a similar problem. You will have to use the disconnected table as your filter and pull your related table onto the rows.
    Finally, the easiest way to deal with the sort of date arithmetic you need to do is to restructure your date table to have a series of "Sequential" fields. These fields should be the number of units of time since the beginning of your calendar.
    For example, consider a calendar starting on January 1, 2010. For January - December 2010, [MonthSequential] = 1, 2, ..., 12. For January - December 2011, [MonthSequential] = 13, 14, ..., 24, and so on, incrementing by 1 for each sequential month in time.
    Assuming you have this set up in your date tables (one related to your model - DimDate - and one disconnected - DisconDimDate) your measure would look like this:
    18 Month Measure:=
    CALCULATE( [Measure]
    , FILTER( DimDate
    , DimDate[MonthSequential] >= MAX( DisconDimDate[MonthSequential] )
    && DimDate[MonthSequential] <= MAX( DisconDimDate[MonthSequential] ) + 18
    Please review this example along with the workbook I have linked above.

Maybe you are looking for

  • HT2515 My iPad is saying I have a billing account but when I put the credit information in it doesn't work

    Hi, My iPad is saying I have a billing account but when I put the credit card information in it doesn't work correctly

  • LR 5 not working on new Macbook Pro.

    LR 5 not working on new Macbook Pro.  Have tried 2 CC downloads, 5.6 licensed download and 5.5 licensed download, all result in the same thing.  It comes up with basic screen but no panels and gives an error occurred when changing modules.  Nothing I

  • DMEE- vendor email id

    Dear All, I need to capture Vendor email id in DMEE format for Bank. The vendor email id in the vendor master is not getting captured. Is there any user exit for capturing it. Regards, Vidhya

  • Question about flex with facebook api

    I want to use flash with facebook,when it visit a url,it will use JSON to decode data,when it contains connection,I hope it can display button which named "show" or "hide" AS code is follows: public function CustomGraphContainerController(a_graphCont

  • Can not play mp3 files

    Hi, This is my code... package sampleplayer; import javafx.scene.media.Media; import javafx.scene.media.MediaPlayer; var song=Media{source:"G:/Shono amra ki shobai.MP3"} var player=MediaPlayer{media:song} player.play()and its giving the following err