Dynamic action to display the button

Hi all

I use Apex 4.1

I want to build a dynamic action:
If a value in the select list is changed - a button must be indicated.

It does not work!

Yes, I did:

In the model of button:
either:

< button value = "" #LABEL # "class ="grey button"type ="button""
#BUTTON_ATTRIBUTES # >
< span > #LABEL # </span >
< / button >

or this:

"< button value =" "#LABEL #" class = "grey button" type = "button" onclick = "#LINK #
#BUTTON_ATTRIBUTES # >
< span > #LABEL # </span >
< / button >

The button:
The button attributes:
ID = "button_dyn_action".

In dynamic action:

Event: change
Selection type: elements
Product (s): P51_KW_ID
Condition: No strings attached

Action: show
Fires when the result of the event is: true
Fire when the Page loads: no

Items affected
Selection type: DOM object
DOM object: button_dyn_action

Would be nice to get help in this forum about this, as a dynamic action to display the buttons are not described anywhere!

Published by: oraman on December 12, 2011 07:42

oraman,

I think this thread is cursed. He deleted my answer!

I made a mistake in my first post. Your model of button should look like this:


and you must include the following in your attributes of button, then your button is hidden when the page loads:

style="display:none;"

Here's a demo: http://apex.oracle.com/pls/apex/f?p=43401:34:0

See you soon,.
Janet Tyson

Published by: Tyson Janet December 12, 2011 10:30

Published by: Tyson Janet December 12, 2011 10:33

Tags: Database

Similar Questions

  • Conditional action to display the button next main Menu after received the visit 4 slides

    Is there a tip Action to display a next button on a slide after that 4 different slides have been opened?

    Hello

    Why are you putting this issue separately, I thought it was related with the other thread? If you ask this question, it will be more difficult to answer and resolve only in combination with other advanced action who showed the images. Because the next button must be made visible on this same blade where you show the pictures, or is that not the case?

    You must create a user variable, I'll label it v_counter. Whenever you show a picture, you must increment this variable (second statement after image) like this:

    Expression v_counter = v_counter + &

    And then you add a fifth of the decision to your advanced conditional action, which checks the value of v_counter and show the button hidden in the following departure if the meter is at least 4:

    If v_counter is greater than or equal to 4

    Then display the button

    Otherwise, continue

    But if you want a literal answer to this question, it will be something different and more complicated. Because then I need to know if visited slides will be viewed entirely until the last image? If yes you can trigger a fast action by the event leaving. BTW, still do not know how you will trigger the action of tip of the other thread, by what event?

    Lilybiri

  • Javascript-based dynamic action and display the value of (!) from the selection list

    Hello

    I'm not a jQuery guru (yet).
    Can someone show me how to turn on or off an ITEM on a form based on the value display of a selection list (usually I have dynamic lists, so I don't 'know' even internal values)

    I created a simple demo in which you can (if you want to) show me how it works.

    Workspace: 6POOLRULES
    User: demo01
    Password: demo
    Application: 30851 (Drone)

    The idea is to
    * Disable/hide the "Id other Description" If the ' Id Type (display value!) is 'Passport' or 'license '.
    * activate/display the Description of the 'other' Id if the ' Id Type (display value!) is "other".


    I think that it should be dynamic action based on javascript/jQuery. But what would this jQuery selector should look like?

    Published by: bveoracle on March 29, 2012 07:28

    Published by: bveoracle on March 29, 2012 07:30

    Hello

    OK, I changed the dynamic action to use Jquery and get text from the value. The only thing I changed is in the section WHEN.

    Enjoy.

  • How to use PL/SQL to create dynamic action to set the value of a selection by another list?

    Hello

    I would like to know how to use PL/SQL to create dynamic action to set the value of a list of selection by another selection list.

    1.PNG

    I wish can create dynamic action to manage the two above the Room select list (: P9_ROOM) and building (: P8_BUILDING).

    When you select "1074" in the bathroom, building highlights like "BRM BLD 5"

    When you select 'Area of the black box' in the room, building must assign the value "7 BLD BRM"

    When the room is Null, building should also be Null.

    I thank you,

    Alice

    I forgot to mention, for the PL/SQL Code, because you are working with items in the selection list, the return values are different from the display on your LOV values, you must instead use the return values.

    Thank you

    Erick

  • Dynamic action to refresh the region-&gt; see the message to user

    Hello

    I have a page in the apex 4.2.2.

    In this page, I have an interactive report and a filter sets, users can choose.

    When users choose one of the filters, I implemented a dynamic action to refresh the interactive report region, so it should refresh the data being shown without submitting it.

    So far so good... but... when the region is refreshing there is point 'charge of circle' which displays and allows the user to know he is done on the page. But this icon is not so obvious.

    What I want is to add a message, for example to display a region, which showed a message like "being the updating of the report, please wait" (something like that).

    I tried to insert in my dynamic action, as 1st action, to SHOW this area and as the last action to HIDE. But nothing is done, the region is never shown.

    How can I perform this task? All I need is to be able to display a message, for the duration of the dynamic action, to inform the user that he or she must wait until the task is completed.

    All real common actions have been reported to "wait for result", if I didn't get this wrong, it means that he expects the previous real action remaining to be done, in order to trigger the next... This should show the region and then hide it, but it does not work.

    Can someone help me with this? Maybe give an idea?

    Kind regards.

    You can actually go several routes with a solution for this. A refresh of the IR will start forward and after updating the events that you can hang on to dynamic actions or jQuery, so you can show something at the start of the update and then hide it again. And since you can do all this in jQuery you could easily hold it in a javascript file and attach it to every page of the ir. This is probably the cleanest solution and more independable.

    Another way is to use the already existing waiting icon and play with his presentation a little. You know, that you are talking about loading icon. You can change this to something much better with minimal effort!

    Example:

    Run when the page loads, to execute javascript code:

    $("#apexir_LOADER").append("
    Please wait. Refreshing the data.
    ");

    Add this css to inline css in the page:

    span#apexir_LOADER {
    display: block;
    width: 150px;
    text-align: center;
    background-color: white;
    border-style: solid;
    border-radius: 5px;
    border-width: 2px;
    top: 20%;
    }
    

    It'll make a little white box with black borders rounded around the loading icon and put a text below.

    You can get the html code to add a bit more generic, or you can raise some html of the page if necessary. You can put it in a dynamic action on the load, put in a js file, or whatever. The css can be put in a page template or a css file.

    It's only less independable hanging in front or after updating because we are taking advantage of the system in place, which means that maybe he could change in the future - but this is hardly on the same scale as the 'hacking' the ir for example javascript.

  • Dynamic action based on the value in a table

    Greetings,

    I would like to use a dynamic action to disable a button depending on the value selected/entry in a field in tabular form. Thus, for example, if someone enters the value "LKSG", then a button is disabled (in this case, the 'Add Row' button).

    How I would do this using the tools of dynamic measurements? When I create a dynamic action, I see that my choice of Type 'selection' for dynamic action of shooting is point, area, button, object DOM, jQuery Selector. I don't know how to use a field in a presentation of tabular to firing. Or if it is possible.

    I use APEX version 4.1.1.00.23

    Thanks in advance!

    John

    jfosteroracle wrote:
    Tom - it's very useful! A few questions:

    -J' use a 'button of the model '. To use the static code for the button, I see that the model must include the #BUTTON_ID # in the model. I added the #BUTTON_ID # in the template like this:

    #LABEL#

    Where is the the BUTTON_ID should go, in the

    ?

    After adding this, it does not for a button of the model. But if I change the touch of a button HTML, your method works great!

    It is of course the difference between the two buttons: how they react and, above all, how they are marked upward. An HTML button is a real