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.

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

  • 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.

  • 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

  • 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.

  • 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 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()?

  • Screen Personas 2.0 Enable/Disable script button in Javascript

    Hi,
    Has anyone tried enabling or disabling script buttons on a flavor using Javascript. I have two script buttons,
    The first one (Button1) searches for a contract based on the contract id provided by the user in a text box. (So, the script triggers the transaction me33k, fetches and displays the relevant fields in the flavor)
    Now, based on whether the contract is present in the system the user needs to click another script button (Button2) which will allow him to create an order. Currently the button is disabled (ScriptButton.IsEnabled = false in the Properties menu).
    In the Button1 script towards the end, I need to enable Button2 is a contract is found. So in the Button1 script, at the final step I try to calculate in JS and write the following JS code,
    var args.btn2id = document.getElementById("Personas/blahblahblah");
    args.btn2id.disabled = false;
    But this is never works. And I have noticed that the control id does not return the control object in Javascript (so, args.btn2id is always null) and I tried removing the '/' and various other options.
    Has anyone ever tried to enable/disable buttons in Personas? Is it even possible?
    Abhijeet

    You don't have access to the Personas control properties from JavaScript to dynamically change them.
    About the only thing that comes to mind is Tobias' method to hide the script button if you want to disable it.

  • Howto enable disable menubar items in actionscript

    Hello,
    My problem is that i want to enable/disable buttons in a
    menubar according to the loaded page.
    So what i did was when the user clicks on the menubar, it
    triggers a function. Inside that function there will become a check
    on which page is at front. According to that page i am gonna set
    menuitems on and off.
    Thats the idea i had, so now my problem.
    I first try to create a simple solution like my code beneath.

    I'd suggest changing things around a bit. See if the
    following works for you. The clickHandler() method has the syntax
    you're looking for.
    TS

  • Enable/disable/defaulting the radio button in tabular Form

    Hi friends,
    I have one radio button column in my tabular form with 3 values for it.
    <li>FC
    <li>BC
    <li>EC
    I need to enable/disable the radio buttons according to the position of the user.
    If the position of the user is CEO means,
    then FC radio button has to be checked defaultly and also for him he needs to have BC and EC radio buttons to be enabled.
    If the position of the user is between(1-4) grades means,
    then FC radio button has to be disabled, but BC radio button has to be checked defaultly and also for him he needs to have EC radio buttons to be enabled.
    If the position of the user is between(4-6) grades means,
    then FC, BC radio button has to be disabled, but EC radio button has to be checked defaultly.
    How i can achieve this radio button enabling/disabling and defaulting it dynamically according to the user.
    Where i need to specify this kind of restriction inorder to work for me in my application.
    Brgds,
    Mini

    Hi Bob,
    thanks for your reply first, and your suggestion too.
    I tried in the below manner on the lov definition of my radio button and it hide/shown according to the user who logs into the application.
    SELECT 'FC' d, 'FC' r FROM DUAL WHERE lower(:APP_USER) = (select lower(user_name) from apps.xxhy_ams_details_v where upper(job_name) = 'CEO')
    UNION ALL
    SELECT 'BC' d, 'BC' r FROM DUAL WHERE lower(:APP_USER) IN (select lower(user_name) from apps.xxhy_ams_details_v where grade_name
    BETWEEN 1 and 4 OR lower(:APP_USER) = (select lower(user_name) from apps.xxhy_ams_details_v where upper(job_name) = 'CEO'))
    UNION ALL
    SELECT 'EC' d, 'EC' r FROM DUALBut how i can check the radio button defaultly according to the user who logs in .
    <li> If the employee with the position CEO logs into the application means, he needs to have FC to be checked defaultly.
    <li> If the employee with the grade between(1-4) logs into the application means, he needs to have BC to be checked defaultly.
    <li> If the employee with the grade between(5-12) logs into the application means, he needs to have EC to be checked defaultly.
    Note:
    Instead of hide/show the radio buttons defaultly whether it is possible to enable/disable the radio button according to the user who logs into the application.
    Brgds,
    Mini...

  • How to enable or disable buttons on an interactive ALV report

    I have two buttons on Interactive ALV report. Before displaying the ALV report, I want to enable or disable buttons on ALV depending on some conditions.I dont want to make the buttons visible or invisible. This is not an OO ALV report.
    Please suggest !!!

    Then you have to use the event set_pf_status or parameter I_CALLBACK_PF_STATUS_SET for this pass the form name.
    You have to Implement the form Routine.
    FORM PF_STATUS using status type SLIS_T_EXTAB.
    SET PF-STATUS 'STS' excluding status.
    ENDFORM.
    First create the pf-staus using SE41 or double click on the status name and create . By default you make them Disable mode.

  • Enable/disable lov button in a multi-row bloc

    Hi all,
    I have a form in which there is a multi-row block with some lov buttons related to some items,
    in query mode, user should not be able to modify item, item property update_allowed is set to false, that worked, but user is able to modify item when he clicks on the lov button...so i want to disable the button for query records and for record in (insert or new), button should be enable,
    i tried some tips but don't work, do you have any idea
    Thanks for your help.

    Hi,
    Can you suggest some methods to enable/disable LOVs in my search query? I have a customized VC which performs search and I need to enable/disable the LOVs depending on requirement.
    Abhishek

  • How to use a radio button in enabling/disabling a text box in report progra

    Hi,
        Could any please let me know, how to use a radio button in enabling/disabling a text box in report program.

    *& Report  ZMR_RADIO_BUTTONS
    REPORT  ZMR_RADIO_BUTTONS.
    PARAMETERS : R1  RADIOBUTTON GROUP G1,
                 R2  RADIOBUTTON GROUP G1.
    PARAMETERS : A1 TYPE I,
                 A2 TYPE I.
    AT SELECTION-SCREEN OUTPUT.
    *initialization.
    IF R1 = 'X'.
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'A1'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 0.
    ENDIF.
    IF SCREEN-NAME = 'A2'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 1.
    ENDIF.
    ENDLOOP.
    ENDIF.
    IF R2 = 'X'.
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'A1'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 1.
    ENDIF.
    IF SCREEN-NAME = 'A2'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 0.
    ENDIF.
    modify screen.
    ENDLOOP.
    ENDIF.
    START-OF-SELECTION.
    *IF R1 = 'X'.
    *LOOP AT SCREEN.
    IF SCREEN-NAME = 'A1'.
       SCREEN-INPUT = 0.
       SCREEN-ACTIVE = 1.
    ENDIF.
    *ENDLOOP.
    *ENDIF.
    *IF R2 = 'X'.
    *LOOP AT SCREEN.
    IF SCREEN-NAME = 'A2'.
       SCREEN-INPUT = 0.
       SCREEN-ACTIVE = 0.
    ENDIF.
    *ENDLOOP.
    *ENDIF.

  • Enable/disable operation buttons according to the selected row in table?

    Hi,
    I used JDev 11.1.1.2.0
    On my main page, it has a query section and display search result to a table component, and also has some operation buttons like (update/delete) on the toolbar.
    I want to enable/disable the operation buttons according to some filed value of the selected row in the table, and I searched the OTN forum, found more questions like this but seemed no found one right solution.
    The table is single selection, and has a status column, its data type is Integer, and I want to enable buttons when the selected row's status field value is 0 or 1, disable buttons when status value is other values.
    Table code like:
    <af:table value="#{bindings.VO1.collectionModel}" var="row"
    rows="#{bindings.VO1.rangeSize}"
    emptyText="#{bindingsVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.VO1.rangeSize}"
    rowBandingInterval="0"
    filterModel="#{bindings.VOCriteriaQuery.queryDescriptor}"
    queryListener="#{bindings.VOCriteriaQuery.processQuery}"
    filterVisible="true" varStatus="vs"
    selectedRowKeys="#{bindings.VO1.collectionModel.selectedRow}"
    selectionListener="#{bindings.VO1.collectionModel.makeCurrent}"
    rowSelection="single" id="resId1">
    Operation buttons code like:
    <af:commandToolbarButton text="Update" id="ctb2" action="editDAF"/>
    Any suggestion will be great help.
    Thanks,
    zeroxin

    Hi,
    create an attribute binding in the PageDef file for the status field. Then setup the button PartialTriggers property to point to the table ID. The button's disabled property then points to the status attribute binding like
    #{bindings.statusField.inputValue=='value'}
    Frank

Maybe you are looking for

  • Lightroom 5 Beta - Most Thorough + Detailed  Reviews?

    Hi. Where are the most profound and deep reviews  or introductions of Lightroom 5 Beta? I do not need general reviews just touching the highlights (such as in DPR). I'd like a deeper look at interesting details such as this look at the new crop funct

  • Farm Remote App 2012 R : Your system administrator does not allow the use of default credentials to log on to Work Resources

    Hi Here is the situation: I have a Farm with 3 servers W2012R2 in a Domain Server1                           Server 2                                   Server3 RDSession Host            RDSession Host                             RDSession Host Connec

  • 10g AS Support for jdk1.5

    Hi , I want to know whether jdk1.5.0 is supported on Oracle 10g Application Server or not

  • Type Doesn''t Change Color

    Hi, I select my black type and then from the "Color" I use the sliders to choose a color but the type remains black. Why doesn't the type change to the color I select. It's probably something simple I am overlooking. Thanks

  • After succesful download still receive error message

    I have installed shockwave flash player version 12 on my windows 7 computer. The download was succesful, however when I want to play a video that's on my pc, I receive an error message (in Dutch, see attachment). The video plays on the pc of a colleg