Enable/Disable Button Depending On User Role

Hi all,
I have some buttons in a portlet. I have consumed this portlet in a webcenter portal application. Now i want to disable/enable these buttons according to the user role. How can i achieve this??
Thanks,
Dhiraj

Thinking aloud,
- should the button be a resource from Webcenter, you could modify its visibility (property) via EL: #{WCSecurityContext.userInGroup['Administrators']} will display the button only if the user is in Administrators group
- does your portlet have a parameter like that? If so, you should be able to fill it in with EL. If not, I doubt you will be able to achieve visibility changes - you might try to contact the producer of your portlet to do the necessary changes, though.

Similar Messages

  • Enabling/disabling buttons problem

    Hello,
    I'm using jdev 10.1.3.3.0 and I want to enable/disable buttons based on the value in a tableSelectOne. I wrote a function isNextButtonEnabled() in my backing bean and I have set the disabled option of the nextButton (=CoreCommandButton) to #{!backing_bean.nextButtonEnabled}. Then I putted the autoSubmit option of the TableSelectOne to true and made a partialTrigger on the nextButton to the TableSelectOne. In the print statements everything is fine, but it is never displayed.
    Does anyone know what to do about this.

    Well,
    the nextButton is in a cellFormat which on itself is in a HtmlRowLayout. I putted partial triggers on the cellformat, the rowLayout and the panelPage to the TableSelectOne, but this doesn't do the trick neither. Strange.

  • Trigger enable/disable button

    Does anyone know why sometimes when a trigger is created you get an "enable/disable" button and sometimes you don't?
    We are on Application Express 3.1.2.00.02

    Sue:
    Good question. I see similar behaviour with my 3.1.2.00.2 APEX installation.
    I do not know the answer. Could possible be a bug.
    Varad

  • I want to give enable a button for a user and disable for others in tcode

    Hi all ,
    I want to give authorisation based on user for TCODE : CCO02 where i enter Production Order.
    After clicking enter button in the next screen for the Total order quantity Icon i want to assign Authorisation to enable to one user and to set in disable mode to other users.
    Pls kindly give suggestions.
    Thanks

    Hi,
    Is it a standard icon or customized? If its a standard icon your basis administrator can enable or disable the icon by giving proper authorization.
    Regards,
    Raj

  • Showing or hiding buttons/ enabling text boxes depending upon security role in Portal

    Hi All,
    Is it possible to show or hide ceratin text box or buttons depending on the security
    role of the user ? Let's suppose we have screen with buttons update, delete. Now
    we want that when a administrator logs in he will see a screen with data in editable
    text boxes and update and delete button. In case of normal user, only the phone
    no. will be editable and he can't see the delete button.
    Is it possible using portal feature ?
    Any suggestion is welcome.
    TIA,
    Sudarson

    Sudarson,
    Not that I know of. If you'd like to eloborate on the feature you're
    building I can log an enhancement request for you.
    Sincerely,
    Daniel Selman
    "sudarson" <[email protected]> wrote in message
    news:3c5f698e$[email protected]..
    >
    Hi Daniel,
    Thanks for the reply. I think, I should elaborate my query.
    Yeah, programattically we can do the stuff. But my question is that isthere any
    such feature in weblogic portal so that in stead of using is UserInRoleand doing
    it programatically, we can do it thru portal, thus having bettermaintainability.
    >
    Regards,
    Sudarson
    "Daniel Selman" <[email protected]> wrote:
    Sudarson,
    Yes this is possible. You can programmatically check the logged in user's
    role within your JSP and react accordingly (all standard J2EE). You
    should
    do this with caution however as you could quickly create a maintenance
    problem for yourself. Declarative security externalizes all security
    settings (groups. permissions etc.) away from application code and is
    usually to be preferred.
    Programmatic security through EJB mechanisms such as the SessionContext
    isCallerInRole and getCallerPrincipal methods and web-tier methods
    getRemoteUser, isUserInRole and getUserPrincipal.
    http://java.sun.com/j2ee/j2sdkee/techdocs/guides/ejb/html/Security5.html
    Sincerely,
    Daniel Selman
    "sudarson" <[email protected]> wrote in message
    news:3c5e81cf$[email protected]..
    Hi All,
    Is it possible to show or hide ceratin text box or buttons dependingon
    the security
    role of the user ? Let's suppose we have screen with buttons update,delete. Now
    we want that when a administrator logs in he will see a screen withdata
    in editable
    text boxes and update and delete button. In case of normal user, onlythe
    phone
    no. will be editable and he can't see the delete button.
    Is it possible using portal feature ?
    Any suggestion is welcome.
    TIA,
    Sudarson

  • Enable/disable textbox depending on list option, list is dependent on Radio

    Hi,
    I'm trying to enable/disable text_box which is dependent on select_list option, select_list is dependent on radio_button.
    I'm able to enable/disable select_list using radio_button options, but I'm unable to handle text box which is again dependent on this SELECT_LIST item.
    under html header page:-
    <script type="text/javascript">
    function disableOnValue(o)
    if (o.value == 'Y')
    document.getElementById('P86_Select_list_item').disabled = false;
    else
    document.getElementById('P86_Select_list_item').disabled = true;
    document.getElementById('P86_text_box_item').disabled = true;
    </script>
    <script type="text/javascript">
    $(document).ready(function()
    $('#P86_Select_list_item').change(function()
    if($(this).val() == 'Other')
    $('#P86_text_box_item').attr("disabled", false);
    else
    $('#P86_text_box_item').attr("disabled", true);
    </script>
    under Region_Source of the region, whose Display point :- <b>Before Footer</b>
    <script type="text/javascript">
    if(document.getElementById('P86_radio_button_0').checked == true)
    {disableOnValue(document.getElementById('P86_radio_button_0'));}
    else
    {disableOnValue(document.getElementById('P86_radio_button_1'));}
    </script>
    and under Radio_button item, HTML Form Element Attributes :- <b>onchange="javascript:disableOnValue(this);"</b>
    also same way under text_box item , HTML Form Element Attributes :- <b>disabled</b>
    any help
    Deep

    Thanks for replying Ben,
    I have kept an example into apex workspace
    workspace:- DEEPAPEX
    username:- [email protected]
    password:- walubu
    application "Javascript" page 1
    I'm able to enable/disable Select_list item & Text_box item with the help of Radio_button item(depending on user select yes or no option of the radio button)
    But after selecting Yes option of the radio_button, only when user select "Other" option of the Select_List item the Text_box should be enabled otherwise it should be disabled for any of the options of the Select_list item.
    I hope you understand my point.
    Deep

  • Enable/Disable buttons in Portal.

    How are buttons in EP 2004s enabled/disabled?  Not in the toolbar but in the iViews.  Such as Account Sales Area, we had a button "Additional Sales Areas" enabled, but now it has become grayed out.
    Is the enabling/disabling of buttons a PCUI issue that needs to be handled through DynPro or SPRO, or an authorizations issue that needs to be handled in the CRM backend system? 
    In this particular scenario the "Additional Sales Areas" button is also disabled in the GUI, but there are others such as a "print" button where it is only disabled in the PCUI.
    Any help with this or documentation on how to enable buttons would be much appreciated.
    Thanks!

    Buttons are coming from the PCUI applications, check out the following weblog
    People-Centric User Interface (PCUI) - Getting Started...
    'The Book' contains all the details. For enabling/disabling the buttons either you can change in the blueprint tables or use the blueprint application builder.
    Check out the CRM forum you will get all the details

  • Disabling button depending on the Value of a field in a standard page

    Hi,
    How can I disable a button depending on the value selected in a particular field of the same page? Is it possible to do so in a Oracle standard page? Please guide me in resolving this requirement.
    Thanks,
    Swagatika

    Swagatika,
    You can attach PPR event to the textinput field and use method
    pageContext.ForwardImmediatelyToCurrentPage().As process request method will be called again,here you can use method setDisabled(boolean) in OAsubmitButtonBean, to enable or disable your button!
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Enable/disable buttons

    Hi All
    I have created an application wherein datablock is supposed to display 5 records at a time. In addition to it i have displayed 5 buttons alonside these records. But all the buttons are addresed by single name.
    I want to change the enable/disable property of the button in such a way that only those buttons get disabled where records value match with those given by me in procedure.
    Since all the buttons are having same name i am not able to target button corresponding to specific record.
    I will make the problem more clear:
    This is how my GUI looks
    Record1.element1 Record1.element2 Button1
    Record2.element1 Record2.element2 Button1
    Record3.element1 Record3.element2 Button1
    Record4.element1 Record4.element2 Button1
    Record5.element1 Record5.element2 Button1
    I want to disable button1 only corresponding to the record3.
    Can anyone help me out in this regard?

    Thanks Roel for your reply. I had already designed the way you mentioned(by using 1 button) but this is not the way application should look.
    Also I have to work on this application using designer only, that is the reason i have posted it in Designer forum so that i could get any clue as to how i have to proceed using designer.

  • Using a check box to enable/disable buttons.

    I am just beginning to dive into the world of mobile application development, and encountered the first time I think I need to use a function (<mx:Script... private function) and was wondering how I would go about making it so when a specific check box is selected, a set of corresponding buttons are enabled. When it is unselected, these buttons are then disabled. I'm sure this is a super novice question, so I'm hoping someone out there can help. This is for an iOS mobile app. Thanks!

    Thanks for your response.
    Based on your reply, I've entered this -
    if (this.rawValue == 1){
    Company1.rawValue = Company2.rawValue;
    Contact1.rawValue = Contact2.rawValue;
    Phone1.rawValue = Phone2.rawValue;
    Email1.rawValue = Email2.rawValue;
    Address1-1.rawValue = Address2-1.rawValue;
    Address1-2.rawValue = Address2-2.rawValue;
    Address1-3.rawValue = Address2-3.rawValue;
    City1.rawValue = City2.rawValue;
    ZipCode1.rawValue = ZipCode2.rawValue;
    Country1.rawValue = Country2.rawValue;
    and when I clcik the check box in the Preview PDF pane, nothing happens.
    Do I have to save this as a "reader enabled" file before I can check to see if it works?  Our clients that receive this form will be filling it out using Adobe Reader.
    I'm only focused on the first two columns for now.  I may eventually add the "End User" column down the line, but I just want to get the first part working first.
    Company1 corresponds to the binding value in the "Company" field in the first column (Invoice or Bill To).  Company2 corresponds to the binding value in the "Company" field in the "Ship To (from freight forwarder)" in the second column.  This is the same pattern all the way through.
    In the address fields, the binding values are shown as as follows -
    Address1-1 means column 1, field 1
    Address1-2 means column 1, field 2
    Addrress1-3 means column 1, field 3
    Etc...
    I think I need to change the binding value for each field as I don't think the script like the "dash" in the binding values of the address fields.
    Again, I'm sorry for these are stupid questions, but I am completely uneducated and green when it comes to using scripts.

  • Programatically enable-disable check box"play user interface sound effects"

    Hello All,
    I have been Working on something where i need to disable the "play user interface sound effects" check box ( Under System preferences under sound panel ) for few seconds and then enable the same programically without any user interface appearing on the screen. I know something related using the Applescript however there is a user interface appearing there which doesn't serve the purpose please help with some solution.If you could provide the exact location of the plist file which holds this information then that could help as well.

    Hi !
    I too have been working with the sounds ( Which i think is relates to @mit's query ) in an application and the problem is that when ever that application moves something to trash there is a sound which comes the sound of "throwing things in the trash". This is very annoying and i want to do something so that I can suppress that sound atleast for the time this application is on. Now is there some way where I can do this Programically . It would even be fine if I could turn off the user interface sounds completely for sometime and then bring them back on.
    Thanks In Advance !
    Looking Forward To Some response soon !
    iMAC G4   Mac OS X (10.4)   Power PC 256 MB RAM

  • Enable Delete button depending on the shopping cart status

    Hi all,
    My requirement is Enable the delete button if the status of selected shopping cart is 'Awaiting Approval' in header and item level.
    Technical detail of delete button : Component : POWL_UI_COMP
                                                      WINDOW : TABLE
                                                      VIEW : VIEW_TABLE
                                                       TOOLBAR BUTTON ID : F_DELETE.
    please help...

    Thinking aloud,
    - should the button be a resource from Webcenter, you could modify its visibility (property) via EL: #{WCSecurityContext.userInGroup['Administrators']} will display the button only if the user is in Administrators group
    - does your portlet have a parameter like that? If so, you should be able to fill it in with EL. If not, I doubt you will be able to achieve visibility changes - you might try to contact the producer of your portlet to do the necessary changes, though.

  • How to enable/disable button

    Hi,
    i m new to pcui, i got how to hide the button in toolbar group. but could you please guide be how to enable r disable the button which is in toolbar group.
    thanks in advance

    Hi venkat,
    Follow the step, it's example of Lead CRMD_BUS2000108 & View is *ZMSR_RE5 *
    1)     Go to CRMC_PCUITOOLS.
    2)     Go to Analysis Tools -> Determine the Correct Model Access Class.
    3)     Give Application - CRMD_BUS2000108 & View – ZMSR_RE5 & execute.
    4)     Click on New -> MFT Sales (Transaction type)
    5)     Note Toolbar Group - > LEA_SR_50.
    6)     Go to CRMC_BLUEPRINT_C.
    7)     Go to Toolbar Group -> Toolbar Group Structure.
    8)     Give Toolbar Group - LEA_SR_50.
    9)     Search for ZMSR_RE5 Toolbar elements.
    10)     Click on Details.
    11)     Check whether FLAG is Not Set in Exp. Display. Choose Flag set Event has Occurred to Hide the Button.
    it will help u
    On.........................

  • Enable/disable zoom depending on some conditions

    Hi All,
    I am trying to enable zoom functionality by modifying the custom.pll.
    Click on zoom will take to a new form which has 2 fields carried over from the calling form.
    Now the requirement is "Only if there is a record in the called form the zoom should be enabled."
    I have added the following code in the custom.pll
    form_name varchar2(30) := name_in('system.current_form');
    block_name varchar2(30) := name_in('system.cursor_block');
    blk_status varchar2(10) := NULL;
    begin
    if (form_name = 'FNDPOMPO' and block_name = 'PROFILE_OPTIONS') then
    message('Inside If');
    blk_status := get_block_property(block_name, STATUS);
    message('Block status is ' || blk_status);
    if blk_status != 'NEW' then
    return TRUE;
    else
    return FALSE;
    end if;
    end if;
    end zoom_available;
    But I see the message "Inside If" and "Block status is NEW"
    When the form is opened, but when i query for the records, these are not displayed again.
    I tried adding the logic to the Event procedure in custom.pll.
    In the event function, if the event is zoom and the parameters to be passed to the new form are NULL...
    then a message is displayed on click of the zoom.
    But the zoom will still be enabled.
    How to disable the zoom itself when the parameters have no values?
    Please let me know how to get this done.

    First and foremost, the Zoom functionality is a feature of the Oracle Enterprise Business Suite (EBS) not a feature of Oracle Forms. Please post your question in the General EBS Discussion forum. If you have a general Forms question, by all means, ask it here! ;-)
    Craig...

  • Enable/Disable Buttons/Lists

    How do you set a JButton to not be able to be clicked and a JList not be able to alter the selection?

    Have you tried myButton.disable() and myJList.disable()?

Maybe you are looking for