PL/SQL after button click

Hello

I have a button that calls a javascript, via the option "Option URL Redirect" function, when it is selected.

Is it possible in APEX have the same button click Run code PL/SQL to change the database, lets say create an empty table - "create fictitious table (identification number)?

Ideally the PL/SQL runs before the javascript.

I tried various process and management options, but it seems that only the javascript code is called.

Any help appreciated,
Dave

Hello Dave,

You can call an application process (PL/SQL) (type: On Demand) of in Javascript.
Like that (to execute the PL/SQL procedure Get_Company_Address):
var getter = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is Get_Company_Address', 0);
gReturn = getter.get ();

Greetings,
Roel

http://roelhartman.blogspot.com/
http://www.bloggingaboutoracle.org/
http://www.Logica.com/

You can assign this answer to your question in marking it as useful or Correct ;-)

Tags: Database

Similar Questions

  • Previous screens Menu appearing after button click

    Hi people,

    Do not know how to solve this problem... I'm probably just not to consume an event somewhere.

    My application is a multi-screen application. The user navigates by selecting (especially) options menu or clicking / tapping on the ButtonField. I find that when a user clicks a button in the application that pushes a new screen in the stack of navigation (in his listener to change) the following happens:

    • The new screen is displayed
    • Menu of the previous screen is displayed immediately

    If the user cancels the incorrect menu... Then opens a new menu, then the appropriate menu appears.

    I Build menu on the fly by substituting the screen makeMenu method. I call super first, and then create my own menu items.

    Buttons just run a FieldChangeListener that grows the new screen in the navigation stack.

    This behavior occurs both on my BB 8350i physical device and in the BB Storm Simulator. I use the component package 4.7.0.

    How can I stop the previous screen menu to appear immediately after a button click event pushes a new screen?

    Thank you!

    Add CONSUME_CLICK in your ButtonField constructor style bits.

  • Want to stay on the same blade after button click - Captivate 5

    I have a button that I use to bring up a separate, a directory browser window. I need this button on every page of the module. I've got boxes to click to control the flow of the timeline from one page to another. When the user clicks on the glossary, it should stay on the current page, its information and dismiss the glossary. When I run it, the timeline stops for the button, and if clicked, the timeline progresses at the break of the click box, always on the same page. But if the user clicks on the button again, the pop-up window works but Captivate goes to the next page. Is it possible to prevent this, so that a user can click any number of times on the button without going through the progress of the timeline past this page?

    Thanks for any help that anyone can provide.

    Hi DS,.

    I use a javascript call to do what you describe all the time.

    Since I use all the time I incorporate the real full javascript in the "standard.js" Captivate file. This is the complete script:

    function openBrWindow (theURL, winName, features)
    {
    Window.Open (Theurl, winName, Features);
    }

    I save the file standard.js. On my desktop, it's the path to this file:

    C:\Program Files\Adobe\Adobe Captivate 5\Templates\Publish\standard.js

    Now I can call the script anytime.

    Here's how to set up the click-box:

    If you look at the picture of Rick (thanks Rick) in the menu control properties to the title of the Action, for the success, choose Run Javascript.

    Then click on the button in the Script window, it opens an empty window. Given that you call just the javascript code, you need not put the script in the window. Here is an example:

    JavaScript:openBrWindow('myURL.html','thewindowname','height=800px,Width=1000px,ScrollBars_=yes');

    Example of THS opens a window 800px high and 1000 px in width with the scroll bars. You can add additional attributes if you wish. Make sure the URL is correct and is the correct path and if you have more than one of them on a slide that the name of the window will have to be different. (If this continues the slide to the slide you don't have to have them all as a single, only for more than one on a slide.

    Now, click on the small arrow next to the button of the Script window. This produces a small drop down (as shown on the picture of Rick). Make sure you select 'Top' and disable the 'continue playing the Project '.

    This control makes the newly laid on the project window and stops playback of the slide. You can set other options in the properties to enable or disable captions as needed.

    I hope this helps.

    TPK

  • Why my iPhoto has started 'quit unexpectely' shortly after I click on the info button to access information on a particular photo?

    Why my iPhoto has started "leaving non-response" shortly after I click on the "info" button in order to access information about a particular photo?  It happens with all the photos in my iPhoto.

    I assume you are using v9.4.3 on 10.8.5

    Huxly647 discovered this fix

    1 goto /Applications/iPhoto.app/Contents/Resources

    2 delete the files 'googlemap.html' and googlesearch.html

    IPhoto no longer crashes, site does not work, but it doesn't bother me too much.

  • Insert values LOV selection after you click the button: oracle apex 5.0

    mail1.JPG

    I have this lov where I select Qty and after I click on cart then it inserts in basket on change event his works very well, but for the button click works not

    So basically it will check all lines and that one has 1 amount it will insert only.

    Apex. Oracle.com

    testdump/developer/Office

    page 6

    Hi Dominique,.

    Change your java script function,

    var arr_f01 = [];
    var arr_f02 = [];
    var arr_f03 = [];
    var arr_f04 = [];
    var arr_f05 = [];
    
    function generate_array_data(pThis) {
    var id;
    var name;
    var type;
    var price; 
    
    if($(pThis).val() > 0)
    { 
    
      id = $(pThis).closest('tr').children('td[headers="ID"]').text() ;
      name = $(pThis).closest('tr').children('td[headers="NAME"]').text() ;
      type = $(pThis).closest('tr').children('td[headers="TYPE"]').text() ;
      price = $(pThis).closest('tr').children('td[headers="PRICE"]').text() ;
    
    arr_f01.push($(pThis).val());
    arr_f02.push(id);
    arr_f03.push(name);
    arr_f04.push(price);
    arr_f05.push(type);
    }
    }
    
    function insert_changed_data() {
    apex.server.process (
      "Update"
    , {  f01: arr_f01, f02: arr_f02, f03: arr_f03, f04: arr_f04, f05: arr_f05
      }
    , { dataType: 'text',success: function(pData){alert('Data Inserted in Product Table'); }
    });
      arr_f01 = [];
      arr_f02 = [];
      arr_f03 = [];
      arr_f04 = [];
      arr_f05 = [];
    }
    

    Hope this helps you,

    Kind regards

    Jitendra

  • I downloaded LR6 to a new HP Pavilion computer and when I try to change in developing all I get is a blue screen. Photos are .dng when I click on the before / after button, I get a partial view of the picture and the part is still the blue light in the re

    I downloaded LR6 to a new computer HP Pavilion. 10 windows and when I try to change in developing all that I get is a blue screen. Photos are .dng but when I click on the before / after button, I get a partial view of the picture and the part is still the blue light in the rear section. When in the module library, photography is able to be seen, but as soon as I click on the development, I see a flash of the photo and then the screen is all blue where I would like to see the photo. I opened both the old and the new computer and against each element and they are identical with the exception of the blue screen. I wonder if it has something to do with the magnifying glass?

    Go in Edition > Preferences > Performance and uncheck CPU graph use.

  • Premiere Pro debug event - Premiere Pro has encountered an error.  [..-.. \src\TickTime.cpp-290 button] continue alone. After you click Next message: Sorry, a serious error has occurred which requires Adobe Premiere Pro stop. We will try to save yo

    Premiere Pro debug event - Premiere Pro has encountered an error.  [..-.. \src\TickTime.cpp-290 button] continue alone. After you click Next message: Sorry, a serious error has occurred which requires Adobe Premiere Pro stop. We will try to save your current project.  Button OK I don t open my project - please help me! My project of losing many hours of work of panic!

    Hello

    Follow this: FAQ: how to fix projects that get an error "TickTime.cpp - 290" after opening a project.

    Thank you

    Regalo

  • Input text components become empty after a click on the button "submit"

    Hello

    I work with the JDeveloper 11.1.1.6.0. I met a strange behavior with text entry components and submitting values. When I change components of text with automatic shipment set to false him then click on submit. All components except just changed a becoming white.
    When I click the button now validate all the correct values are new poster.
    If I do this on components with auto submit set to true , it works as it should work.

    Is there a way to change this behavior? Is this a bug, or if I did something wrong?

    Thanks in advance.
    Alex

    Hello

    When I set partialSubmit to true for this button, my validation button is not activated after the click. This suggests that the changed values are not really subject.

    Add partialTriggers ="" to commit btn

    Kind regards

  • Remove custom next button click interactions to be completed

    I created a slide that has 8 objects with boxes to click. Click on each object to display text and an image. Advanced action script associated with each area click "shows" the related text/graphic and "hides" all other text/graphics (because users can click on any order).

    It is that everything is working fine, but now I need to delete our custom button according to what the user has clicked on each object. I know I can do this by setting up variables and conditional actions for each click box, but it will be a lot of time. Before I go this route, I would like to know if there is less complex way to achieve this. Any ideas? Thank you!

    I know, the forum search does not work very well, but it has been explained several times.  Indeed, you will need to implement conditional actions advanced or shared for each click box. Before I explain, tell me if you allow several clicks on every box of click, or're - OK to disable a click box once it has been clicked? That would simplify the situation because you can create a counter variable. If you allow several clicks, you will need to create a variable user for each box and will have to check all the variables after each click to see if the next button can be made visible or not.

  • before / after button in the development module has disappeared. How can I get that back?

    before / after button in the development module has disappeared. How can I get that back?

    Click the triangle to the right of the toolbar and select New Display Modes to see before & after

  • Add pop-up information after button/script is run.

    Can you add a pop up with information after a button is executed?  I am new to LiveCycle and have, with the help of this forum, created a button that blocks form fields to fill in the runtime.  What I was asking is if a pop up can be added after button advising the user to save the form with a different file name (to preserve the basic shape for future use) before finalizing the document.

    For example, we created a quote form to send to our domain to use when preparing quotations for customers.  Before they send the quote to the customer, I added the button to lock the fields first.  However, if I have this right, and they record the form, without doing a save as a different file name, they eliminate the possibility of using the base again form.

    I was also wondering if the button could be eliminated during the recording as another process of file name (so the end recipient can not see the button at all).

    Hope I have explained this clearly enough.

    Other thoughts on how other form designers have done similar tasks would be appreciated also.

    Thank you!!!

    Hello

    A button has three events that are associated with a user by clicking on the button:
    mouseDown
    mouseUp
    Click

    It is generally not a good idea to put the script that modifies the form or in the event mouseDown because he done something before the user committed fully to click action. In other words the user could click on the button and then change their mind and move the mouse over the button until they release the click.

    That leaves two events. IF all of your script works as a block, then you must place it in the click event. But if it's not, and you need two separate events, then you can put the first part (action) in the mouseUp event and the last part in the click event.

    On the basis that it will do all the work in the click event, you might have the following two lines after the lock in all areas:

    This.Presence = "invisible"; mask the lock button
    xfa.host.messageBox ("the shape is now locked, please remember to make sure that you save it under a different name", "customer quotations", 3, 0);

    He gets a status message to the user, confirming that the form is locked. If you get this working then it'll get you out blocks.

    It's a little better to make sure that the user registered as a new name before lock you the form. You could do cela two ways. One would be to test the string against the name of the template file name. If there are different means that the user has changed the form. However, it can be difficult to maintain, because if you rename the model, you have to think about going to a change the script.

    Another way would be to wrap the entire script block in another messageBox statement resembling what is clicked (Yes or no).

    It would look like this:

    var nChoice = xfa.host.messageBox ("you are about to block the form.\n\nIf you don't have not renamed the file, you will not be able to lock the form. Please click on no and rename the form first.\n\nHave you renamed this file? ","customer quotations ", 1, 2);

    If (nChoice is 4)
    {
    ... All your script...

    This.Presence = "invisible"; mask the lock button
    xfa.host.messageBox ("the shape is now locked, please remember to make sure that you save it under a different name", "customer quotations", 3, 0);
    } //close if statement.

    I hope this helps,

    Niall

  • PPR for the updating of the table after a click in a butto in Jdeveloper 10.1.3 - thanks

    Hi people,

    I looked through many messages about refreshing the page, but still did not solve my problem. Please help me. It's quite URGENT.

    I have a table with a command button. After you click the data insertion is engaged and the table is supposed to be updated to reflect the changes.

    Now I use PPR as my solution: the button is the initiator and the table is the target. I put the button property: part delivery = true and its id as a partial release of the table value

    What I missed, please?

    Note: reloading of the entire page is not a solution for me. (The table is incorporated within a region of showOneTab and there are other tables in different tabs)

    Thanks in advance!

    Assuming that nothing wrong with the JavaScript syntax, the explanation might be: If you ActionListener Installer (data transaction method) and javaScript on a button-click the button, the button click javaScript will not be executed. (???)

    This is not the case. In my application, the two actions of script and java onclick button are executed. Javascript onclick fires first, then the action of the button. It should be the same for actionlistener as well.

    Regarding the updating of the table after a click of a button inside the table, you can do this by forcing the partial relaxation of the table of a bean to support using addPartialTarget.

    On the actionListener to the button call the below the backup method of bean.

    Here is the code example:

        public void btnSample_actionListener(ActionEvent actionEvent) {
           // First execute the method on the button
           BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("buttonMethod");
            Object result = operationBinding.execute();
    
            //Refresh the iterator of table and partial trigger the table
            OperationBinding operationBindingTab =
                bindings.getOperationBinding("RefreshTable");
            Object resultTab = operationBindingTab.execute();
            AdfFacesContext.getCurrentInstance().addPartialTarget(myTable);
    

    RefreshTable is an action that runs the Execute method on the table iterator.

    Thank you
    Mitesh.

  • WIN8 trackpoint middle third button click action

    Hello. Using a W530 ThinkPad UltraNav driver 16.2.5.0 version with Windows 8. I tried to uninstall--> restart-> reinstall-> restart. The middle button does scrolling. In settings UltraNav (TrackPoint), the only option is to set the sensitivity of stick and allow press to click. Please advise on how to activate the middle button click.

    Note of the moderator; post moved to submit here, under the direction of their relevance


  • to start windows application aqomuyix.dll after I click OK, windows seems to work OK

    Original title: aqomuyix.dll

    to start windows application aqomuyix.dll after I click OK, windows seems to works OK, where can I find this file?

    Hello

    1 how long have you been faced with this problem?
    2. don't you make changes on the computer before this problem?
    3. What is the exact error message?

    You can try to perform the clean boot on the calculation and check.
    From your computer by using a minimal set of drivers and startup programs so that you can determine if a background program is interfering with your game or program. This type of boot is known as a "clean boot".

    Reference:
    How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:
    1. click on start and then click Run.
    2. type msconfig and click OK.

    The System Configuration Utility dialog box appears.

    3. click on the tab general, click Normal Startup - load all services and device drivers and then click OK.
    4. When prompted, click on restart to restart the computer.

  • Button Click event

    Hello

    I added a button on the screen of my Blackberry and I have a class called WebCall who has the Socket connection

    http://www.BlackBerry.com/developers/docs/7.1.0api/javax/microedition/IO/SocketConnection.html

    I want that when I click the button, it calls the WebCall class.

    How to archive this?

    Thank you

    Hamid Weiss

    Citing a treatment on a button click has been discussed on this thread:

    http://supportforums.BlackBerry.com/T5/Java-development/pushing-screen/TD-p/2399831

    In this case, you should be aware that the button click process runs on the event Thread.  But to make blocking as network activity operations, you must do this in your own Thread:

    http://supportforums.BlackBerry.com/T5/Java-development/what-is-the-event-thread/Ta-p/446865

    http://supportforums.BlackBerry.com/T5/Java-development/blocking-operation-not-permitted-on-event-di...

    So, you need start a Thread to do the treatment on your network.  Processing on BlackBerry thread is quite similar to the standard Java Thread processing, so there is no specific documentation of BB for this, but you should a lot of samples of Java if you look around.

    According to the first link that I've referenced, I would recommend that you study the samples you will find.  They will never do exactly what you want, but while you are learning, it is better to start with a sample of work and make small changes to get to what you want, try to create everything from scratch.

    And you should make yourself familiar with this micro-site:

    http://developer.BlackBerry.com/Java/

    Good luck and have fun!

Maybe you are looking for

  • Safari wants to use keychain "prowat."

    I get this message and want to stop it. I have no need of a 'keyring', I don't want my passwords stored in a set of keys. How can I stop this message. He always appears twice in a row.

  • signal delay

    Hello My goal is to simulate a pulse generator, and I have some problems with double pulses. (see first attachment) I want to delay a signal from simulation, and I need to set this delay. At the beginning, I try with the Y [i] = X [n - i] VI.vi and t

  • complete c drive

    I just bought a computer Aspire v 17 nitro. It is the first time I had a computer with two drives. The first is 60 gig and the second 2 TB. I tried to install all programs installed to c and the disc is full and Red display. I don't know how to move

  • ListField insertion during execution

    Hello I have developed custom listfield using listfield call back like that... whenever I click on any listfield I should add two buttons like that. ..  can someone help me... Thanks in advance...

  • BlackBerry Smartphones blackberry maps

    I have a blackberry 9320 and I live in South Africa now my BB is not blackberry maps, but she has this built in link to a maps application that has expired the app you download on this site is not worrk so I was wondering how I can get the Blackberry