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

Tags: Oracle Development

Similar Questions

  • 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!

  • Adding fields to a Manager different button clicks

    if (field == buttonField && label.equals("First")) {
                LabelField label = new LabelField("1");
            add(label);
            buttonField.setLabel("Last");}
    else if (field == buttonField && label.equals("Last")) {
            buttonField.setLabel("First");
            labelField2 = new LabelField("2");
            add(labelField2);
            labelField3 = new LabelField("3");
            add(labelField2);
    }
    

    Here is an example of my FieldChangeListener. It is clear what he does (even for me clear ). It simply adds fields - a field to the first button clicks - and two others to the second click.

    What I want to do is to add these fields to a manager - regardless of the vertical or horizontal, I just need to get the concept of how it should be done. The idea is to build a manager at the first click on a button and add labelField. When the second click occurs, I need this Manager to add an other field (s), for example as in my example code.

    Could you please indicate the way to do this? It might be very obvious of sth, yet lack me.

    EDIT: spelling errors, sorry...

    Edit2: Can it be reached via setter/getter?

    Setter / getter did the trick.

    if (field == buttonField && label.equals("First")) {
                getHFM();
                    LabelField label = new LabelField("1");
            setHFM().add(label);
            buttonField.setLabel("Last");
    }
    else if (field == buttonField && label.equals("Last")) {
            buttonField.setLabel("First");
            labelField2 = new LabelField("2");
            setHFM().add(labelField2);
            labelField3 = new LabelField("3");
            setHFM().add(labelField2);
    }
    
    public HorizontalFieldManager getHFM(){
            hfm = new HorizontalFieldManager(USE_ALL_WIDTH);
            add(hfm);
            return hfm;
    }
    public HorizontalFieldManager setHFM() {
            return hfm;
    }
    
  • Warning Dialogues - cannot capture the button clicks

    Now that I can finally connect to the Simulator with the debugger, I can come back and work on my app!

    I'm trying to be on the QNX Dialogue class... specifially the AlertDialogue, that I will use for the warning of use of data like most of you...

    I looked at the example code, but for some reason, I can't click on the events of the Dialogue...

    Here is my code:

    package com.content.modal{  import flash.display.Sprite;  import flash.events.Event;    import flash.events.MouseEvent;
    
     import qnx.dialog.AlertDialog;    import qnx.dialog.DialogSize; import qnx.display.IowWindow; import qnx.events.DialogEvent;
    
      public class AirtimeUsageModal extends Sprite {
    
           private var alert:AlertDialog;
    
          public function AirtimeUsageModal()       {         init();       }
    
           private function init():void      {         alert=new AlertDialog();          alert.title="MY TITLE";           alert.message="MY BLURB HERE.";           alert.addButton("Quit");          alert.addButton("Acknowledge");           alert.dialogSize=DialogSize.SIZE_SMALL;           alert.addEventListener(DialogEvent.DIALOG_BUTTON_CLICKED, alertButtonClicked);            alert.show(IowWindow.getAirWindow().group);
    
          }
    
           private function alertButtonClicked(e:DialogEvent):void       {         trace("Button Clicked Index: " + e.target.selectedIndex);         trace("Button properties Object"+e.target.getItemAt(e.target.selectedIndex));         trace("e.responseBtn" + e.responseBtn);
    
             if (e.responseBtn == "Quit")          {             quitApp();            }         else if (e.responseBtn == "Acknowledge")          {             this.dispatchEvent(new Event("startApp"));            }     }
    
           private function quitApp():void       {         stage.nativeWindow.close();       }
    
       }}
    

    My problem is that I can't capture the click event... my tracks in alertButtonClicked never fire... When I click on a modal button disappears... And I get this in the output:

    Response of dialogue show null null
    Receipt of RESPONSE from the server: @control 1
    BaseDialogService.receiveResponse

    Any ideas what's happening here?

    This is a known bug. Please use EVENT. SELECT a workaround until this has been resolved.

  • What / Standby button?

    On the Iphone 6, what / Standby button? What is this for?

    This page of the iPhone user Guide explains the functions associated with this button.

    http://help.Apple.com/iPhone/10/#/iphd290bfdd9

  • 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


  • Can someone understand what each button?

    I've owned first another model of MP3 player called an eclipse,

    that costs only $20.  I charged my MP3 files, extracted using Microsoft

    Windows Media Player.  I have about 10 different artists, each with

    one or two albums CD, where I ripped just my "Favorites" songs

    Everything worked well.  The only two drawbacks were those of the battery

    life on a charge was only about two hours maybe.  And, there

    window rail showed little return of names only... no images of the album

    covers.  And the super small font used for the names of the tracks was almost

    too small to read, esp for a 70 year old man.

    So, this Christmas I spent more money ($40!) and got this

    SanDisk Clip Sport, model 4 GB.

    ========

    OK, my first question:

    The eclipse and the SanDisk Clip Sport can a very similar

    LAYOUT of the BUTTONS... and I find very DIFFICULT to understand both

    or think.  Bottom line, so I'm just hitting different buttons

    until the thing is happening!

    But, the one that came with this current triple-usage for each button

    (or whatever the pattern is?), well, I'm really not just

    It is at all!  It seems to be "depending on the context"... ie a button is

    seems to depend on where you are now and what OTHER button

    You pressed on before you get here.

    It took me 10 minutes of random keys, before I finally

    Note that there is also an internal FM (that I do not plan to use).

    And something about 'books' and other wacky stuff, I'll never

    use.

    And I don't see any real documentation IN-CONTEXT or use cases or

    just what any where!  Yikes!  What were thinking?

    Seems to be a variant of "reverse polish notation!

    What Miss me?

    OK, I finally learned that there is an internal operation, now

    my MP3 files are loaded, to create "playlists".  So, is

    It CLEAR documentation somewhere on the buttons

    Press and in what order, to create a playlist?

    [I didn't really have to create playlists... I would have

    was happy to choose "random" or "shuffle" and have

    It moves through my various files.  But, I am not convinced that

    works as they intend (I hope).

    OK, I'm still missing?

    Call me "completely confused."

    After the firmware update (to solve the problem I posted about in another thread,)

    about the only be able to play the tracks on the first album of the first artist)

    now, the player behaves normally.

    Which, in turn, set the confusion with the buttons does not normally.

    So, I'm ready now.  Thank you.

  • When I click on 'file', 'Edition', etc. in Internet Explorer or Windows Explorer, the menu drop-down appears to the right what I'm clicking on.

    When I click on 'file', 'Edition', etc. in Internet Explorer or Windows Explorer, the menu drop-down appears to the right what I'm clicking on., making it sometimes difficult to get to the line on the drop-down list, I want to access.  He acted in this way for a while, but I think much about it until I was on a friends computer that do not have the problem.  Anyone know how I can fix this problem?  Running Vista Home Premium SP2 on a Toshiba Satellite A215-S4807 laptop.  Thank you!

    It is perhaps a workaround for you...

    If you leave space on the left of the screen, the drop-down list box on the left side.
    Like this.. .notice that some of my desktop icons appear on the left where the space was.

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • 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.

  • I don't know what this button? Compaq cq45 205au

    I have laptop compaq cq 45 205au. There is a button between power and wifi button above the keyboard. I don't know what this button?

    Thank you

  • 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

  • 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 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.

  • Insert a row into the table on a button click

    Hi all

    I have a table called 'temp' with 4 columns such as seq, name, event, id and I have a GP with 3 text such as name, event id fields

    now my question is

    If I enter values in the 3 text fields on this page and a button, click on (for example create), I wanted the values of dose to get inserted into the table 'temp' and

    regarding, "seq" column I HAV created a sequence for it.

    so 1. How to insert values into the table by entering the values in the page

    2 wat shd b made to column seq... (shd b anyth made apex pages or wil automatically get values for each input line)

    pls help me...

    Thanks in advance

    1, it is up to you change your account to something more user-friendly than '8f4692cc-040e-48ee-b102-590cdd4303fc'.

    Then, it would also be a good idea to use proper English when you ask a question here...  Not broken English as "now comes to my" and "wat shd b"... More people will be willing to help you if you at least put forward in order to ask a good question...

    Which version of the database are you using? APEX version?

    Change the code above to this process:

    DECLARE

    v_seq NUMBER;

    BEGIN


    Select SEQUENCE_NAME. NEXTVAL INTO v_seq

    Double;


    INSERT INTO temp (seq, name, event, id)

    VALUES (v_seq,: P1_name,: P1_event,: P1_id);

    END;


    This allows it to be used in older versions of Oracle that do not allow direct access to the sequence.nextval in an assignment statement.


    Thank you


    Tony Miller

    Software LuvMuffin

  • Ability to add Google Analytics to track the link/button click?

    I would like to follow the button clicks and the link on my site to Muse that lead to external websites. For example - by clicking on a 'Buy Now' button on my site from Muse leads to 3rd part of page Web. Is it possible to add Google Analytics in these Articles? I already have the GA code integrated on my main site, but it gives me all the data about the button clicks or any other type of event. Any information would be appreciated!

    Hello

    I can't make any promises in that regard. Our team is already to check it out and work on it. The best solution to implement this will be your site in html export, and using a code editor, you can apply your features.

    Concerning

Maybe you are looking for