How to fetch all the portal groups into dropdown through webdynpro Java App

Hello All,
I have a requirement where I have to fetch all  the groups available in user administrator in portal into a dropdown, so that the admin can select the group from the dropdown and after that when he executes a button u201CGet Detailsu201D he must be able to get the list of users who has been assigned that group .
I need to achieve this through WebDynpro Java.
Any pointers or documents on this is very very helpful.
Thanks,
Manasa.
Edited by: Manasa Boyapati on Sep 12, 2011 7:25 AM

Hi,
Can you try using the below code ?
IUser uid = UMFactory.getUserFactory().getUserByLogonID(Userid);
Iterator groups =  uid.getParentGroups(false);
while (groups.hasNext())     
  String str_grpname = (String)groups.next();
  IGroup Group = UMFactory.getGroupFactory().getGroup(str_grpname);
ary_groups.add(Group.getUniqueName());
Hope you can achieve you results by tweeking this..
Regards,
Vijay.

Similar Messages

  • How to fetch all the records from ztable

    Hi 
    My program is outbound program.
    According to the requirement i have to fetch all the records from ztable which are not tranmitted before to the third party and once the records are extracted and written to output file they will be marked as 'X' in the "status" field of that ztable for the next days run.
    How to fetch the records.Please suggest me.
    Thanks,
    Neelima

    HI,
    Fetch all the records whose status is equal to 'X' as whatever data is sent to third party system is marked as 'X' in status field of table after sending.
    You need to first fetch the data into internal table using the select statement where status EQ space. You get the data which is not yet transmitted to third part. And later in the program after trasmitting the data to third party modify the Records in the DB table which are transmitted with Staus eq 'X'.

  • How to Inscribe all the error messages into a single package ??

    Hi,
    I want to Inscribe all the error messages into a single package., and call the concern package from the exception block in every sp by passing the error code to that package, which will return the Concern error message to the calling Sp.,
    Can any one help me out how to accomplish this ., ?
    regards
    Raja

    I want to Inscribe all the error messages into a single package., Why do you want to inscribe all the messages in a package?
    I would suggest you to store them in a table instead and you can write a functin to retrive the error messages required.
    But if your requirement is for 'Package' then assuming that you store all the error messages in a table 'error_table' (say) following code may help you .
    CREATE TABLE Error_Table (
      Error_Code VARCHAR2(10),
      Error_Desc VARCHAR2(1024));Now insert your error codes and descriptions in this table.
    CREATE OR REPLACE PACKAGE pkg_Error_Handler
    AS
      FUNCTION f_Get_Error_Message(p_Error_Code  Error_Table.Error_Code%TYPE) RETURN VARCHAR2;
    END pkg_Error_Handler;/
    CREATE OR REPLACE PACKAGE BODY pkg_Error_Handler
    AS
      FUNCTION f_Get_Error_Message
           (p_Error_Code  Error_Table.Error_Code%TYPE)
      RETURN VARCHAR2
      IS
        lv_Error_msg  Error_Table.Error_desc%TYPE;
      BEGIN
        BEGIN
          SELECT Error_desc
          INTO   lv_Error_msg
          FROM   Error_Table
          WHERE  Error_Code = p_Error_Code;
        EXCEPTION
          WHEN No_Data_Found THEN
            lv_Error_msg := 'No such error code '
                            ||p_Error_Code
                            ||' defined in the system';
          WHEN OTHERS THEN
            lv_Error_msg := p_Error_Code;
        END;
        RETURN lv_Error_msg;
      END f_Get_Error_Message;
    END pkg_Error_Handler;
    /and you can call this packaged funtion from any exception block to get the error description.
    Regards,
    Abhijit.
    N.B.: Code not tested

  • How to fetch all the records

    Hello everybody,
    I am currently working on SQL Developer for the couple of weeks. I have specific need to check, how much time one query take to fetch all the records. Currently it can fetch only 50 records and when scroll then next 50 records and so on.
    Can anybody tell me, how to set this to fetch full records
    Regards,
    Martand M Joshi

    Martand,
    There's no setting to fetch all records. You wouldn't like SQL Developer to fetch for minutes on big tables anyway.
    If, for 1 specific table, you want to fetch all records, you can do Control-End in the results pane to go to the last record. You could time the fetching time yourself, but that will vary on the network speed and congestion, the program (SQL*Plus will be quicker than SQL Dev because it's more simple), etc.
    Now, what I think you really want here, is getting the execution time. If you really want to analyze the query's performance, you'd have to use the explain plan, autotrace and tkprof (see the manual for tuning and performance).
    To make us life easier, the makers of SQL Developer included support of the explain plan, and as of v1.1, autotrace!
    I'm sure you've got enough to work things out from here...
    Regards,
    K.

  • OMB Plus : how to get all the generated messages into a text file ?

    Hello,
    I wrote an OMB TCL script and I would like to know how to get all the messages generated during the exécution into a text file.
    I tried this, but it works only for a puts command :
    set DesProjet ACT_1
    set filename [ open "c:\\temp\\INFDE_010_IMPORT_REPOSITORY_$DesProjet.log" w]
    puts "test"
    Thank you for your help

    Hello Alain, you should try the OMBLOG variable. If you set it inside OMBPlus:
    set OMBLOG c:/temp/mylog.txtthen all the OWB specific commands are logged with their output. By OWB specific I mean all those that start with OMB.
    This is more than what you see in the interface, because:
    - messages inside procedures are logged; you wouldn't see them on std.output when you call a proc
    - variables are resolved, so if you issue the command
    set my_var VERY_IMPORTANT_TABLE
    OMBDROP TABLE '$v_myvar'the log will show:
    OMBDROP TABLE 'VERY_IMPORTANT_TABLE'
    Table dropped
    and you know something is wrong... so OMBLOG is very useful to intercept all manipulations on you repository.
    If what you want instead is a dump of the screen output when you execute a script, I suggest you redirect standard output from the operating system command line. Unfortunately OMBPlus doesn't support all advanced redirection and tracing features of the TCL language.
    Hope this helps, Antonio

  • How to get all the Record Groups?

    in the form i had created a record group. let us say they are:
      RG_APPR_TYPE_CDE_LIST
      RG_DRV_APPR_TYPE_CDE_LIST
      RG_PROJ_MODE_CDE_LIST
      RG_DRV_PROJ_MODE_CDE_LIST
      RG_PROJ_STATUS_CDE_LIST
      RG_DRV_PROJ_STATUS_CDE_LIST
      RG_ORG_SUB_TYPE_CDE_LIST
      RG_DRV_ORG_SUB_TYPE_CDE_LIST
      RG_REGION_NUM_LIST
      RG_DRV_REGION_NUM_LISTwhen the form hits on the clear button it invoke the CLEAR_FORM. i want to get all the record groups dynmically so i won't have to explicitly call the
      Delete_Group('RG_APPR_TYPE_CDE_LIST');
      Delete_Group('RG_DRV_APPR_TYPE_CDE_LIST');
      Delete_Group('RG_PROJ_MODE_CDE_LIST');
      ...one by one. is there any other workaround? i appreciate any help on this. thanks.

    is there any other workaroundNo.

  • How to fetch all the contact fields using Office365 REST API

    When I request for Contacts using webservices URL, Office365 returns only some specific fields (even though contact record has lot more fields). Is there any way so that I can fetch all the fields in contact record?

    Currently the REST APIs are limited to the fields you see now. We're constantly working to add more features though, so that might come in the future.

  • How to Keep all the Portal report menu's are "open" when the user logs on?

    Hi
    I have a question about the BI Portalu2019s configuration.  Does anyone know how to keep the Web Portal (i-vew) report menu's are "open" when the user logs on?
    Thanks.
    For example:
    Web Report Panel
    Report  Folder A 
                  i-view  a1
                  i-view  a2
                  i-view  a3
                  i-view  a4
                  i-view  a5
                  i-view  a6
    Report  Folder B 
                  i-view  b1
                  i-view  b2
                  i-view  b3
                  i-view  b4
                  i-view  b5
                  i-view  b6

    Hi,
    Thank you very much.  The problem is the Folder didn't 'open when the user logs on.  Yes, the iview can be openned.  Does anyone know how to set the default Open for the Folder.  My question is about the folder in BI portal.  Yes, the ivew we can set the defaul Open but we have Folder in the portal and our user wants to be able to see the report lists when they log on to the Portal.
    For example:
    Our Current situation
        Navigation Panel
       .>Act vs Plan report Folder_
       .>Year to Day report Folder_
    Hope To Be (When user logs on the BI Portal)
       Navigation Panel
        .>Act vs. Plan report Folder
            (i-view) Report A
            (i-view) Report B
            (i-view) Report C
            (i-view) Report D
            (i-view) Report E
    .>Year to Day report Folder
           (i-view)  Budget by Cost Element report
           (i-view)  Actual by Cost Center report
           (i-view)  Income statement report
           (i-view)  Balance Sheet report

  • Logging into forum through a java app

    I am trying to write a program to log into a forum..
    I do have some experience working with java, and I have been able to figure out how to connect to the URL, but I can't figure out how to input the user/pass through the java program.
    <table border="0" cellpadding="0" cellspacing="3" width="500"><tbody><tr>
    <td colspan="2" width="500"><b>Error:</b> You must login to access this forum. 
    Please login below, or <a href="http://*****.com/index.cgi?action=register">register</a>
    for an account.<br><br></td></tr><tr><td width="175">Username:</td><td width="175">
    <input name="username" size="20" tabindex="1" maxlength="18" type="text"></td><td width="150">
    <a href="http://*********.com/index.cgi?action=register">Create New Account</a></td></tr><tr><td width="175">Password:</td>
    <td width="175"><input name="password" size="20" tabindex="2" type="password"></td><td width="150"><a href="http://*****.com/index.cgi?action=forgotpassword">Forgot Your Password?</a></td></tr><tr>
    <td width="175">Stay logged in for:</td><td width="175"><select name="minutes" tabindex="3">
    <option value="15">15 minutes</option><option value="30">30 minutes</option><option value="60">1 hour</option>
    <option value="120">2 hours</option><option value="240">4 hours</option><option value="360" selected="1">6 hours</option>
    <option value="720">12 hours</option><option value="1440">1 day</option><option value="10080">1 week</option><option value="-1">Forever</option></select></td><td width="150"></td></tr><tr><td width="175"></td>
                                <td width="175"><font size="2">
                                  <input name="submit" type="submit" tabindex="4" value=" Login ">
                                </font></td>
                                <td width="150"></td></tr></tbody></table>that's the table for the login.
    any help would be appreciated, thanks!
    -Reid

    I am trying to write a program to log into a forum..
    I do have some experience working with java, and I have been able to figure out how to connect to the URL, but I can't figure out how to input the user/pass through the java program.
    <table border="0" cellpadding="0" cellspacing="3" width="500"><tbody><tr>
    <td colspan="2" width="500"><b>Error:</b> You must login to access this forum. 
    Please login below, or <a href="http://*****.com/index.cgi?action=register">register</a>
    for an account.<br><br></td></tr><tr><td width="175">Username:</td><td width="175">
    <input name="username" size="20" tabindex="1" maxlength="18" type="text"></td><td width="150">
    <a href="http://*********.com/index.cgi?action=register">Create New Account</a></td></tr><tr><td width="175">Password:</td>
    <td width="175"><input name="password" size="20" tabindex="2" type="password"></td><td width="150"><a href="http://*****.com/index.cgi?action=forgotpassword">Forgot Your Password?</a></td></tr><tr>
    <td width="175">Stay logged in for:</td><td width="175"><select name="minutes" tabindex="3">
    <option value="15">15 minutes</option><option value="30">30 minutes</option><option value="60">1 hour</option>
    <option value="120">2 hours</option><option value="240">4 hours</option><option value="360" selected="1">6 hours</option>
    <option value="720">12 hours</option><option value="1440">1 day</option><option value="10080">1 week</option><option value="-1">Forever</option></select></td><td width="150"></td></tr><tr><td width="175"></td>
                                <td width="175"><font size="2">
                                  <input name="submit" type="submit" tabindex="4" value=" Login ">
                                </font></td>
                                <td width="150"></td></tr></tbody></table>that's the table for the login.
    any help would be appreciated, thanks!
    -Reid

  • How to create a word document or a pdf through webdynpro java

    Hi All,
    I have a requirement where in i need to create a word/pdf document with a certain template form.
    When the user clicks on a  button then the word document with a template should be created and saved in his/her desktop.
    I need to know what is the procedure to create a document.
    If anyone has worked on it then please help me out.
    Thanks and Regards,
    Pradeep

    Hi Pradeep,
    For creating PDF documents in Webdynpro Java you can use  "iText.jar" .
    to know more about creating PDF using iText refer these links.
    http://www.brothersoft.com/downloads/itext-jar.html
    http://www.lowagie.com/iText/download.html
    Regards
    Sridhar

  • How to store all the columns values into one single column

    Hi All,
    this is my file layout,i am receiving the data in below format only
    emp_no,c1,c2,c3,c4,c5
    100 ,1 ,0 ,1 ,0,1
    200 ,1 ,0 ,1 ,0,1
    300 ,1 ,0 ,1 ,0,1
    but i want to store that above data into my table like(from c1 to c5 columns values i want to store in period column)
    emp_no,period
    100 ,1
    100 ,0
    100 ,1
    100 ,0
    100 ,1
    200 ,1
    200 ,0
    200 ,1
    200 ,0
    200 ,1
    300 ,1
    300 ,0
    300 ,1
    300 ,0
    300 ,1
    please help me

    Strange but this is it
    Processing ...
    with original as (
         select 100 as id ,1 as v1,0 as v2,1 as v3,0 as v4,1 as v5
         from dual
         union all
         select 200 ,1 ,0 ,1 ,0,1
         from dual
         union all
         select 300 ,1 ,0 ,1 ,0,1
         from dual
    select id,v1 as res_row
    from original
    union all
    select id,v2
    from original
    union all
         select id,v3
         from original
    union all
         select id,v4
         from original
    union all
         select id,v5
         from original
                      ID                                   RES_ROW
                                       100                                      1
                                       200                                      1
                                       300                                      1
                                       100                                      0
                                       200                                      0
                                       300                                      0
                                       100                                      1
                                       200                                      1
                                       300                                      1
                                       100                                      0
                                       200                                      0
                                       300                                      0
                                       100                                      1
                                       200                                      1
                                       300                                      1
    15 row(s) retrievedBye Alessandro

  • How to include all the child OU groups of a master OU group in LDAP authentication

    Dear All,
    I am using Apex 4.2 on windows server 2012 on internet explorer with database 11g R2 all 64 bit.
    we are using Microsoft Active Directory Authentication in our domain.
    I have created two protals, Staff Portal and Student Portal
    I have two groups, Staff and Students. these two groups coming under HCT group.
    I want to configure LDAP authentication for these groups, so that student cannot login to staff portal and vice versa.
    I had created on authentication schema in apex.
    inititally I configured as below
    for example I have a group ETC, inside ETC I have CSS in active directory,
    DN String=cn=%LDAP_USER%,dc=hct,dc=org
    Use Exact distinguish name=YES
    LDAP Username edit function=
    return apex_escape.ldap_dn (
                 p_string => :USERNAME,
                 p_escape_non_ascii => false ) || ',ou=users,ou=css,ou=etc,ou=staff,ou=hct'   ;
    Username Escaping=NO ESCAPING
    and it is working,
    now I have another group under ETC, which is ESS. how to include ESS also? I mean how to include all the child groups of a master group?
    because I will then only include the STAFF ou and the rest of the ou which coming under staff will come automatically.
    please refer to this thread for more details.
    Re: Re: Different LDAP authentication for Student and Staff Active directory groups
    Thank you.

    Powershell (or vbscript if you want to be old school).
    You can trigger a powershell script which will remove the offending user(s) easily enough with out resorting to a TOLDAP pass.  Nearly any script type thing would work but powershell is preferred.  It can be triggered separately from the TO AD stuff and will take multiple objects to run in one pass if you can construct the command line (or create a text file and feed it in).
    Otherwise, TOLDAP is the way to write to AD...
    Peter

  • How can I fetch all the PCD roles from EP!

    Hello,
    I need to fetch all the available pcd roles in EP. Right now I am trying to fetch pcd roles under Portal Content directory. I need a clarification whether this is the only place the pcd roles are available or is there any other location where rest of the pcd roles are available?
    Thanks in advance,
    Prashanth V Swamy

    Hi Prasanth,
    See the code below to retrieve all the pcd roles.
    public List getPCDContents(IPortalComponentRequest request) throws Exception{
                   try{
                        Hashtable env = new Hashtable();
                        env.put(IPcdContext.SECURITY_PRINCIPAL, request.getUser());
                        env.put(Context.INITIAL_CONTEXT_FACTORY,IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
                        env.put(com.sap.portal.directory.Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);
                        InitialContext ctx = null;
                        DirContext dirCtx;
                        List roleList = null;
                        ctx = new InitialContext(env);
                        dirCtx = (DirContext) ctx.lookup("pcd:portal_content/");
                        PcdSearchControls pcdSearchControls = new PcdSearchControls();
                        pcdSearchControls.setReturningObjFlag(false);
                        pcdSearchControls.setSearchScope(
                             PcdSearchControls.SUBTREE_WITH_UNIT_ROOTS_SCOPE);
                        dirCtx.addToEnvironment(
                             Constants.APPLY_ASPECT_TO_CONTEXTS,
                             Constants.APPLY_ASPECT_TO_CONTEXTS);
                        NamingEnumeration ne =
                             dirCtx.search("","(com.sap.portal.pcd.gl.ObjectClass=com.sapportals.portal.role)",
                                  pcdSearchControls);
                        iViewList = new ArrayList();
                        while (ne.hasMoreElements()) {
                             IPcdSearchResult searchResult =
                                  (IPcdSearchResult) ne.nextElement();
                             String location = "pcd:portal_content/" + searchResult.getName();
                             //Get the full pcd path of the iview.
                             roleList.add(location);
                        return iViewList;
                   }catch(Exception e ){
                        throw new Exception(e);
    Hope it helps.
    Regards,
    Karthick

  • After reinstalling game, the achievements from Game Center doesn't uploaded to the game and starts from the beginning . All the achievements are seen in the Game Center . How could I upload the last progress into the game?

    After reinstalling game, the achievements from Game Center doesn't uploaded to the game and starts from the beginning . All the achievements are seen in the Game Center . How could I upload the last progress into the game?

    Hello there, Elena Lyubina.
    The following Knowledge Base article offers up some great steps for troubleshooting issues with an application not functioning as expected:
    iOS: An app you installed unexpectedly quits, stops responding, or won’t open
    http://support.apple.com/kb/ts1702
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • HT1725 I downloaded an album and all of the tracks will play about 3/4 of the song then stop and play the next song.  I went to itunes store and it said the songs fully downloaded. So how do I get the full song into my library?

    I downloaded an album and all of the tracks will play about 3/4 of the song then stop and play the next song.  I went to itunes store and it said the songs fully downloaded. So how do I get the full song into my library?

    If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copies of the tracks and try redownloading fresh copies. For instructions, see the following document:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Otherwise, I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the items that are not playing properly. If you can't see "Report a Problem" next to the items, click the "Report a problem" button. Now click the "Report a Problem" links next to the items.

Maybe you are looking for

  • How to know the filename and extension of a file in PKCS7  envelope

    Hi! I've a programm that makes a PKCS7 file. I'm enveloping just one file at a time. I want to know if there is a way to know the filename and extension of the file INSIDE de PKCS7 envelope. Because I receive a file that has .p7 extension, but the re

  • When I copy say something from a web page how then can I paste it and where to ie pages/messages etc on my ipad

    when I copy say something from a web page how then can I paste it and where to ie pages/messages etc on my ipad

  • HT4061 how to downgrade ios6 to ios5?

    I just updated my iphone 4 to ios6 but I cannot connect thru itunes. because itune needs to update to 6.03 version. thing is my mac is old version like 2007 macbook pro so I can't upgrade my os to 10.6 +... Can anyone tell me how to downgrade my ipho

  • Problems with installing Quicktime

    I keep recieving the error messege "The module vbscript.d11 failed to load. Make sure the binary is stored at the specific path or debug it to check for problems with the binary or dependent DLL files. The specified module could not be found." Can an

  • N73 Cannot get into menu

    When I click the left menu button, the screen gets lighter and in the top left corner is a small box with a standby icon inside it. How do I bring back the menu to when the menu button is clicked so the box no longer appears? 2 x e63 brilliant! 1 x 6