HOWTO disable a button within the APEX?

This may seem like APEX for Dummies, but I currently have a problem with presenting a plain old HTML in the APEX in mode button disabled (not clickable). In HTML, this is no problem when you use 'disabled', but in the APEX, it does not work because the apex"disabled =" off "disabled".

1. How can I display the button in a status of "disabled" in the APEX?

2. How can I dynamically determine whether the button should be displayed as disabled or not?

Any help is appreciated.

Hello

I did something very similar recently (and to be honest, the methodology is very close to what Riedelme suggested already):

(1) create an item hidden in the area containing the keys to be turned off (make sure it's AFTER the buttons you want to disable)
(2) in the message text of the element element field, enter Javascript to disable the button (s) - for example:

(3) set the conditional display of this point on the result of a PL/SQL function returns BOOLEAN - in this case, it would be your authorization feature, or whatever. Or you can use regardless of the conditional formula meets your configuration.

In this way, every time this hidden item is loaded i.e. authorization fails for example, the javascript code snippet will be loaded and executed, and your buttons will be disabled!

Hope that makes sense!

Chris

Tags: Database

Similar Questions

  • can anyone provide a link to insert the image with the text on the button in the apex 4.2.6

    can anyone provide a link to insert the image with the text on the button in the apex 4.2.6

    ReemaPuri wrote:

    in the workspace image:-resign.jpeg

    As a button? Seriously?

    Ok. First of all, because the image already contains text, there no point in including the same wording in the form of text on the button. Accessibility requirements can be met using re-sign as alternative text. 4.2, create an image button:

    Tag/Alt text: Re-sign

    Static ID: re - sign

    Style button: Image

    Button Image: & WORKSPACE_IMAGES.resign.jpeg

    To make the image looks more like a button, add the following CSS to Inline CSS property page:

    #re-sign img {
      margin: 0 2px 2px 0;
      border: 2px outset;
      border-radius: 4px;
    }
    #re-sign img:active {
      margin: 2px 0 0 2px;
      border: 2px inset;
      border-radius: 4px;
    }
    

    Finally, there is a bug in 4.2 that generates the incorrect URL for the button images, which requires dynamic action of Page Load to fix.

    Event: Loading the page

    Action: Run the JavaScript Code

    Code

    var resignImg = $("#re-sign img");
    resignImg.attr("src", resignImg.attr("src").replace("/i/", ""));
    
  • Function of database Oracle Call button of the apex

    Hello

    can you please explain

    How to call an oracle function in the button of the apex.
    every time I click on button feature of oracle database should triggers.

    Thanks in advance

    concerning
    r
    Hello

    IM new user in the apex and can u please help me to call a function of oracle through the apex button

    Published by: on April 10, 2011 22:02

    Here are the steps:

    01. create a button (Ex: Save)
    02. in the Section 'Treatment of the Page'-> click right-> select create
    03. then select "PL/SQL" and move forward. Give the name of the PL/SQL block and then click Next
    04. here, you can set the pl/sql code to call your fuction. (Here you can do something that is supported in PL/SQL) and press Next
    05. here if you want to display all messages when this plsql code is success or failure then set these success messages and faile. If you do not need to show all messages, leave it blank. Next to meadows and moving forward
    06 choose your drop-down list button "when Button Pressed. (Ex: Save Butrton).

    Now, you're done. When you press this button it executes the PL/SQL code you defined above

  • MP3 player within the APEX

    Here is a link to an article titled "How to embed MP3 Audio files in Web Pages".

    http://www.labnol.org/Internet/design/HTML-embed-MP3-songs-podcasts-music-in-blogs-websites/2232/

    I suppose that it is possible to use the Google Player within the APEX. If so, can someone please provide me with some basic instructions on how to do it?

    Hello

    Create HTML region and insert to the source code for this blog post

    I have created sample
    http://ActioNet.homelinux.NET/HTMLDB/f?p=100:99

    Kind regards
    Jari

  • How do I link a button from the APEX to the HTML file stored on the server app?

    I hope that it will be simple for a person

    We have some word documents very technical I really didn't want to replicate in the oracle reports

    So I saved them as html documents, and when I opened then they look very well in IE

    I placed in the folder where our reports are stored, but I can't figure out how to create the URL to be placed behind a button in the APEX?

    Of course the oracle reports url will not work as long as the pdf and servlet uses

    Thanks in advance

    Chris

    Assuming you are using Apache?

    You can place your Word documents in the same folder as your current Apex images directory (or a subdirectory it) and then reference them with a URL of the form http://yourserver/i/sample_word_file.doc. Alternatively, you can add a new Alias entry to your dads.conf file (located in your Apache/modplsql/conf directory) to expose the folder on your Web server that contains your Word via a URL like http://yourserver/word_docs/ files

    For example

    /Word_docs/ alias "c:\my_docs\technical_word_docs/".

    Andy

  • Cancel disable them button on the screen at the time of order credit check Hold applied

    Hello

    I want to cancel button on the screen at the time of order credit check Hold applied

    Thank you

    Please see the note below

    Book order cancel (https://mosemp.us.oracle.com/epmos/faces/ui/km/DocumentDisplay.jspx?id=412683.1Doc ID 412683.1) button-click button grayed out in process Message window after

    This applies to your case

  • How to run queries of BSE within the APEX

    Hi gurus

    I want to run inside the APEX of a complex query extracted a simultaneous R11 EBS, but this application has many features such as USERENV('LANG') and USERENV('CLIENT_INFO').
    How can I set this info in order to run this application?
    I know that the values of these parameters, but my problem is to put

    Any help will be rewarded
    Oscar

    You must initialize a context apps before do anything associated EBS. The most common place for it is in the section of DTV application (renamed the PLSQL pre-rendered or something like that since 4 APEX).
    Use a call to fnd_global.apps_initialize. You must pass the appropriate values for the user, the responsibility, application etc.

  • Which schema/user is a connected person slot within the Apex?

    Greetings,

    I have an application with built in authentication of the function table. When a person logs in their username and password is simply compared to the values of a user table to determine if they can use the application. The authentication table is in the same schema as the application.

    The Apex application is in a schema called DLR_INV. All the tables used by the application, but one is in that same pattern. The table in another schema is used to retrieve the status codes for a LOV.

    The user receives an error when the page opens, the error is on the State LOV. My DBA and another Oracle developer to determine what the problem is. Is there a synonym above the state table which should provide access. The DBA can connect through SQL Developer as DLR_INV and access the status table.

    What could be the problem?

    One question - given the way the authentication of the application is set up - when a person signs this schema/user are they connected as?

    Thank you, Tony

    Published by: hidden on January 25, 2010 12:14

    Tony

    I don't see the privilege to 'select' on XX_BMC_DLRINV.MS_US_STATES? Your APEX application schema needs grants 'live' on the objects he needs to access. Privileges gained through roles will not be recognized.

    GRANT SELECT ON XX_BMC_DLRINV.MS_US_STATES TO DLR_INV;

    CITY

  • [ADF, JDev12.1.3] How 1) in order to avoid this af:table created from a VO istance automatically fill the box itself? (2) disable a button if the display: table is empty?

    Hallo,

    I would like to know how to avoid that an af:table created from a VO istance automatically fill the area itself.

    I need to fill programmatically after you click on the search button.

    Then I would turn off, and the button 'open file' if the af: table is empty or if af:table contains documents... enable how can achieve this?

    Thank you

    Federico

    I would like to know how to avoid that an af:table created from a VO istance automatically fill the area itself.

    I need to fill programmatically after you click on the search button.

    Use VO.executeEmptyRowSet () Andrejus Baranovskis Blog: Oracle ADF Tuning: prevention of the execution of the SQL query on the loading of the Page

    Then I would turn off, and the button 'open file' if the af: table is empty or if af:table contains documents... enable how can achieve this?

    Bind "disabled" property #{bindings.yourIterator.estimatedRowCount == 0}

    Dario

  • Buttons below the APEX 4.0.2 not generating an html APPLICATION

    ... during the publication of my original text, it seems to have disappeared.

    Anyway, my question has been to apply a button and why I couldn't see it from the process of page "Front of the head" (this also applies to 'Select list with Submit'). If I click on a button that makes a shipment (or choose from a 'select with Submit list'), I can see the request in the page process 'OnSubmit' but not the "OnLoad before head" process page. If I come home "& REQUEST.' in 'DEMAND' field of the unconditional branch of the request is available." I always thought that leaving the field of APPLICATION to empty of unconditional branch the reqest would be routed through default so I can test against it in a process of 'Head before'?

    Another scenario I'm mistaken, is too, when I have a button based on a model that has the code such as:
    < input type = "SUBMIT" value = "" #LABEL # "/ >,"
    I do not all apply? If I change the "input type" button, it works fine.

    THX
    Nigel

    Published by: theArrow on October 31, 2011 05:52

    Published by: theArrow on October 31, 2011 06:05

    theArrow wrote:
    Hi, just tried the code proposed above, but I get an error in my application saying: error ERR-1002 unable to find item for the 'REQUEST' element ID in the "13100" application If I use a javascript with apex.submit button, it passes through this systematic fine.

    I presume that for the SUBMIT type buttons it does not create a: QUERY element.

    I created a page element to: REQUEST and it seems to work.

    What is the right thing to do?

    N °

    Try

    apex_application.g_request := nvl(v('REQUEST'), 'SUBMIT');
    

    Looks like that he doesn't like the shape of link of : ASK in the code in the process.

  • There is a way to get the "add to bookmark and rss button" within the url bar?

    I think that this two buttons must be in the url bar. Are easier to find and smaller than the bar.

    You can watch the classic extension theme restaurateur restore some features that has been lost with the arrival of the Australis style in Firefox 29.

    You can access the parameter of the extension of the CTR through the Options/preferences button in Firefox/tools > Modules > Extensions

    See also:

  • problems with connecting the buttons within the OSM, at an another mso.

    Im trying to put in place the buttons nested in an mso to bind to a graph in an another mso. I can't find a work around... If someone has encountered this problem / have a work around?

    Thank you

    -LK

    Button for a MSO action cannot in an other MSO.

  • How to get the name of workspace within the APEX

    Apex 3.2.1
    Oracle DB: 10 G Rel 2

    Is it possible I can get similer name workspace for the application page id/id/session id. Basically, I'm looking for a substitution string. All the ideas!

    Thanks in advance
    Eliane

    I don't think that there is a substitution string, but this query seems to work

    select apex_util.find_workspace((select apex_application.get_security_group_id from dual)) from dual
    

    or

    select workspace from  apex_workspaces
    where WORKSPACE_ID = v('WORKSPACE_ID')
    
  • from the how to do to disable the Save button in the form 10g

    Hello...

    I developed a custom form when the function save the form I want to disable the button "close in bulk.
    Save here is standard option, there is no button Save.

    Please give me a solution

    Concerning
    Mohan

    Hello

    To disable a button, use the Set_Item_Property (..., INFLUENTIAL, PROPERTY_FALSE) integrated.

    François

  • disable the button in the current state

    Hello world

    I am new to catalyst, so my question may seem stupid probably ;-)

    I build a small site in PS CS4 one try to bring it to live in the catalyst. My problem is the folloing:

    How can I disable a button in the selected state?

    I can configure the appearance when it is disabled, but cannot find an option to disable the button.

    «for example, when I clicked 'links' - button, it must be disabled (and watch in a special way) until I choose another State and leave the links ' States '.»

    Thank you

    Hey dm.

    Without seeing the layout of the fxp/how the custom button is configured, it is sometimes difficult to provide the right steps!

    Hopefull this post will clarify a bit my last.

    Regarding the change of the State of the button when you go to the States, it is indeed easier by checking a box in the properties panel.

    (1) navigate to the State in which you would like the button disabled (or enabled).

    (2) in the properties panel, in the common section, see the box "enabled."

    (3) check it so that a button is enabled (in the normal state) in that State. Clear the checkbox to make this option disabled in this State.

    To make sure you have the right look, double click on the button.  You should now see four different States, which is a disabled"" State.

    Check to make sure that the button looks like as you wish in the disabled state.

    Using this strategy, navigate to a State and by setting the property enabled in the properties panel, you reach the look you're looking for?

    I'm always kind of unclear on the button click/No seeing the disabled look?

    Perhaps what you are looking for, is to add an interaction to the button, such as "click", in order to move from one State in particular, to another second particular State?  In which case, in the second State the button is disabled?

    If you could clarify that would be awesome?

    Or, if you feel you could post/send me your fxp so I can measure the best approach.

    Let me know how it works for you, and if the enabled checkbox is indeed what you are looking for.

    Tara

Maybe you are looking for