How to create visitor roles programmatically

Could you please help me how to create visitor roles programmatically using weblogic portal.
Thanks in advance

Hi,
Point this method to the selectItems under selectonechoice.
        if (yourList == null) {
            (yourList = new ArrayList();
            DCBindingContainer bindings = ADFUtil.getDCBindingContainer();
            DCIteratorBinding iteratorbinding =
                bindings.findIteratorBinding("yourVO1Iterator");
            if (iteratorbinding != null) {
                Row[] rows = iteratorbinding.getAllRowsInRange();
                String value = null;
                Long key = 0L;
                for (Row row : rows) {
                    value = (String)row.getAttribute("Attrib0");
                    key = (Long)row.getAttribute("Attrib1");
                    yourList .add(new SelectItem(key.toString(), value));
        return yourList;
Thanks
Nitish

Similar Messages

  • CRM 7.0 How to create Business role & generate

    Hi Team,
    Can you please let me know some breif idea about CRM 7.0 security guide.
    How to created Business role is this part of functional activity?
    Whats the role of Technical colleagues BASIS guys in CRM 7.0 security .
    Please help me to get some document regarding business role creation , generation , assignment & authorization checks in CRM 7.0.
    Thanks & Regards,
    Vyash Mishra

    Hello Viyash
    I will add the most important information for generation of business roles and assignment of authorizations to users.
    You must first create the PFCG roles. PFCG role is built based on the Business Role.
    Please see documentation in : SPRO
    SAP Implementation Guide =>  Customer Relationship Management
    UI Framework  > Business roles > Define Authorization Role
    Then the PFCG role can be assigned to the business role in 
    SAP Implementation Guide =>  Customer Relationship Management
    UI Framework  > Business roles > Define Business role
    Finally you must assign business roles to Organizations or positions in organizations in
    SAP Implementation Guide =>  Customer Relationship Management
    UI Framework  > Business roles > Define Organizational Assignment
    The users that are assigned to such organizations / positions will be therefore linked to the business role.
    With the previous steps the users will have the authorizations that are assigned to the PFCG profile that is linked to their business role.
    Business roles are the main way to configure authorizations for users in CRM but you have more options that give you flexibility.Each business role has assigned one PFCG role, but the relationship between business role and PFCG role is not strict. You can even assign a dummy PFCG role to a certain business role in business role customizing and then go to transaction PFCG and assign other PFCG role(s) to the users that are assigned to that business role.
    I would say that the previous tasks must be performed by the basis team but in cooperation with the functional team
    Best Regards
    Luis Rivera

  • How to create an IDoc programmatically at Inbound side?

    Hi,
    How to create an IDoc programmatically at Inbound side?
    Assume that you have a file(material master details) which is enough to create master data.
    Regards,
    Thiyagu

    Read the documentation of this FM first:
    FU IDOC_INBOUND_ASYNCHRONOUS                                                                               
    K. tekst
                                                                                    IDoc inbound processing via tRFC                                                                               
    Functionality
                                                                                    This function module starts inbound processing in the case of port type    
        "tRFC". The function module is a successor to INBOUND_IDOC_PROCESS,        
        which processes IDocs in the Release 4.0 record types. If you are          
        processing IDocs in Release 3.X record types, the function module          
        INBOUND_IDOC_PROCESS must still be called.                                                                               
    The function module checks the ID 'EDI_MES' in authorization object        
        B_ALE_RECV against the received message type.                                                                               
    The IDocs are saved by the function module IDOC_INBOUND_WRITE_TO_DB (a     
        COMMIT for all IDocs) and then transferred directly to the application     
        by the dispatcher module IDOC_START_INBOUND.                                                                               
    Parameter
                                                                                    IDOC_CONTROL_REC_40                                                        
        IDOC_DATA_REC_40                                                                               
    Exceptions
                                                                                    Functiegroep                                                                               
    Edited by: Micky Oestreich on Jun 11, 2009 12:52 PM

  • How to create authorization role for just displaying query prefix Q and X.

    Hi Expert,
    I hope someone can help me on how to create authorization role for just displaying and executing  BEX  Queries prefix Q and X. I'm currently using SAP BI 7.1.
    Actually, I already created one role called : Z_FORINDO_ONLYDISPLAY_QX
    where I only put in the Authorization Component (in the Role Maintenance - Tcode 'pfcg'):
    -->Manually Business Information Warehouse
        --> Manually Business Explorer - Components
    Activity : Display, Execute, Enter, Include, Assign
    InfoArea : *
    InfoCube : *
    Name(ID) of a reporting component : *
    Type of a reporting component : Calculated key figure, Restricted key figure, Template structure
        --> Manually Business Explorer - Components
    Activity : Display, Execute
    InfoArea : *
    InfoCube : *
    Name(ID) of a reporting component : Q* , X*
    Type of a reporting component : Query
    But, the problem is I still can make changes on that queries (Q* and X*). Even, I still can run query with prefix Z. I use S_RS_RREPU Tamplete for Query Display and execution.
    Please assist. Very much appreciate your help. Thanks.
    Edited by: nadiyah salleh on Mar 18, 2008 11:22 AM

    Question close. This issue has been resolved.

  • How to create a role in EP

    Hi All,
    I am new to EP, Please let me know how to create a role in EP and how to map ABAP based roles to EP.
    Thanks a million

    Hi Ayub,
    I would suggest that you check out the Documentation at:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/4f/bceaffeb8c114ebef8255b63079c7c/frameset.htm">Roles and Worksets</a>.
    I found this by searching for "create role portal" in the SDN Search.
    Regards
    Gregor

  • How to creating a role configuration key, nd how to assigning it to our bus

    how to creating a role configuration key, nd how to assigning it to our business role?
    advance thanks..

    Hello Suri,
    To create the Role Key
    In the SPRO CRM - UI Framework - Technical Role Definition - Define Role Configuration Key
    Then to assign the Business Role in the
    In the SPRO CRM - UI Framework - Business Roles - Define Business Role
    The field  for the Role Key is Config Key
    Regards.

  • Document on How to Create Single Roles in ecatt

    I have created a document displaying how to create single roles using ecatt.
    I hope this helps.
    How do I add the file to this thread?
    Message was edited by:
            Mohammed Junaid Khan

    hi Junaid,
    I don't think u can save files here. U can give links here.
    If possible, can you please send that file to me through mail to [email protected]
    I am getting error while creating a ecatt script in BI 7.0 system for creating roles.
    Hopes yours may help.
    thanks,
    venkat

  • How to create OID role

    How to create OID role from OIDDAS or commandline?

    Can you be more specific?
    What kind of role do you want to have? Would you have a role for a user to administer the OID or for your application which uses a role in the OID?
    cu
    Andreas

  • How to create e Role Menu in WAD?

    Hi Gurus,
    I was reading a document about WAD, and mentioned the "Role Menu" web item, so i tried to configured in my web template but i could do it.
    This is the HTML code that im using:
    <P><object>
    <param name="OWNER" value="SAP_BW"/>
    <param name="CMD" value="GET_ITEM"/>
    <param name="NAME" value="ROLEMENU_1"/>
    <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_MENU"/>
    <param name="WIDTH" value="150"/>
    <param name="CLOSED" value="X"/>
    <param name="GENERATE_CAPTION" value=""/>
    <param name="ROLE_1" value="ZMYROLE"/>
    <param name="FILTER" value="PYR"/>
    <param name="HEIGHT" value="400"/>
    <param name="BORDER_STYLE" value="NO_BORDER"/>
    <param name="IFRAME" value="X"/>
    <param name="HIERARCHY_COLOR" value=""/>
    ITEM:            ROLEMENU_1
    </object></P>
    So, Can anyone tell me , How can i create a role menu in a web Template?

    All you have to do is use the role menu web item and do not set it equal to any roles.  Once you logon to the web template,it will show you all available queries, web templates, URLs, Crystal Reports, etc...  this can be filtered out.  Are you receiving any errors?
    Jeff

  • How to create a role-playing Date dimension?

    I have created a date dimension Date_Dim with three levels DayL, MonthL, YearL and one hierarchy YearL-Monthy-DayL. In the fact table, I need to refer to two date dimension: Start_Date and End_Date. For the Start_Date, we can refer it to the created physical date dimension Date_Dim. For the End_date, Ralph Kimball recommended to use a role-playing dimension. That is, create a view End_Date_Vw from the dimension table Date_Dim. My question is how to create it in OWB? Should we need to define the levels and hierarchies for the view in order to leverage the query-rewrite power? How to do that? Any advice or information is appreciated.
    Lushu

    Balaji,
    You can refer to the same dimension more than once in the design of a cube (fact table). In a star schema implementation, you just end up with multiple foreign keys to the same times dimension (table). Once you integrate with a reporting tool, you refer to the same dimension using different names. Warehouse Builder supports this in the integration with Oracle Discoverer. The user's guide tells you how to do this (see http://download-west.oracle.com/docs/html/B12146_01/integrating.htm#sthref3659).
    Thanks,
    Mark.

  • How to create a role using profile SAP_ALL

    I want to create a role which has the same authorizations as SAP_ALL except several tcodes.Because SAP_ALL is not a role ,I can't do it by the way of copying role. how should I do?

    Hopefully you do not believe that this is sufficient ...
    If you've left the S_DEVELOP authorizations users that are assigned to that role still can perform any action - simply because they can develop own coding or modify existing coding ... (respectively: using the debugger to bypass AUTHORITY-CHECKs).
    Please keep in mind: the role concept is driven by the business scenario perspective (e.g. role "purchaser", "HR staff", "user administrator", etc.). All the technical details are derived ("hidden" as detail). Your approach is performing the opposite: using a technical vehicle and wrapping a role around it.
    Furthermore: you have chosen a very special "authorization profile" (SAP_ALL). In real life there is no employee that is entitled to do "everything". Even the CIO is not entitled to perform any action (e.g. he should not be authorized to perform just any technical operation - e.g. database reorganization). Just because it is not his "role" (in the company).
    => there is no "SAP_ALL" role in real life

  • How to create different roles into a single profile

    Hi All,
    I would like to create different roles and add all them to a single pofile. But when I try, it is asking for a profile name for every role that I create.
    I have also tried to give the same profile name while creating a second role, but it is giving me error that the profile name already exists.
    Can someone help to get some clarity on this?
    Thanks
    Vijay

    Hi,
    I agree with you. But, whenever I try to create a single role, it is asking for a profile name that has to be assigned to that particular single role. I cannot go further until I give a profile name.
    How can I create a single role without creating a profile?
    Thanks
    Vijay

  • Re How to create applications roles

    hi all
    can anyone guide me about applications roles that how to create in databse and how to assign?
    thanks in advance
    sarah
    Edited by: SarahSarahSarah on Sep 4, 2009 4:54 AM

    hi all
    i created the application roles like this
    SQL> connect sys/sara as sysdba;
    Connected.
    SQL> create role applicationrole;
    Role created.
    SQL> connect sarah/sara@orcl
    Connected.
    SQL> grant select,insert on ins1 to applicationrole;
    Grant succeeded.
    plz guide me am i doing right or wrong and plz guide me now this role how to assign?
    sarah

  • WLST 92 - How to Create Global Role and Role Condition?

    I'm currently using WLS 9.2 and trying to use WLST to create a global role and defining a role condition. Anyone know how to do so using WLST for WLS 9.2?
    Trying to:
    - create Global Role, testRole
    - create condition where 'username = testuser'
    thanks!

    Did you find out a solution for this?

  • How to create database roles  ?

    Hi ,
    i am trying to create database roles,
    what is the best way to do that ?
    I want to be able to create the following database roles on my local machine:
    CSDExec
    CSDAdmin     
    TCFBurOps     
    TCFAreaLieutenants     
    TCFCourtSupervisors
    More to this problem, each role will be accessing an X number of tables , not all.
    Also, I will be creating the same roles on the Dev Box at the client site.
    What is the best way to do it in ?
    Should I use a procedure, package, etc.
    Please help me with examples:
    This is my first time creating database roles.
    I am using SQL Developer
    thanks,

    Hi,
    For things like that, I use SQL*Plus scripts, containing the CREATE ROLE and GRANT commands.
    Often, in the Development database, I build these scripts a little at a time, commenting out commands after I've done them. Then, when I'm ready to make the changes in the Test and Production databases, I remove the comments.
    For example, on Monday I may create a role and grant some privileges, so I write and run a script like this:
    CREATE ROLE     firbolig_user;
    GRANT SELECT      ON  table_x      TO firbolig_user;
    GRANT EXECUTE      ON  pkg_a       TO firbolig_user;On Tuesday, I create another table, and schange the script to this:
    /*     *****  This section has already been done in Development  *****
    CREATE ROLE     firbolig_user;
    GRANT SELECT      ON  table_x      TO firbolig_user;
    GRANT EXECUTE      ON  pkg_a       TO firbolig_user;
    GRANT SELECT      ON  table_y      TO firbolig_user;and run it.
    On Wednesday, I decide I need another role, so I change the script to this:
    /*     *****  This section has already been done in Development  *****
    CREATE ROLE     firbolig_user;
    GRANT SELECT      ON  table_x      TO firbolig_user;
    GRANT SELECT      ON  table_y      TO firbolig_user;
    GRANT EXECUTE      ON  pkg_a       TO firbolig_user;
    CREATE ROLE     firbolig_admin;
    GRANT          firbolig_user     TO firbolig_admin;
    GRANT SELECT, INSERT, UPDATE, DELETE
              ON table_x     TO firbolig_admin;
    GRANT SELECT     ON table_z     TO firbolig_admin;
    GRANT SELECT     ON x_seq     TO firbolig_admin;and run it.
    I continue like that through the development process.
    Then, when I'm ready to move to the Test database, I remove the comment lines and run the entire script in Test.

Maybe you are looking for