How to read what button click before submitting?

Hi all

I have a page where I can add, delete, or save data changes.

I create a "send - after calculations and validations' process with PLSQL code:

-----
DECLARE
v_user VARCHAR2 (256);
BEGIN
v_user: = apex_custom_auth.get_user;

INSERT INTO p3_audyt (data_logowania
uzytkownik
ip
sym_procesu
sym_zadania
akcja
test)
VALUES (SYSDATE
v_user
, SYS_CONTEXT ('userenv', 'IPAddress')
,: p31_symbol_procesu
,: p31_symbol_zadania
, 'CREATE '.
, 'x');
END;
-----

Process is activated by conditions "when you press the button - CREATE (Create).

Now my question is:

How can alter this process or what should I put instead of the value 'CREATE' to run the process without conditions and data insert correctly the value of the button pressed?

I have 2 solutions (a lot of code and problematic). But I think that there is certainly a better solution :

First of all:
-I can create processes activated by the button set (code will be the same as above, just change the value to 'action' - referring to the action)-a lot of code
-Can I join JS code (aid HTP.p, something like this http://deneskubicek.blogspot.com/2009/05/execute-javascript-throuhg-plsql.html or object DOM to get the name of the button). Dynamic action before and set the value of the element for the click on the button (if you need 3 dynamic actions). Then read this article in the mix - problematic code, and I don't test this solution

I try use read point (: point) which takes place before submitting, but until the page submit this element cannot be read (the only possibility is read by JS used $v, but then I need to use above solution to mix code)

Thanks for help.
Ndejo

Edited by: 879529 2012-04-17 13:40

I think maybe want to make reference to: ASK, who will tell you what button has been activated - make sure the buttons have different names.

Tags: Database

Similar Questions

  • How to create a button 'Click me' on a pop up image?

    How to create a button 'Click me' on a pop up image?

    It does not work like that.

    Links are created with HTML code.

    They must be inside an HTML document.

    Put your image and links within a new upploadare

    Link your local script to the HTML file and not the image file.

    Although personally, I'd use a modal window instead of these old pop-ups.

    Nancy O.

  • How to remove a button click menu

    I made a button aaray

    So how to remove menu when you click on to the next screen

    You can add simply detect in, click on the button to

    buttonField.setChangeListener (new FieldChangeListener() {}
    ' Public Sub fieldChanged (field field, int context) {}
    Write code here to run when the button is clicked.
                                        
    }
    });

    Sample code to change the menu

    /**
    * Method to menu
    */
    protected void makeMenu (menu Menu, int context) {}

    ViewFullScreenMenuItem MenuItem = new MenuItem ("view fullscreen",
    0, 1) {}

    public void run() {}
    If (currentBitmap! = null) {}
    pushFullScreenViewPrizeScreen();
    }
    }
    };
    menu.deleteAll ();
    menu. Add (viewFullScreenMenuItem);
    }

  • How can I gray button 'Next' until a user clicks "submit"?

    Hi guys,.

    Despite how I say or post it in the slides, users read the instructions before the quiz. As a result, making them the quiz and then wondering why they scored zero when they answered all questions. So my question is, how can I turn off/disable/gray-out the next until a user button click on send after answering the question?

    I've got 6.1 Captivate on a Windows platform.

    Advice appreciated.

    Carl

    Lateral thinking again.  Remove the clear button by unchecking the clear option in the tab properties of Quiz on the slide and then turn it back on.  The newly introduced to the slide button will be at the top level.  In this way, you can control the order and place the button on the top of the next button.

  • How Firefox knows what tabs/windows you had open when click you on "restore session"? If it is a temporary file or something, where it is preserved?

    My computer crashed and will not back to zero (I think it's because of a bad repair of Windows XP after a virus has passed my security). Before it crashed, I was easily 20 tabs open in Firefox, some of them being very important, but I don't remember what some of them were called or how I found them. I was wondering how Firefox knows what tabs/windows to open when you click on 'Restore Session', if it is stored in a file of all kinds, so that I could start on Linux, download the file and somehow use it once I have installed my new buy Win7. It is not a Firefox problem, but I didn't know where it is best to ask this question.

    See also http://kb.mozillazine.org/Session_Restore

  • How to read a counter value for the separation of the two edge before meter is stopped by the second edge (6602 Council)?

    I use a timer/counter with DAQmx 6602. I use the separation of two - available via DAQmx cash edge. Count between the two edges works properly, however I do not know how to read the value of the counter during the counting operation (i.e. after the first edge triggered the beginning of the count, but before the second edge triggered the end of the counting). I'll have to wait for the second goes off the edge of the end of the countdown until I can get a counter value. I need to be able to access the current value of the County during the count operation. This was possible in traditional DAQ. How can it be accomplished using DAQmx?

    Ah shoot - I was afraid that this might be the case (for what it's worth, my series of X returned intermediate values, but the material and the underlying driver are quite different)...

    You just need to take one measure at a time or you are buffer several measures of separation of the two edges at the same time?  So just to take one measure at a time, you can set a task of edges of count using the database internal time as the source using an arm start trigger (first edge) and a sample of clock (second Board) to work around the problem.

    Best regards

  • catch what panic button clicked

    Hi all

    I'm using Oracle forms 10g on windows xp, I'm doing a simple example on how to catch

    What this operator clicked button. I pulled my alert button, I mean when I pressed

    of a button, it will trigger my alert with 3 buttons, the message appear initially in this alert is defined for the property

    palette to tell the operator (chose one only ONE of THEM), the operator has three option (Yes, no, cancel).

    I need when the operator click (Yes) the same fire alert again with the new message say

    (You click (Yes))

    This my code, but the same alert, it is not fire once again with the new message.
    declare
         al_id alert;
         selected_button number;
         msg1 varchar2(10);
         msg2 varchar2(10);
         msg3 varchar2(10);
    begin
         al_id:=find_alert('my_alert');
         if Id_Null(al_id) then 
              Message('User_Warning alert does not exist'); 
              RAISE Form_Trigger_Failure; 
         end if; 
              /* 
                   ** Show the warning alert
                    */ 
         selected_button := Show_Alert(al_id); 
         if selected_button=ALERT_BUTTON1 then
           msg1:='You clicked on (Yes)';
              set_alert_property(al_id, alert_message_text,msg1);
              selected_button:=show_alert(al_id);
         elsif selected_button=alert_button2 then
           msg2:='The operator clicked on (No)';
           set_alert_property(al_id, alert_message_text,msg2);
              selected_button:=show_alert(al_id);
         elsif selected_button=alert_button3 then
           msg3:='The operator clicked Cancel';
           set_alert_property(al_id, alert_message_text,msg3);
           selected_button:=show_alert(al_id);
         end if;
         
    end;
    
         
              
    Please I need your help

    concerning

    Thank you

    Yes, there is error in your code

    Msg1 varchar2 (10);
    MSG2 varchar2 (10);
    msg3 varchar2 (10);

    Increase the size of the data type for these variables such...

    Msg1 varchar2 (100);
    MSG2 varchar2 (100);
    msg3 varchar2 (100);

    then it will not work...

    -Clément

  • How to determine, which is click on the command button

    Hello

    I have the following code, which adds 3 buttons on the form. I wanted to perform actions when you click on these buttons. NavigationClick method below is fired when button is clicked. Impossible to determine exactly what IAM button that is clicked as I want to run different action for the different button click?

    last class MainMenu extends form {}
    ButtonField B1;
    ButtonField B2;
    ButtonField B3;

    MainMenu()
    {
           
    setTitle (new LabelField ("UI Testing", LabelField.ELLIPSIS |)) LabelField.USE_ALL_WIDTH));
    Add (new LabelField ("Welcome!"));
    B1 = new ButtonField ("Screen 1");
    B2 = new ButtonField ("Screen 2");
    B3 = new ButtonField ("form 3");
           
    VFM VerticalFieldManager = new VerticalFieldManager (Manager.VERTICAL_SCROLL);
    VFM. Add (B1);
    VFM. Add (B2);
    VFM. Add (B3);
           
    Add (VFM);
           
    }

    public boolean navigationClick (int status, int time)
    {
    If ((status & KeypadListener.STATUS_TRACKWHEEL) == KeypadListener.STATUS_TRACKWHEEL)
    {
    Dialog.Alert("1!");
    Entry came on the wheel.
    } else if ((status & KeypadListener.STATUS_FOUR_WAY) == KeypadListener.STATUS_FOUR_WAY) {}
    Entry came from a four-way navigation entry-level camera
           
    Dialog.Alert("2!");
    }
    Return super.navigationClick (status, time);
    }
       
    }
    Thank you

    Use this option.

    B1.setChangeListener (new FieldChangeListener () {}

    ' Public Sub fieldChanged (field field, int context) {}

    }

    }

    field.getIndex () will give you the field index.

  • I'm looking to have an input field with the search button, search button click the search button below the search results to display. How can I do?

    I'm looking to have an input field with the search button, search button click the search button below the search results to display. How can I do?

    Hello

    998765 wrote:

    You are right

    Please pass by the database 2 day + Application Express Developer's Guide

    Check this code example

    1 create a text field element I say P1_INPUT_FIELD

    2. create a button

    Name of the button: search

    Action: Send the page

    3. change your report query and where clause to your query below

    It will search on ename and empno, in this way, you can add more columns

    SELECT EMPNO
               , ENAME
               , SAL
               , MGR
               , COMM
      FROM EMP
    WHERE TRIM(UPPER(ENAME)) like '%' || TRIM(UPPER(:P1_INPUT_FIELD)) || '%'
           OR TRIM(UPPER(EMPNO)) like '%' || TRIM(UPPER(:P1_INPUT_FIELD)) || '%'
    

    4. we find the source of the region-> page article to submit-> P1_INPUT_FIELD

    Hope this helps you,

    Kind regards

    Jitendra

  • (1) how to undo what I have done to my tools?  All I get is hand shoiwing when I click on a tool and tool wil does not. (2) how can I get my CC installed in my dektop in addition to my laptop?

    (1) how to undo what I have done to my tools?  All I get is hand shoiwing when I click on a tool and tool wil does not. (2) how can I get my CC installed in my dektop in addition to my laptop?

    Click window > workspace and restore of your workspace.

    to install the application of office cc, https://creative.adobe.com/products/creative-cloud

  • How to disable a button when you click on another and vice versa in busy border?

    Hi guys!

    I have a question about the buttons!

    I'm not an expert in coding, but I managed to create buttons with actions, but the question is how do I deactivate (deselect) a button by clicking on another and how to activate it when clicking on it?

    I would really appreciate your help!

    Thank you!

    composition of loan:

    button_1 = 0;

    button_2 = 0;

    in the click event of button 1

    If (button_1 == 0)
    {
    button_1 = 1;
    sym.getSymbol("button_1").play (0);  play anything, this button is

    If (button_2 == 1)
    {
    sym.getSymbol("button_2").playReverse ();   Reset everything that made the other button
    button_2 = 0;
    }
    }

    in the click event of button 2

    If (button_2 == 0)
    {
    button_2 = 1;
    sym.getSymbol("button_2").play (0);  play anything, this button is

    If (button_1 == 1)
    {
    sym.getSymbol("button_1").playReverse ();   Reset everything that made the other button
    button_1 = 0;
    }
    }

  • How to reset the button incase they click New to create the same effect?

    OK guys,

    So im at a stop of triggers on the timeline, EX: sym.stop (1000);

    Then I'm animating a click on an element div/EX function:

    SYM.$("Rectangle2Copy23"). Animate({left:'3px',height:'77'});)

    How to reset the button incase they click New to create the same effect?

    Instead the object does nothing because it is already in position.

    I would go back to its original position and recreate the same effect.

    Problem is that the timeline stops... even if I go to another point in the timeline panel

    the last position assigned by the rest effect, I want to reset it even on the same point on the timeline...

    Thank you

    First of all, you need to upgrade your board animate to 2014.1.1 to open the membership re-shared, and

    then check this out:

    Dropbox - Archive_upgraded.rar

    Note: I added jquery explicitly for use. animate(), like the last Animate edge has no dependency on jQuery.

    HTH,

    Vivekuma

  • How to read these .dmp files to figure out what made my computer crash?

    For some time now, I've been crashing when playing some games on my computer and I can't for the life of understand me how to read the dump of the computer files.

    http://www.sendspace.com/filegroup/8Gj9VzD2SKc7%2FIy4d%2BMmMbokVjIju92H
    These are the files to dump.

    Theres a problem with your nvidia driver & installation of DirectX

    BlueScreenView or WinDbg can help reading dmp files

  • How to follow and find which button clicked in the CC script to animate.

    Dear friends,

    IAM converting an e-learning lessons in CC to animate. I have the following code for an activity as each button click and see corresponding popups.

    import flash.events.MouseEvent;

    for (var i: Number = 1; i < = 5; i ++)

    {

    This ["btn" + i] .addEventListener (MouseEvent.CLICK, btn_clicked);

    }

    function btn_clicked(event:MouseEvent)

    {

    trace (Event.Target.Name.substr (3));

    }

    Kindly help me to convert this code to java script in CC animate.

    Thanks in advance,

    Syed Abdul Rahim

    Hi friends,

    Thks for your help. I did the work, with the following code:

    This.Stop ();
    var sel_but = "";
    _this = this;
    to (increase 1 = 1; increase 1<= 7;="" inc1++)="">
    This ["btn_" + increase 1] .name = "button" + increase 1.
    This ["btn_" + increase 1] .addEventListener ("click", fl_MouseClickHandler);
    }

    function fl_MouseClickHandler (event) {}
    sel_but = event.target.name.substr (6).
    _this.Popup.gotoAndPlay ('pg' + sel_but);
    }

    May be useful to some body...

    Thank you and best regards,

    Syed Abdul Rahim

  • How to read a blu ray film in vista

    How to read a blu ray movie in family vista premium sp1, my blu ray drive is an optiarc bdrom bc5500s with a provider of firmware Rev 1.83 pc is an hp dv7-1095eo

    How to read a blu ray movie in family vista premium sp1, my blu ray drive is an optiarc bdrom bc5500s with a provider of firmware Rev 1.83 pc is an hp dv7-1095eo

    Consult the following site who says he has a fix important firmware for your machine.  Maybe that's the answer: http://www.sony-optiarc.eu/supportservice/downloads/bluraydrivesnotebooks/bc5500s.html. (this page also includes support contact us links).  I don't know if you have to go through them or through HP, but it can't hurt to try.  If the player Blu Ray comes with your HP, you can NOT use this solution as it is does not work, but it can cause damage.  I don "t know how you have it so you have to answer this question, and then do the right thing (even if it means that you can't use the hotfix).

    You can get in trouble with your device drivers.  Go to Device Manager by going to start / find and type Device Manager and enter and then double-click on the program icon that appears.  Check each device to a red x, yellow! or white?  These identify devices with problems probably (drivers, but also of conflict or something else).  Click on each for more details and troubleshooting tips.  Check for the blu ray devie and make sure it says that it is a blu ray devie drive (if it does not say blu ray in the description it likely somehow is not recognizing that it is a device of blu ray and pilots could be the answer). If you need to get the drivers (and you need to do at least for blu - ray device even if you installed from the disc supplied with the deivice - ago maybe more recent updates available for this device and your version of Vista and all the others you have time to do - they can help way beyond simply solve this problem) leave the computer dealer or the manufacturer of the device (NOT of Microsoft Updates).  In fact, you must disable automatic updates in Windows Update driver as follows: http://www.addictivetips.com/windows-tips/how-to-disable-automatic-driver-installation-in-windows-vista/. Follow these steps to get the drivers: http://pcsupport.about.com/od/driverssupport/ht/driverdlmfgr.htm.  Once you have the drivers, you can install them via the Manager device as follows: http://www.vistax64.com/tutorials/193584-device-manager-install-driver.html.

    It is not a Vista problem from your description.  It looks like a driver problem devixe, some missing software or firmware that is necessary to make the camera to recognize blu ray discs, or a problem with the devicce himself.  You have another computer, you can connect to see if you can get it to work on this computer (or you can connect directly to your TV if it is an option).  If Yes, we know devixe works and it is something on the laptop that is at the origin of the problem.  Have you confirmed that this device is compatible with your version of Vista in the http://www.microsoft.com/windows/compatibility/windows-vista/default.aspxVista Compatibility Center?

    Another problem can be the software you use to play the movie - it cannot recognize or be able or read blu ray discs (or it can be so slow that you give before there actually loading times as I read that some may take a matter of several minutes before start).  What software you are using (name and version)?

    Have you tried to contact the Helpdesk of brush head to see if they can help?  Because it's brand new, they should be happy to help you set up and work with you to resolve the problem with it being unable to recognize blu ray discs.  They met perhaps this situaton several times and have a solution easy availalble.  If the above does not work I give them a call and help you get them.  Again, I know not what provider, you must contact (but it it came with the machine, I think you deal with HP and what I read there is no solution available yet but things may have changed since that was sent)- but try both of them (one is bound to be willing and able to help you).

    I hope this helps.

    Good lucck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

Maybe you are looking for