Disable/enable a search button

based on whether a search input text is empty or null.
How do I do this in ADF.
Thanks in advance,
Veena

normally its the binding for the attributes that you want to wire with the search field of interest. Are you talking about the cuastom search that you developer.. or the one in af:query?

Similar Messages

  • Disable/enable window close button?

    I have a new Window() open and I want to disable the close button when the window has already been opened. Does anyone know how to do this in Flex?

    Ok I got, it's an AIR app.
    You can listen to event Closing and preventDefault on it. Check this:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx"
                           closing="closingHandler(event)">
    <fx:Script>
                <![CDATA[
                    protected function closingHandler(event:Event):void
                        if(!forceClose.selected)
                                event.preventDefault();
                ]]>
    </fx:Script>
    <s:CheckBox id="forceClose" label="Force close" />
    </s:WindowedApplication>
    Regards,
    Pablo Souza

  • UISearchBar: enable search button by default

    Hi all,
    by default the search button in the keyboard for a UISearchBar is disabled. The button is enabled after typing a single character. So when no characters are typed there is no way to dismiss the keyboard when not using a cancel button. Is there a way to enable the search button even when no characters are typed. I know I could use a cancel button on the searchbar but I don't really think this button is a great design. The App Store on the iPhone seems to have enabled the search button be default, but I can't seem to find the property to set on a UISearchBar to copy this behavior.
    Message was edited by: Joris Kluivers (typos)

    I'm not sure why there is no public access to the searchField member of
    the UISearchBar, but it looks like you can get at it through the subviews. The
    following works for me:
    UITextField *searchTextField ;
    searchTextField = [[searchBar subviews]objectAtIndex:0];
    searchTextField.enablesReturnKeyAutomatically = NO ;

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

  • Disabling\enabling up/down spinners button

    Hi
    I have a spinner which I want to limit when its reach a condition. For example, I have two spinners representing a range of dates, when the spinner reach the maximum date I want to disable the up arrow button of the JSpinner. How can I do it?
    Thanks
    D

    you would be calling a method on click of a button and once you reach the max date you can disable the UP arrow button this way...
        jSpinner1.getComponent(0).setEnabled(false);and pass 1 instead of 0 to disable the down arrow!
    Cheers...
    Asim

  • When using private browsing to view image results in Safari 5.1.3, only the first two rows of results are visible, the following four or so rows display greyed out place holders, and the safe search button is inoperable. Suggestions?

    When using private browsing to view image results in Safari 5.1.3, only the first two rows of results are visible, the following four or so rows display greyed out place holders, the remainder of the results page is blank, and the safe search button is inoperable. When I turn off private browsing and refresh the page, everything works again.
    Anyone else having this problem?

    I have got the same behaviour after the last Safari Update to 5.1.3. It seems that Safari now handles some scripts in a new way. If you debug the Google Website, you will see, that there is some Javascript Error, that seems to prevent to write into local cache. After some searching I wasn't able to finde a solution for this problem, other then disabling Javascript while private browsing to prevent the script loading. You then are able to use Google with the old layout. The option to disable JavaScript can be found in the Menu "Developer", wich has to be enabled in Safari in the options first.
    In my opinion this is a bug that is now occuring, because Apple changed something in private browsing and that has to be fixed by Google now, to run again. Or we will have to wait for 5.1.4, as you can read online Apple will change and bugfix the javascript engine in that version, perhaps this fixes the problem as well. I hope so!
    If anyone is in the developer program perhaps you could test this with the beta of 5.1.4 and tell us if it works.

  • When I use the Norton Safe Search box in Firefox 3.6.19 the letters that I type group together and disappear behind the search button at the end of Norton Safe Search....any help?

    I don't know how much more I can add...However, when I type in the Norton Safe Search box up to the search button in Norton Safe Search I can continue to type but I can't see what is being typed because it doesn't allow me to see the trailing end of what I'm typing. This along with the fact that the letters and words don't always automatically advance a space, they group together as I'm typing and I have to stop, provide a space and continue once again. This only happens in Mozilla Firefox, I'm using Firefox 3.6.19. This doesn't happen in the Norton Safe Search Box in Internet Explorer

    Maybe another extension that you have installed is causing that problem with that Norton Safe Search add-on.
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes <br />
    Disable all other extensions and see if Norton works correctly. <br />
    I so, start enabling extensions one at a time until you find the culprit.
    If not, create a new Profile and verify that Norton is the only extension that appears in the new Profile and see if it works correctly. <br />
    http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    If not, the problem is with the Norton add-on.

  • Where is controls palette search button in 8.20?

    This is embarrassing!  I rely heavily on the control and function palette search buttons.  I updated to 8.20 and my control palette search button disappeared.  The function palette search button is in its normal place.  I've looked through Help and the Options popup but don't see a way to enable/disable the search button.  I need it back!
    Jeff
    Climbing the Labview learning curve!
    Sanarus Medical
    Pleasanton, CA

    The search button should be right there so something is wrong....
    Try to repair the labview installation.
    Also check your LabVIEW.ini file for weird entries.
    LabVIEW Champion . Do more with less code and in less time .

  • Automatic KM search with no input field and no "Search" button

    Hello,
    I would like to make an automatic KM Search ( a kind of iview that when it loads it doesn´t show the input query field, it just shows the results of a hardcoded query string, with no need of pressing the "Search" button).
    I tried to do it passing parameteres to a com.sap.km.cm.basicsearch , for example:
    "ConfigFileName=Navigation.xml&StartPage=SearchPage&Validate=false&QueryString=MARADONA&layoutSetMode=exclusive "
    but :
    1- you have to push the "Search" button to see the results
    2- it shows the input field, so user will be able the change the string.
    Any suggestions? Thanks in advance.

    Removing the input field is slightly more complex.
    1) Duplicate the UISearch Options set (from System Admin,System Config,KM, CM, User Interface, Search, Search Options Set)
    2) In your duplicated Options Set, Show Advanced Options. Deselect the option to "Enable Further Search After Quick Search". Additionally, you might want to disable some if not all these options.
    3) In your search iView, set the Search Options Set parm to the name of the Option Set you created in step 1.
    Hope this helps.
    Regards,
    Frank Nacy

  • RPA Advance Search Button

    Dear Friends
    Currently RPA is used in C-projects  but the advance search
    button in demand overview is disabled could anyone assist
    me as to how to enable the button.
    I am assuming that the button is disabled so that user who
    has logged in only views those projects that the user is
    responsible.
    Best regards
    Bhanu

    Thanks. For this application there are a potential universe of 17K members. $10 for an app will not fit the scenario. Nevertheless the Reader is a great start and I can control the download options (kiosk system at convention) to list "laptop/desktop" versus iPad.
    Could you elaborate on how to get links to work? I've got the original Word documents, its derived PDF and using Acrobat Pro X (Mac). There are about a dozen obvious links that I'd like to try to get to work and learn how to make this work.

  • How to Enable the SAVE button in the Menu Bar of the Invoice Document.

    Hi.
    How to Enable the SAVE button in the Menu Bar of the Invoice Document as it is disabled for me.
    I would like to save the Invoice document in PDF  format.
    Regards
    Irfan

    Hi,
    Normally, for the archiving or generation of the invoice document in PDF format is handled by maintaining the output records through VV31/VV32 with the relevant printer, storage mode ( 3- print and archive or 2- archive only ), no. of messages ( means no of copies ) in the communication method.
    Then when you click the print button through VF03 in the print options pop-up you get a print at the physical printer and at the same time an archived copy ( PDF copy ) attached with the document.
    So, please make sure the output records are fine to allow a PDF copy generated and then try to print and check in VF03 by entering into the billing document.
    Hope this helps you.
    However, from the print preview you normally would not be allowed to save or print.
    Regards,
    Ram
    Edited by: Ramakrishna Peri on Apr 3, 2009 9:16 AM

  • Enabling the save button

    I was having a problem with an unbound item where if a user entered data into it and wanted to save, the save button on the menu was disabled. To get around this problem I created a post-change trigger for the unbound item where I used the set_menu_item_property to set the save button to enabled and this worked fine. I have another unbound item below the first one and I needed to do the same thing (eg. create a post-change trigger to enable the save button) but for this unbound item it doesn't work. When I go to the next item the save button remains disabled. Can anyone tell me why it works for one and not the other?
    thanks
    Cathy

    Run the debugger and single-step through your code and see what is and is not happening.

  • How to make disable/enable single item recovery effectively Immediately?

    for the following command , "it may take up to one hour to disable single item recovery",my question is how to make the disable/enable  single item recovery
    effectively Immediately by some command?
    SingleItemRecoveryEnabled $false/true
    http://technet.microsoft.com/en-us/library/ff678798(v=exchg.141).aspx
    Please click the Mark as Answer button if a post solves your problem!

    other options:
    Move the mailbox to another DB or if in a DAG, activate the DB on another server. ( the activating seems to work as far as I have seen at least).
    Twitter!: Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

  • IH01: Search button not active

    Hi PM Gurus,
    I am working on technical upgrade from 46C to ECC6. I am facing a problem in IH01, after executing the transaction, search button (binocular) is not active. Can any one suggest me what may be the possible reason & how it has to be activated.
    Thanks,
    Ashok

    Hi Ashok,
    I think, IH01 is the transaction code for the selection page ie editing the inputs... (function location structure), there we need not to search anything whereas we need to input the various selections. Thats is the reason sarch button is disabled....
    Once u input the data and transact, the buttons wil be activtaed.
    In case u are looking for searching something specific, pls do let me knwo.
    warm regards,
    punam gupta
    Pune

  • Java Script Disable/Enable Items Problem

    Hi,
    I followed the directions to disable/enable items from http://www.oracle.com/technology/products/database/htmldb/howtos/htmldb_javascript_howto2.html#disable.
    And I'm getting an error.
    I have fields like :
    Issue Summary
    Issue Description
    Identified By
    Identified Date
    Status (Values: Open, On-Hold, In-Process, Closed)
    Priority
    Target Resolution Date
    Whenever the Status changes to 'In-Process' I would like to disable 'Issue Summary and Issue Description'.
    Both the fields (Issue Summary and Issue Description) are being disabled when the Status changed to 'In-Process'
    but when I click the 'Apply Changes' button I'm getting the error: 'Issue summary cannot be null.'
    I do have a Not Null validation on Issue Summary field, but I'm only updating the Status field.
    Following is the JavaScript:
    In the Page Attribute (HTML Header)
    <script language="JavaScript" type="text/javascript">
    <!--
    //htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    //-->
    // This function takes in:
    // 1. A string expression to evaluate. For example:
    // 'document.getElementById(\'P125_STATUS\').value=InProcess'
    // Notice the quotes are escaped using a "\"
    // 2. One or more arguments which are item ID's as strings. For example:
    // ...,'P1_ENAME','P1_SAL'...);
    // Notice the ID's are the item names, NOT item labels
    function disFormItems(testString,P125_ISSUE_SUMMARY,P125_ISSUE_DESCRIPTION){
    theTest = eval(testString);
    if(theTest){
    for(var i=1;i<4;i++){
    if (arguments){
    disItem = document.getElementById(arguments[i]);
    // disItem.style.background = '#cccccc';
    disItem.disabled = true;
    else{
    for(var i=1;i<4;i++){
    if (arguments[i]){
    disItem = document.getElementById(arguments[i]);
    disItem.disabled = false;
    // disItem.style.background = '#ffffff';
    //-->
    </script>
    In the Footer:
    <script language="JavaScript1.1" type="text/javascript">
    disFormItems('document.getElementById(\'P125_STATUS\').value==\'In-Process\'','P125_ISSUE_SUMMARY','P125_ISSUE_DESCRIPTION');
    </script>
    In the Status field HTML Form Element Attributes:
    onChange="javascript:disFormItems('document.getElementById(\'P125_STATUS\').value == \'In-Process\'','P125_ISSUE_SUMMARY','P125_ISSUE_DESCRIPTION');"
    Can somebody let me know what's wrong?
    Any help is greatly appreciated.
    Thanks in advance

    FYI: I used the following JavaScript to make it work:
    In the Header Text
    function SetReadOnly()
    var status = document.forms[0].p_t09.value;
    if(status == 'In-Process')
    document.forms[0].p_t02.readOnly = true;
    document.forms[0].p_t03.readOnly = true;
    //-->
    In the Footer
    <script language="JavaScript1.1" type="text/javascript">
    SetReadOnly();
    </script>
    In the HTML Form Element Attributes
    onChange="javascript:SetReadOnly();"
    Thank you very much for your suggestion

Maybe you are looking for

  • How can I create a database from a sharepoint using entity framework

    Hello All, I want to develop a data base from SharePoint list independently. The column name are based on a SharePoint list eg: Contact-list (will be having 10 columns) can any one please suggest me an idea on how to do this task? Which Visual Studio

  • Adobe CS2 Install problem

    Hey, i've recently bought my first Mac, a white 2.0 Macbook. So far i'm loving it! but i can't install correctly Adobe CS2. After the install is finished (apparently OK) when I open Photoshop it tells me that there are some missing files and that i h

  • DVX and the Squeeze Mode in FCP

    Good morning, I recently experimented with the Squeeze mode on my DVX100b. I shot in 24pA and captured to FCP using the advanced pull down setup. The clip was recognized as anamorphic (judging by the checked box in the Anamorphic column of the browse

  • PC SUITE: Nokia Application Installer Problem (msx...

    I have Windows XP SP2 installed in my PC e i cant't install program in my Nokia 7250i. I tried to install the olds version of PC Suite but I have the same problem. The problem is that same applications work correctly, as File Manager, Nokia music Man

  • Puedo usar iphone 5 comprado en usa en mexico????

    voy a comprar el iPhone 5 en estados unidos como lo tengo que comprar para usar en mexico con TELCEL