Disable (Gray Out) File Browse button

To all Apex gurus,
I am facing a situation when I have a Select List Item - P2_DOCS_CATEGORY (with Display Null enabled) and a File Browse Item - P2_FILE_INPUT and I dont want end-user to be able to click on File Browse (but I want it to be visible, so disabled or grey out state would be perfect) before selecting anything from my Select List (anything but not null state, where my Null Display value is - Select Type - ).
I was trying this script in HTML Header but apperantly it doesnt work for me:
function FldEnableDisable(pThis)
if (pThis == 50)
$x('P2_FILE_INPUT').disabled=true;}
else
{ $x('P2_FILE_INPUT').disabled=false; }
} and
onChange="javascript:FldEnableDisable(this.value)" in HTML Form Element Attributes
Any ideas?
Thanks

Hi,
My sample
http://apex.oracle.com/pls/otn/f?p=40323:6
I have this on page HTML header
<script>
function FldEnableDisable(pThis){
  if (pThis == "%null%"){
    $x('P6_TEST').disabled=true;
  }else{
    $x('P6_TEST').disabled=false;
</script>And this in Page HTML Body Attribute
onload="$x('P6_TEST').disabled=true;"Then in item Test Lov HTML Form Element Attributes
onchange="FldEnableDisable(this.value);"At least it work for me in Firefox 3.5
Br, Jari

Similar Messages

  • Disable/Gray Out Delete Button in SRM

    Hi All,
    In the menu Shopping cart Status, I could able to see all the shopping cart.
    Now the requierment is , DELETE button should be disable/gray out  if there is any corresponding PO for that SC.
    Please let me know how to do this. I tried with BADI BBP_UI_CONTROL_BADI. But this will hide alll the SC's irrespective of PO's.
    Please let me know any other way to do this?
    I am working on SRM 5
    Regards,
    Nikhil V.Kumar

    Hi,
    Please try this
    <<Link farm removed>>
    Thank You,
    Thanks,
    AMS
    Edited by: kishan P on Aug 30, 2010 5:38 PM

  • How to create a push button to function like a File Browsing button

    Hi...
    I am a beginner with Oracle Forms developer.. and I have a project which requires me to create a button to function like a file browsing button.. so that I can select a file to check for changes made to it.. And if changed to copy the file to another location...Please could u guys help me with this!!
    Thanks!!

    Hi,
    What is your forms version?
    Check this out if you are using web forms.
    http://www.oracle.com/technology/sample_code/products/forms/extracted/hyperlink/fileupload.html
    If you are using client server, check out the online help for GET_FILE_NAME built-in
    Also, you can check out the webutil (for web forms >= 10g)
    -Arun
    Edited by: Arunkumar Ramamoorthy on Sep 10, 2009 1:49 AM

  • Getting the file path from a File browse button

    Hi,
    I was wondering if there is a way to extract the whole file path (not just the file name) from a file which is selected using a file browse button?
    I am trying to save the file path as text in my database (I don't want to upload the file). I have linked the file browse object to a table field in the database. But when entered in the database, all I get is a series of random characters, followed by the file name. I would like to have the complete file path instead.
    Tom

    Hi thanks
    I've placed the java script into the head of the page, but unsure as to how to change the taget url for my submit button from doSubmit('SUBMIT') to doPrepareAndSubmit('SUBMIT'). In fact I don't actually have a submit button, but a save new record (which performs an SQL INSERT into the database using the values contained in the fields on the page) or a update record buttons instead.
    I'm sorry but my knowledge of java scripts is not very good either.
    How do I do the follwoing?: if your submit button has not any target set its target to url:
    javascript: doPrepareAndSubmit('SUBMIT')
    Cheers, Tom

  • Need to disable/Grayed out Unreseve button for Order lines

    Hi All,
    In Back to Back order process once the order is progressed, the requisition will be created and Quantity will be reserved for PO to be received.
    Some of our users want go and Unreserve this by the below methods.
    1) Tools --> Scheduling --> Unreserve
    2) Right Click on the order line --> Scheduling --> Unreserve
    We need to Disable or Grayed out this Unreseve option for ATO Flagged lines.
    Can anyone let me know if this is possible.

    Ok , Ned , well your Guidance really worked , thanks alot for that.
    I made it work , though since i am very new to AS3 , i really had to experiment , here is the final Code :
    import flash.events.MouseEvent;
    stop();
    var note1:Mc_Notice1 = new Mc_Notice1;
    var note2:Mc_Notice2 = new Mc_Notice2;
    var notes:Array = [note1,note2];
    //var count:Array = new Array(1);
    var count:int;
    count = 0;
    btnload1.addEventListener(MouseEvent.CLICK , load1);
    btnload2.addEventListener(MouseEvent.CLICK , load2);
    function load1(Event:MouseEvent):void
      addChild(notes[0]);
      notes[0].x = 100;
      notes[0].y = 100;
      count ++;
      trace("Counter Value:" + count);
      if ( count == 2)
      btnnxt.addEventListener(MouseEvent.CLICK , nextframe);
    function load2(Event:MouseEvent):void
      addChild(notes[1]);
      notes[1].x = 100;
      notes[1].y = 100;
      count ++;
      if ( count == 2)
      btnnxt.addEventListener(MouseEvent.CLICK , nextframe);
      trace("Counter Value:" + count);
    function nextframe(Event:MouseEvent):void{
      trace("Mouse Enabled");
      nextFrame();
    Once again , Thanks alot for the help and Guidance
    Best Regards

  • How to gray out textbox and button

    Hello, I am new to Java, and I am do not know how to disable a textfield and a button, as in just gray it out. Does anyone know how to do this.
    Button max = new Button("Max");
    TextField box = new TextField("Enter your name",20);
    box.whatDoIputHere(false);
    max.whatDoIputHere(false);Thanks for any help

        box.setEnabled(false);
        max.setEnabled(false);

  • Grayed Out "To Do" Button in Mail

    The "to do" button in mail is grayed out. I used to be able to link emails with "to dos" but am no longer able to. I've tried "right clicking", making sure that the mail calendar to link it to is not a subscribed to calendar, and high-lighting the text in the actual email itself. I've also searched online for an answer but not have worked so far. I know this used to work!!!! Any suggestions would be welcomed.

    I have the same problem and I wondered how one makes sure that the mail account has a CalDAV calendar. I had tried all the ways I could think of to create a todo from mail 1 From message window tool bar while is a yellow tick it is grayed out, 2 From file New ToDo also grayed out, and 3 selecting the text and right clicking also grayed out . Only have one IMAP account . Interestingly MobileMe will not allow me to upgrade my calendar.
    Thanks
    Peter

  • File browser button on Adobe Interactive Form

    Hello,
    We have a ZCI Adobe Interactive Form with XML-Schema-Based Interface.
    There is a text field on the form with a button beside it. The requirement is that when this button is clicked, a file browser window should open up. After the user selects the file on PC, the file path should get populated in the text field.
    I have tried using xfa.host.importData() in the Click event of the button. But nothing seems to happen.
    Note that all other methods like xfa.host.messageBox() seem to work fine.
    Can anybody please help?
    Thanks in advance
    Sagar

    Ok, I was able to solve it.
    I placed a hidden text field on the form and wrote the following JavaScript on 'Click' event.
    var sFile;
    event.target.importDataObject(sFile);
    var oFile;
    oFile = event.target.getDataObject(sFile);
    pa0001.Subform.FILENAME.rawValue = oFile.path;
    var cFile;
    cFile = event.target.getDataObjectContents(sFile);
    pa0001.Subform.filecontent.rawValue = util.stringFromstreams(cFile,"utf-8");
    This will upload the file content and place it in the hidden text field. I can use this hidden text field in my Web Dynpro application.
    Just came to know that the Java Script we write in Adobe is known as AcroJS! Nice one.
    By the way, Blag can I give points to myself for answering my own question?
    Just kidding

  • Download option is disabled, grayed out.

    Why is my Download option to re-download a purchased item, is grayed out? It's not active.
    Please advice.
    Thank you.

    Why is my Download option to re-download a purchased item, is grayed out? It's not active.
    Doublechecking. Did you delete the item (and associated file) from your library prior to attempting the redownload?

  • Input File browse button missing

    The browse button is missing for the input file component where MaximumFiles is set to a value > 1. All that is displayed is the box for the list of files and a blank white space where the input field and browse button should be. Any thoughts?
    JDeveloper 11.1.1.7

    It looks like the button is rendering in Firefox and Chrome but not in IE8. Using the fusionFx-v1.1.desktop skin (extended) and on Windows 7. All I did was add the component to the page and set the MaximumFiles attribute.

  • After download, box which says 'you have chosen to open' 'greys out' after browse button is selected and whole page is frozen/crashed. PC restart neccesary.

    Hi Firefox
    After I have finished downloading a file the Mozilla Download page appears.
    I right click the download to open it and the 'You Have Chosen To Open' box appears in the bottom right hand corner of the screen with the 'radio button' already selected to 'Open with..
    All this so far is perfectly normal.
    However if I click on the 'Browse' button to make a choice then the title at the top of the box, the closing 'cross' and the 'OK' button have all faded to grey and are inoperable.
    Furthermore the whole Firefox page is frozen/crashed and can't be closed.
    I have no further options than to restart the PC.
    I have tried various suggestions I have found on your forums including deleting cookies, turning off the hardware accelerator, and I have uninstalled and reinstalled Firefox 12.
    I have looked at your 'Troubleshooting Information' and it does show a graphics driver problem. However my driver is the lastest nVidia driver for my GeForce FX5200 card and it has worked fine with firefox 12.
    WebGL RendererBlocked for your graphics driver version. Try updating your graphics driver to version 257.21 or newer.
    GPU Accelerated Windows0. Blocked for your graphics driver version. Try updating your graphics driver to version 257.21 or newer.
    Here is the specification of my computer:
    MSI K8N Neo motherboard (N1996 MS-7030 VER:1),
    an AMD Athlon (tm) 64 processor 3200+ (Socket 754)
    3GB of RAM.
    It has at present a NVIDIA GeForce FX 5200 graphics card.
    The system is running Windows XP Professional 32bit with SP3 and all drivers are up to date.
    I have used Firefox for many years and would not use anyone else browser ever!
    I have not had a problem until now. I do hope you can help me.
    Kind Regards
    Chris

    Dear mha007 Your brilliant! Now I have the correct terms it was the 'Opening' box that was freezing and it was the 'Choose Helper Application' that couldn't be accessed.
    However I followed the instructions which I have cut n' pasted below and I am sure it was the 'renaming' of the rdf file that put things right.
    Thank you very much I am very grateful. Kindest Regards Chris
    '''''''Reset download actions for all file types
    To reset how all file types are handled by Firefox back to default:
    Open your profile folder:
    At the top of the Firefox window, click on the Firefox button, go over to the Help menu (on Windows XP, click on the Help menu) and select Troubleshooting Information. The Troubleshooting Information tab will open.
    Under the Application Basics section, click on Open Containing Folder. A window with your profile files will open.
    Note: If you are unable to open or use Fire​fox, follow the instructions in Finding your profile without opening Firefox.
    At the top of the Firefox window, click on the Firefox button (File menu in Windows XP) and then click Exit.
    Rename the mimeTypes.rdf file to mimeTypes.rdf.old .
    Restart Firefox. '''''''

  • Iweb - Grayed out File menu - Help please!

    Hi, I am traveling away from home on a 3 week trip. I started up iweb on the plane yesterday and it wouldn't let me start a new page, or add anything. It is all grayed out. Is there something I am doing wrong?
    Problem is I don't have my ilife disk if I need to reload the software. Any way to fix this problem with out reloading? Anywhere I can get it online?
    thanks,
    Jess
    PowerBook G4   Mac OS X (10.4.8)   ilife '06 purchased in August

    Hi jessica,
    This could be a problem of not having the iweb 1.1.1 update.
    Which do you have?
    Also if you have the latest 1.1.2 but didn't get the 1.1.1.....welll go back and get 1.1.1
    See if this helps or is even an issue w/ your setup.
    Good luck
    Please report back
    jabberwock

  • Why is intellisense disabled/grayed out in SSMS 2012 Query? How to enable the intellisense?

    I just got SSMS 2012 loaded on my win 7 workstation yesterday. Intellisense was working fine. Then I went to Tools/Options to select Display line numbers.  Intellisense was still working yesterday.  But today there is no intellisense, and I observed
    that intellisense is grayed out in the Query menu.  In Tools/Options the intellisense is checked to be enabled.  I tried ctrl shift R, and also tried in manually from the Edit/Intellisense menu, but still no intellisense, and still it is grayed out
    on the Query Menu. 
    What can I do to fix this?
    Rich P

    Thank you for the reply.  I had already gone to that site and tried the suggestion, but that did not fix the problem that I'm having with the intellisense.  I have had this problem before where the intellisense is working for a while and then it
    quits working all of a sudden.  I am guessing that someone installed some more stuff my workstation and that may have caused it.  I vaguely recall with sql 2008 R2 (or maybe it was with sql 2012 on another workstation in the past) I installed some
    sp, and then (with maybe a few more steps in addition) the intellisense started working again.  I just don't remember what I did (or which version of sql server I did it to).
    Rich P

  • Disable autoplay in file browser

    I there a way to turn this off.
    I have about 55 clips that all need the same thing done to them. I'm dragging clips from the file browser to the appropriate spots on the layer tab, but everytime I go to grab a clip, the **** thumbnail at the top of the file browser starts playing the clip and giving my system a hiccup. Very annoying and it's really slowing down my work flow.
    I'm having to drop each clip onto 3 different layers, which takes system resources and I don't have the best GPU on this particular machine. Turning this off means one less drag and click I have to perform to pause the thumbnail and less load time into the layer tab.
    Any suggestions?
    -G

    Heya,
    Open the preferences (Cmd+,) look in the General tab for the 'File Browser & Library' section, and uncheck the 'Play items automatically on a single click' checkbox.

  • Pan & Zoom option in Overlay Creator disabled/grayed out when trying to create scrolling text

    Hi all,
    I'm trying to create a scrolling text frame using the Paste Into method. I've created a long text frame, cut it, pasted into another frame. When I go to the Overlay Creator and click Pan & Zoom, it tells me to select a cropped image. I've tried an identical work flow on another computer and it works fine - the pan only radio button is available.
    I've reinstalled the CS5 extensions, restarted my Mac and I can't resolve the issue. I only downloaded the extension tools last week, so I'd hope they aren't too out of date now. The About screen tells me I'm on 11.4.2.20111116_m_671500 7.0.3.13
    Any help appreciated.
    Adam

    The best place to get the new builds is the DPS Dashboard (https://digitalpublishing.acrobat.com). You can also view the detailed help topic about installing:
    http://help.adobe.com/en_US/digitalpubsuite/using/WS67cb9e293e2f1f60-21ba9a4512e5e5e0b8d-7 ffe.html
    If you install the Folio Producer tools and then the Folio Builder panel, you should be able to sign in just fine. Let  us know if you still get the error.

Maybe you are looking for