Roles in forms

i have created roles in database successfully....when i try to
connect through same users by forms 5.0 after applying menu and
menu item security thing....i get an error
user is not entitled to run form builder...contact your DBA...
being developer how can i remove this error
and losg-on to the same application by different users having
granted differnt roles thus privileges
thanks in advance

FORMS_DDL('SET ROLE MY_ROLE [IDENTIFIED BY PWD]');
enables the given role and disables all others.

Similar Messages

  • Customizing Role creation form??

    Hi,
    We have requirement to customize the Role creation form. We have to store extra information in the role object. I know that we can store extra information by using properties attrinute of the Role. But the question is how to expose this to administrators through UI?
    I don't find any form mapping for role creation in the "Forms and Process Mappings" section. Anybody knows how to achieve this requirement? What is the default form used for role creation?
    Thanks in advance.

    There's a userForm configuration object called "Role Form" that is used when you create a new Role.
    You can add a new field to this form like so;
    <Field name='properties.Department'>
    <Display class='Text'>
    <Property name='title' value='Department'/>
    <Property name='disabled'>
    <Boolean>true</Boolean>
    </Property>
    </Display>
    </Field>
    Then the Department attribute will be saved against the Role attribute.
    Is this what you're looking for?
    Cheers,
    Paul

  • Easy Question: How to identify user roles within form?

    Hi folks,
    I would like to display/hide button which calls static data maintenance form (from other form) based on current user roles.
    If user has role "STATIC_DATA" granted then DISPLAY button (which calls static data form), else DO NOT DISPLAY it.
    Any example, how to get user roles within form?
    Thanks,
    Tomas

    I can do it with below code:
    declare
      l_cnt number;
    begin
      select count(*)
         into l_cnt
         from user_role_privs
      where granted_role = 'STATIC_DATA';
      if l_cnt > 0 then
            -- display it
      else
         -- do not display
      end if;
    end;I think, above should work.
    Thanks,
    Tomas

  • How can I set roles in Forms?

    I have a user granted with diferents roles, is there any posibility when he log on to the application( IN FORMS) to force him to choose with which role he would wants to work and start the application as if he had been granted only with this role?

    FORMS_DDL('SET ROLE MY_ROLE [IDENTIFIED BY PWD]');
    enables the given role and disables all others.

  • How to find the "role" in forms 6i

    I need to find what roles does a user has from forms (roles such as "admin, reguser...etc...roles that i created"
    For example, i can find the following but i don't how to get the "roles"
    DECLARE
    UN VARCHAR2(80);
    PW VARCHAR2(80);
    CN VARCHAR2(80);
    BEGIN
    :global.UN := GET_APPLICATION_PROPERTY(USERNAME);
    :global.PW := GET_APPLICATION_PROPERTY(PASSWORD);
    :global.CN := GET_APPLICATION_PROPERTY(CONNECT_STRING);
    End;
    Thank you in advance.

    Hello,
    I made it in the following way:
    I have several roles that are granted to the user but
    are not default_roles. That means they must be enabled
    with the application.
    declare
    cursor c1 is select
    GRANTED_ROLE from user_role_privs
    where default_role = 'NO';
    rolen_name varchar2(30);
    rolen_alle varchar2(2000);
    i number := 0;
    BEGIN
    open c1;
    loop
         fetch c1 into rolen_name;
         exit when c1%NOTFOUND;
         i := i+1;
         if i = 1 then
         rolen_alle := rolen_alle || rolen_name;
         else
         rolen_alle := rolen_alle || ',' || rolen_name;
         end if;
    end loop;
    close c1;
    if i >= 1 then
    DBMS_SESSION.SET_ROLE(rolen_alle);
    end if;
    END;

  • Grant privileges, roles within Forms

    Hello,
    i have a forms application where each year can appear new users (e.g. employees), and i when a new employee appears i wanna grant him privileges, roles, etc within Forms. so is it possible having a form(accesible just for dba user) from where he can assign roles to another users ? (in employee table i have a column 'username'). also, when i insert a new employee, in post-insert query (i think) is it possible to have something like
    create user .... identified by ....... but here is a problem.. where can i write the password?
    Please clarify :)
    Regards,

    Roger22 wrote:
    but when i run the script how can i specify the password?what do you mean by specify the password? What's exactly your problem/requirement with specifying the pw?
    You can do this in forms using forms_ddl, but I'd use a database procedure for this which creates the user, does the granting stuff etc.
    e.g.:
    create or replace procedure createUser(ivUsername in varchar2) is
      cursor cGrants(cvUsername varchar2) is
        select 'grant '||decode(object_type, 'TABLE', 'select, insert, update, delete ', 'PROCEDURE', 'execute ', [...])|| ' to '||cvUserName as grant_stmt,
                 'create synonym '||object_name||' for '||cvUserName||'.'||object_name as syn
        from user_objects
        where object_name != 'CREATEUSER'
        and object_name not in (select synonym_name from all_synonyms where owner = upper(cvUserName);
    begin
      execute immediate 'create user '||ivUserName||'identified by '||ivUserName||' default tablespace my_tbs temporary tablespace my_temptbs quota unlimited on my_tbs';
      execute immediate 'grant connect, resource to '||ivUserName;
      for rGrants in cGrants(ivUsername) loop
        execute immediate rGrants.grant_stmt;
        execute immediate rGrants.syn;
      end loop;
    end;
    /A user with pw = username get's created (maybe you should provide your users a pw change functionality to change their passwords afterwards), he gets granted all the privilages to objects from the current user, and also synonyms get's created (if you want to use this the calling user should have the create any synonym privilage). Beware: If you want to do this you MUST NOT grant this procedure to the other users (so object_name != 'CREATEUSER') or use any other database procedures in it, as you'll get a lock when executing the grant statement and the procedure hangs.
    If you want to manage more schemas, you could create this procedure with the system user, modify the cursor to do a query on all_objects and restrict it to the schema from where you want to grant the privilages to (grant execute on schema.object to user), and pass the schema and the user to create to it.

  • Role Based Forms in Service Manager

    Is it possible to customize the Service Request form, and make the customizations available to only certain users based on their role?

    Hi,
    I would add the customization to the separate tab and show this tab only for the users in the required group. Refer to Rob Ford's
    post.
    Cheers,
    Marat
    Site: www.scutils.com  Twitter:
      LinkedIn:
      Facebook:

  • Don't want to assign Admin role to form with business rule

    Hello,
    I have a business rule assigned to a form in EPMA mode. Currently, I have to assign Admin role to the users in order for them to see the name of rule display on the left side of the panel when the form is opened. How can I have the name of rule display for users without having to assign them as Admin role in EPMA mode?
    FYI .. This same form with attached rule was displaying just fine for these users as I assigned them as regular user (not admin role) under a specific user group folder for Classic mode. These users can change data, click save button, and then the rule would run on save.
    Thank you so much for sharing.

    John .. Thank you so much for your previous reply.
    Here is additional information. I hope it provides a clearer understanding on this issue.
    1) To answer your question - Yes, I used Calc Manager to create the business rule named xyz.
    2) The Shared Services version that I used to provision a test user is 11.1.1.3.24.
    3) Here are the steps that I did for testing:
    step a) in Shared Services - I created a test user named: cashtest (Native status)
    step b) in Shared Services - I provisioned user "cashtest" with the following roles for these categories
    Business Rules -> Server 123 -> Interactive User
    Essbase: Server abc:1 -> Server Access
    Foundation -> Shared Services -> Calculation Manager Administrator -> Planning Calculation Manager Administrator
    Planning -> Forecast -> Administrator
    As you can see under the Planning category for application "Forecast", I had to provision for user "cashtest" as "Administrator" in order
    for user "cashtest" to see the business rule named "xyz" displayed on the left panel when a form was opened.
    Prior to this "administrator" provisioning, I tried to provision the roles of "interactive user or Planner" to user "cashtest" but the business
    rule would not display on the left panel when a form was opened.
    I wonder if this is a software bug.
    Thank so much again for your guidance.
    Edited by: CubeQuestion on May 12, 2010 4:09 PM

  • Get user and user-roles in form based authentication

    How do I get user and roles associated with the user in my bean for "form based authentication".
    regards,
    nirvan.

    HttpServletRequest#getUserPrincipal().
    This has nothing to do with JSF. Form based authentication is part of Servlet spec.
    In JSF you can get the HttpServletRequest by ExternalContext#getRequest().

  • GRC CUP - How to add a custom field in "Select Roles/Groups" form

    Hi Forum,
    I created a custom field "REGION" in CUP configuration. I used this field in "Role Attributes"
    In "New Account" workflow, when i click on Select Roles/Groups" a screen for Select Roles/Groups will display to select the roles by different combinations.
    I need this "REGION" field in the above selection creria to select roles by REGION.
    How to make this field "REGION" appear in above selet cretiria.
    Thanks,
    RAM
    Edited by: Ram.Sathish on Apr 21, 2011 3:46 PM

    you can not add custom fields in the search, have you thought about using the company field as the fied for location?
    Regards,
    Chinmaya

  • Multiselect values in "current values" on form load

    Hi,
    I have a multi select field for 30 roles in the form. Now, i want 28 roles to appear on the right hand side (current Roles) on form load and the rest 2 to appear under available Roles.
    How can i do this? Please let me know.
    Thanks,

    Here u go..
    <Field name=':variables.currentroles'>
    <Display class='MultiSelect'>
    <Property name='title' value='Roles'/>
    <Property name='selectedTitle' value='Selected roles'/>
    <Property name='availableTitle' value='Available roles'/>
    <Property name='allowedValues'>
    <ref>:variables.unassignedroles</ref>
    </Property>
    <Property name='allowOthers'>
    <Boolean>true</Boolean>
    </Property>
    </Display>
    </Field>

  • Deassignment of users from roles

    Hi,
    We have a couple of users in our system who are assigned to some standard SAP roles.
    These roles are themselves not composite roles , but form a part of some composite roles.
    Now when I try to deassign the "blue" users from these roles, it's not possible.
    How do I go about it?
    Please help.
    Thanks,
    Saba.

    Hi,
    Both ways its not possible.
    When I remove the user from the role, it comes back after user comparison:((
    & the role refuses to get deleted from the user.
    Also, both appear in blue.
    Plsss. help..
    Thanks,
    Saba.

  • How to grant role to user

    How can use Oracle Developer2000 Form6 to grant priveledge and role to user in database (oracle 8i) from Trigger of Form6. Is there any built-in about this statement?

    PL/SQL doesn't allow you to issue DDL commands directly, but it does provide a utility package called DBMS_SQL. This allows you to create dynamic SQL statements at runtime and execute them. The code you would need are as follows:
    In declaration section -
    v_sql varchar2(200);
    v_cursor number;
    v_result number;
    In the code body -
    v_sql := 'GRANT <ROLES> TO <USER>';
    v_cursor := dbms_sql.open_cursor;
    dbms_sql.parse(v_cursor, v_sql, dbms_sql.native);
    v_result := dbms_sql.execute(v_cursor);
    You can ignore the value of v_result as it is not a DML statement. Also you could build your SQL string up dynamically using variables from your form ie:
    v_sql := 'GRANT '||:FORM.ROLE||' TO '||:FORM.USER;
    Hope that helps!
    Ian

  • New Authorization Object within Role

    hi everybody,
    does anyone know how can i get New Authorization Objects for any Role for the new release that did not exist in the same Role from former release?
    tables AGR_1250 and AGR_1251 do not show if object is new for this role. they only show if object is new itself.
    thanks a lot,
    javier rubio

    pandu,
    se54 is not related with this topic.
    thank you very much for your answer, very hepful

  • How to detect Role Environment

    Hello,
    I want to know how to detect Role Environment is staging or production in web role. i am doing project in Azure cloud with asp.net

    Hi Vikas,
    You could use Azure Management API to get the deployment configuration. For example, You could use
    'Get Deployment' to get a deployment information. And you could get the role environment form the 'DeploymentSlot' . About how to detect the Environment, I suggest you
    could refer to those post:
    http://stackoverflow.com/a/4330628
    http://stackoverflow.com/a/7111195
    And I suggest you could see this code sample from this page:
    http://convective.wordpress.com/2009/12/19/service-management-api-in-windows-azure/
    Hope this helps.
    Will 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Phone stuck on connect to itunes screen after update attempt

    Hi, hope someone can help me. I connected my iPhone to my computer to transfer my photos from the phone to the PC. I have automatic syncing turned off. When I connected, I was prompted to update the iTunes version, which I did. It's now version 9. Th

  • Item text and item note are not transfering from SRM to ECC on to PR

    Hello Expers!!! Due to some requirement we added some logic in BBP_CREATE_BE_RQ_NEW to print the used ID of the shopping cart creator on PR under item text requisitioner tab. but after moving these changes to production the item text(Vendor text) and

  • Shuffle Playlist Problems

    I am currently on my second ipod shuffle, and I am having a strange problem. Every time I turn the shuffle on, it restarts from the beginning of the playlist, instead of continuing from where it last played. What could cause this problem, and what co

  • Evaluating a String to XML element

    we had a xquery function getProductRepo($columnSelect as xs:int) as ns0:productVal for $productval in ns11:getProductVal() return <ns0:ProductVal> <repo1>fn:data($productval/val)</repo1> <repo2>fn:data($productval/val)</repo2> <repo3>fn:data($product

  • Oracle Apps Installation

    Hi all,    I downdoaled Fusion  version of oracle apps. I am planning to install. Can you please point me to the correct documentation to find the follow-up. Thank you Venky