Using the button ID in dynamic Action

Hi all

I want to call a dynamic action at the click of a button.
To this I added a button id in the template button and by calling the ID number that is the DOM object in dynamic action.
Is it possible that I can call the Id button dynamically in dynamic action?
I support the demand both in 4.0 and 4.1 so I can't take full advantage of 4.1 features now.


Thank you
RD

RD,

Sorry to interrupt, but I just wanted to report that hard-code the ID of the button as it will cause problems you are application 4.1, because of some behaviors changed between 4.0 and 4.1. I blogged about it here:

http://anthonyrayner.blogspot.com/2011/07/application-express-41-ButtonID-changed.html

There are a few ways around this, but I think that probably the simplest here would be to remove the id = "" #BUTTON_ID # "in your template button, ensuring you have the placeholder #BUTTON_ATTRIBUTES # in your model, then set a custom ID (for example id = 'submit_button') directly in the attributes of your button." You can then simply view this ID in your DA "DOM object" and it should work in 4.0 and 4.1.

Apart from that, and as says VANJ, your DA looks good and you should just be able to define all the measures 'True' you want, which fire when the button is clicked.

Kind regards
Anthony

Tags: Database

Similar Questions

  • Several plugins using the same JS file dynamic action

    Hello

    (Apex 4.0.2)

    I created two plugins for dynamic action, say Plugin1 and Plugin2. These two plugins are most of the time used together, so to keep things simple and ease of maintenance that all the JS need to the code specific to each plugin as well as of the common code is in a single file, for example plugins.js. So I download the same JS file to each plugin.

    In the generated page, using two plugins the JS file is loaded twice, as planned. Of course, at Apex, they are two different files even if their content is exactly the same.

    This is not ideal for me. What is the approach suggested in this case? Always keep the JS separate files for each plugin? And on any common code plugins share, duplicate in each JS file?

    Thank you
    Luis

    Hi Luis,.

    apex_javascript.add_library currently does not allow to specify p_key as for example apex_javascript.add_on_load_code is. It automatically calculates the value of 'key' based on the directory and name. I'll add an enhancement request to allow to override this default that will allow both plug-ins use the same 'key' to just load the file once.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • 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

  • Consult the Page element values in the dialog box confirm dynamic action

    Hello

    I can return values to the Page item in the dialog box confirm dynamic action.

    I have a dynamic Action and I using the Action - confirm to display the confirmation message. I'm trying to refer point Page P1_EMP_NO say in the Confirmation box as shown below.

    Action - confirm
    Text - * & P1_EMP_NO.* "test123".

    When I have to run so that a dynamic action, confirmation shows only 'test123', the value for P1_EMP_NO is not displayed.

    My question is that we can refer such values as described above OR is there any other way to do it.

    ----
    Thank you
    Deepak

    Hi Deepak,

    You can see no elements in the confirm dialog box.
    You will need to write your own javascript and refer to elements such as dialog box

    $v('P1_EMP_NO') 
    

    Kind regards
    Kees Vlek
    -----
    Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66
    If the answer to question please change replied and mark the appropriate post as correct / helpful.

  • APEX 4.0.1: restriction on the maximum number of dynamic actions on a page?

    Hello

    I would like to know if there is a restriction on the number of dynamic actions on a page.
    I have a page with 29 dynamic actions. Everything works fine on the page.
    If I create another dynamic action that display only an alert or nothing else, I have the HTTP 404 error message when I try to view the page.
    If I delete the old dynamic action and create a new one so that the page works fine.
    After several tests, it seems that there is a maximum number of DA on a page, but if someone can confirm that?

    Environment:
    APEX 4.0.1
    Embedded PL/SQL gateway

    Kind regards
    SDDC

    Hi sddc.

    There is no limit on the number of dynamic action that you have on a page, but it is very likely that you hit a size limit of a variable we use during the generation of the JavaScript code for the dynamic actions. You can activate a log more detailed error further details on your 404 error - see http://www.inside-oracle-apex.com/oracle-apex-got-404-not-found-2/ EPG instructions are in the comments.

    BTW, you might be able to reduce the number of you dynamic actions by specifying page several items in the attribute 'Product (s)' from the 'when' the article if all run the same code. Just separate them with a comma (no spaces). Such as: P1_MGR, P1_DEPTNO

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Safari freezes when I use the button "share" after OS updated 10.11.5

    Since I upgraded to OS X to 10.11.5 I can no longer use the ' share' button as it freezes Sarari. If Safari is open in multiple windows, it freezes only the active window. Pls does anyone know a fix?

    10.11.5 - Safari 9.1.1 - MacBook Pro OS (retina, 13-inch, mid-2014, 2.6 GHz Intel Core i5, 8 G 1600 MHz DDR3)

    Hello..

    Safe Mode boot removes the system caches can help after an update.

    Follow these steps to start in safe mode.

    Start or restart your Mac.

    As soon as you hear the startup tone, hold down the SHIFT key.

    Release the SHIFT key when you see the logo Apple appears on the screen.

    After the Apple logo appears, this may take longer than usual to reach the login screen or your office. This is because your Mac performs a check of directory of your drive to boot in safe mode.

    To leave safe mode, restart your computer without pressing any keys during startup.

    Then launch Safari and try to use the button share.

    On Safe Mode

  • When you use my touchpad I have to use the buttons I can't press. I get no response

    When you use my touchpad I get no response by tapping on the button, I can only use the buttons.

    Did you use winupdate to update "recommended updates"?

    Change settings winupdate for critical / Important updates ONLY and not recommended updates. Visit your laptop manufacturers website and download / install the drivers for the touchpad or if you have already done this, roll back the driver

  • To DEVELOP the image don't copy not from before to after when you use the buttons in the taskbar below.

    In Lightroom, DEVELOP the image does not copy from before to after after using the buttons below.

    Is it possible LR shows before and after the same?

    By clicking on a button with >< can="" make="" them="" the="">

    You can reset the State 'Before' of a picture by right-clicking on a stage in the history panel.

    Press the [\] to also get a 'before '.

  • Using the class Tween w / dynamic text

    Hi all

    I feel sort of my way along here. I'm certainly not an expert in what I'm looking for.

    I created a small flash animation that imports data from an XML file into different six fields of text and one image. It works wonder.

    However, the customer would be as a kind of animation on the text so it fade, scaling, color changing, movement... whatever. I've only used the class tween once but that sounds like the way to go (I think...?).

    I'm stuck. I've been searching the Net and I can't seem to make sense what I read when it comes to use the Tween class with dynamic text.

    I enclose my actionscript.

    Can someone point me in the right direction?

    Thank you!!

    Nevermind, I think I found what I needed. Thank you guys!

  • Save the Document to the network drive by using the button action

    I try to save a document to a network drive by using a button action. I'm using Acrobat 8 Pro. I have a script that records on the C: drive and it works fine.

    Script folder level

    var mySaveAs = app.trustedFunction (function (oDoc, cPath) {}

    app.beginPriv ();

    try {}

    oDoc.saveAs (cPath);

    } catch (e) {}

    App.Alert ("error during save it");

    }

    app.endPriv ();

    });

    Document-level sCript

    var this.path.replace = filePath (this.documentFileName, "");

    var NouveauNomFichier = this.getField("Mlastname").valueAsString + "" + this.getField("Mfirstname").valueAsString + "PcDec.pdf";

    mySaveAs (this, filePath + newFileName);

    The IT Department would like to go to the H: drive. Can I make adjustments to this set of scripts, or should I start from the beginning.

    I have limited experience with JavaScript.

    You can use the following command instead of what you have:

    filePath var = ' / h ';

    var NouveauNomFichier = this.getField("Mlastname").valueAsString + "" + this.getField("Mfirstname").valueAsString + "PcDec.pdf";

    mySaveAs (this, filePath + newFileName);

  • Use the button submit to trigger the validation and prompt to save instead of submit action

    I want to add a Submit button that will trigger the validation using the built-in functionality. This will work as well with the "validation of forms" setting on the properties of the form. See cliché below.

    However, if the validation success, I want to apply for registration dialog box instead actually submit the form using this line of code:

    app.execMenuItem("SaveAs");
    

    How is that possible?

    Tarek

    Hello

    to do this, you can simply call the function execValidate integrated, your form by using the following:

    var boValidate = xfa.form.form1.execValidate ();

    If {(boValidate)

    app.execMenuItem ("SaveAs");

    } else {}

    App.Alert ("Validation failed.");

    }

    I hope this will help you!

  • I am not happy with the new menu bar. I made a mistake in the change. Want to use the button refresh or open a new tab when requested without

    I made a mistake some how. I'm not the best a computer news as the new avg with the research changes. I want to return my old menu bar. I want to be able to open a new tab without going through an open search window. I don't like new tiny 'file above it don't help me. I want the option to click the Refresh button bit. How to get back to what I had before?

    I don't know what happened to your menus and toolbars. Has this happened after an update of Firefox, or a change in your add-ons?

    (1) you can switch between the Firefox button orange with its abbreviated menus and the classic menu bar, by using the following text:

    ALT + v (open the menu Classic view) > toolbars > Menu bar

    (2) in the new tab, you wanted it is empty? Are there currently AVG research? If you want to get rid of the search for AVG, you probably have to disable to remove one or more modules from here:

    Orange Firefox button or classic menu Tools > Modules > category: Extensions

    Does make a difference?

    (3) the reload button is nestled at the end of the address bar, after the star icon and the drop-marker. If you prefer that your button to reload on the bar itself, you can do that using the personalization feature.

    ALT + v (open the menu Classic view) > toolbars > customize

    In order to avoid the button reload to slip into the URL bar, you can perform the following actions:

    • Move the button reload for the left side of the address box
    • Move another button between the address box and reload
    • Move another button between the reload and stop buttons
    • Reverse the order of the reload and stop buttons

    You can get as you wish?

  • quiz or not? and... the button which has two actions?

    Hi all:

    This is the experience I want for the user:

    1. At the opening, the user will see instructions, a button (Counsellor response #1) and a set of five radio buttons on the right side of the screen.
    2. User clicks the answer to advise #1. Response text appears; at the same time, launching audio response.
    3. The user selects one of the option buttons and click on send. Feedback popup appears.
    4. When the user clicks to close the feedback popup, advise response #2 button is displayed.
    5. The user clicks on the reply button to advise #2.

    And so on, until the user has heard/read all the answers five Advisor.

    Originally, I used the Quiz tool multiple choice for that. (But this isn't technically a quiz. Users will not be marked on their choices, but will get "correct" and "incorrect" - type of feedback. They will also be encouraged to reflect on the reasons for their responses and be prepared to discuss with their supervisor.) I placed each answer to advise on a screen separate, and pretty well got it works this way, even though I had not yet added in the audio. Now I'm back after a long absence (period during which I forgot a lot of things), and I decided my existing design could be confusing for the user, so I switched to what you see here - all five answers (for a video of 'client' user to look on the previous screen) and their feedback on a single screen. And I tried to add the audio.

    I visited the advanced Actions panel and looked at the Captivate 'aid' of the page. I was following help along pretty well until the step that says "Complete writing code, using the options provided." I had no idea what they were referring to with the "code" or "provided options. So I tried to do what I want using just the properties panel for the answer of the Advisor button. The properties panel offers only one action per button, however.

    So my questions:

    1. How can I get a button to do two things at the same time (for example, display the text and play the audio)? If I could understand the advanced Actions 'code', I bet this button could do.

    2. I gave almost all Quiz items except the radio buttons and their links to comments. For example, when I added responses Advisor #2-#5 on the screen, I discovered I could not simply copy and paste from other slides or show the style of question on the screen, that I wanted to move. So I used Legend boxes. In addition, it seemed to me that a question box there is no advantage in this regard. So my question is: will, abandoning architecture quiz problems on the road?

    I'm sorry it's so long. Thanks in advance!

    It does not resemble me you should use quizzes Questions to this interaction in any case.  This is not what they have been specifically designed for.

    You can perform multiple actions in a single button click using the Standard Actions or conditional Actions.  I suggest that you will probably need to use this last longer than probably he finally some variables involved so that you can check what other options the user has already tried.

    However, I would hasten also to point out that you take here something that might be beyond your current understanding of interactivity of Captivate.  You may need to start studying up on top of the Variables, Run-time Events, stock Standard, conditional Actions and perhaps even of shared Actions.  Understanding these concepts will put you in better shape to succeed this interaction.

  • Using the button


    Hello-

    I have a button that I use to send an entire PDF file by e-mail. I am currently using the simple Action (mailto :) to send the form. I was wondering is there a way to actually lock/secure form to prevent changes, before actually sending the form? Maybe send read-only? That way when a user receives the form, they cannot edit or change the shape.

    Any help will be greatly appreciated.

    Thanks in advance for your help.

    Randy

    Gilad thanks for your suggestion. Below is a little more than what I was looking for and works perfectly.

    The sub brand of script all fields read-only

    for (var i = this.numFields - 1; i > - 1; i--)

    {var Field_Name = this.getNthFieldName (i);}

    this.getField (fieldName) .readonly = true ;}

    Thanks again. I appreciate your help.

  • Set the value hidden with dynamic action

    This is probably very simple, but I don't know exactly what I'm doing wrong.  I would like to use a dynamic action to set the value of an item hidden in the value of a selection list when that select list of changes.  So what I have is:

    Event: change

    Selection type: point

    Article: P1_SELECT

    Action: Set

    Set type: PL/SQL Expression

    PL / SQL: P1_SELECT

    Items concerned:

    Selection type: point

    Point: P1_HIDDEN

    where P1_SELECT is my list selection and the P1_HIDDEN is my element hidden.

    It doesn't seem to work.  I don't know that I'm doing something very simple, bad.  This should be easy points for someone!

    Thank you!

    John

    It's actually a session typical State missunderstanding. When the selection list is changed, it does not change the value of session state, but only the value of the side (browser) client. If you set value action will set the status value for current session on the element hidden, which will probably be NULL (or any value it is on, you can see in the session tab in the developer bar).

    Instead of a type of expression plsql for your set value action, must change to a javascript expression:

    $v ("P1_SELECT")

    who will get the value of the element of page P1_SELECT currently on the page.

    PS: also, in your affected items your article is ": P1_HIDDEN"-is two points in front of deliberate? It shouldn't be there

    PS2: If you mean to send the page, then you can set the property to 'protect the value' of the hidden element to 'No', otherwise you will receive a checksum error!

Maybe you are looking for

  • Untrusted connection error message on the computer at home, but can successfully connect to work

    I've been connecting to this site for some time without problem (a notebook online for school son), but yesterday when I tried to connect from machine at home, got "this connection is Untrusted" error message. However, I was able to connect without p

  • dv5-1233se battery

    My battery is dead. I need a replacement, but I see different are available. 6 or 12 cells? What is the good?

  • admin Windows vista error

    We have a dell e521 dim with windows vista We were logging in with the SAME password since 2007.  I used the mode safe mode with command prompt and from the admin account SEZ he was created and changed the same day.  I know that it is never changed.

  • Need quick help to package and sign the application.

    Hey guys,. I'm trying to submit my application. I crossed the babou of my product management process and added the product. Now I see my registered product name, status shows the project and releases and merchandise see none. What should I do now to

  • BlackBerry smartphones, I can't scroll to the top

    I can't scroll to the top and it is not a software problem, I am looking for another way to scroll to the top in my conversations