When-window-activated trigger not firing

Hi,
I got this scenario :
Opens a form, the When-new-form-instance runs, the When-window-activated runs.
But if a message is shown in the when-new-form-instance trigger, the when-window-activated wont run.
Anybody whos got a solution for this, as I need the trigger to run.
regards
Kim

It can be very simple as :
plib_do_something_1;
plib_do_something_2;
message('Show a message on the screen');
do_key('Enter_query');
The thing is that its only if the message is showed as pop-up the problem exists. If I remove the 'do_key('enter_query')', the message is showed at the statusbar and the wwa trigger fires.

Similar Messages

  • WHEN-WINDOW-ACTIVATED gives focus back to applet window

    Testcase:
    Form A calls form B
    Form B performs this code:
    BEGIN
    web.show_document(url);
    exit_form;
    END;
    This should open a new browser window to the URL and keep the focus on it.
    However, when form A has a WHEN-WINDOW-ACTIVATED trigger (even when the only code is NULL;), it return the focus to the forms applet browser window the first time.
    This is very annoying because the new browser window can no longer be seen as it is put on the background. Strangly enough, the following times the focus remains on the new browser window.
    Is this a known bug?
    PS: The problem is that i really need a WHEN-WINDOW-ACTIVATED trigger in my form A to perform some webutil-functions.
    Environment:
    Forms Developer 10g Release 2
    Application Server 10g Release 2
    Window 2000/Xp
    Oracle Jinitiator 1.3.1.22

    In which trigger are you calling Form B? As I said, the EXIT_FORM event would take you back to Form A after opening the browser window, so what happens next depends on what code it fires once returning to Form A.
    Have you tried it with debug messages on to see what triggers it is firing? (both first time round & subsequently). Logically, I would have actually expected focus to return to Form A following the EXIT_FORM, but maybe I'm wrong ni thinking that.
    Have you experimented with the various WEB.SHOW_DOCUMENT options (e.g. WEB.SHOW_DOCUMENT(url, '_self') to get a different behaviour?

  • WHEN-NEW-ITEM-INSTANCE TRIGGER NOT FIRING IN FORM PERSONLIZATION

    We are upgrading to R12, when-new-item-instance trigger written for radio group not firing. using USO-821 Order Administrator Responsibility the function order capture.After clicking on actions push button
    opening Copy Quote for this Form Personalization written.
    For Radio Group Copy-Group when-new-item-instance trigger written but this trigger not firing,but In 11i Instance its Firing.
    trigger-event: when-new-item-instance
    Trigger-object:copy_group
    condition:when copy_group='ALL'
    Action: showing message.
    The same when-new-instance trigger written in form item level and trigger execution hierarchy properties 'OVERRIDE'.
    Just I am thinking this overriding by Item level trigger of form.
    Please kindly help me quickly .What I need to do?
    How can I make trigger to Fire?
    Please kindly give solution.....Its very urgent Requirement.pls help me.
    Regards,
    Basavaraj

    Please kindly help me quickly .What I need to do?
    > Please kindly give solution.....Its very urgent Requirement.pls help me.
    Kindly log a SR for urgent issues.
    Thanks,
    Hussein

  • WHEN-NEW-ITEM-INSTANCE TRIGGER NOT FIRING IN FORM PERSONLIZATION(R12 UPGRAD

    We are upgrading to R12, when-new-item-instance trigger written for radio group not firing. using USO-821 Order Administrator Responsibility the function order capture.After clicking on actions push button
    opening Copy Quote for this Form Personalization written.
    For Radio Group Copy-Group when-new-item-instance trigger written but this trigger not firing,but In 11i Instance its Firing.
    trigger-event: when-new-item-instance
    Trigger-object:copy_group
    condition:when copy_group='ALL'
    Action: showing message.
    The same when-new-instance trigger written in form item level and trigger execution hierarchy properties 'OVERRIDE'.
    Just I am thinking this overriding by Item level trigger of form.
    Please kindly help me quickly .What I need to do?
    How can I make trigger to Fire?
    Please kindly give solution.....Its very urgent Requirement.pls help me.
    Regards,
    Basavaraj

    Please kindly help me quickly .What I need to do?
    > Please kindly give solution.....Its very urgent Requirement.pls help me.
    Kindly log a SR for urgent issues.
    Thanks,
    Hussein

  • WHEN-CUSTOM-ITEM-EVENT - not firing. Please Help

    Hi Grant,
    WHEN-CUSTOM-ITEM-EVENT - not firing. Please Help..
    I need a help from you.
    1) I have developed an form to browse the client machine and upload the file on server / table
    2) Registered the form in Oracle Apps 11.5.10.
    3) Currently i am able to open the File_Dialog and browse throught the clients machine
    But when ever user selects any file and says Open, i am not able to retrieve the file name. wHEN-CUSTOM-ITEM-EVENT is not
    firing. I am sure how we can invoke this CUSTOM-ITEM-EVENT.
    To devlop the form i have referred PERWSIMG.fmb - of Oracle (Apps) HRMS which uploads the employee photo in the Database.
    Hence i have used the same java code / Implementaion Class.
    Please help...
    Regards
    Sameer

    Hi Francois,
    You were right. I re-loaded the zip file and the original version works. Odd, as I don't remember ever modifying those files.
    But my original issue still remains.
    The only code I've added is this:
    Color mycolor = this.getBackground() ;
    setBackground(mycolor);to the CalendarFrame constructor. How could this be causing the trigger to not fire?
    Could it be the way I created the bean? I copied all the java files to my project, attached the libraries, created a deployment profile. Everything compiles without errors or warnings, and the jar is created without issues. The java console doesn't give any errors either.
    Thanks for all your help,
    A
    Edited by: Abigail Parmar on Mar 26, 2009 1:01 PM

  • FRM-40735: WHEN-LIST-ACTIVATED trigger raised unhandled exception ORA-29516

    Hi All,
    The users are facing problem on opening the OAF pages on 11i(11.5.10.2) instance.
    They face this error when they,
    1. Go to System Administrator responsibility.
    2. Open page under Workflow > Administrator Workflow > Status Monitor.
    3. This error pops up at the end of the form page. Below is what the error appearing.
    FRM-40735: WHEN-LIST-ACTIVATED trigger raised unhandled exception ORA-29516
    We are having DB:11.2.0.2.5,Applications:11.5.10.2
    Please suggest in resolving the error.
    Thanks
    Althaf khan

    The users are facing problem on opening the OAF pages on 11i(11.5.10.2) instance.
    They face this error when they,
    1. Go to System Administrator responsibility.
    2. Open page under Workflow > Administrator Workflow > Status Monitor.
    3. This error pops up at the end of the form page. Below is what the error appearing.
    FRM-40735: WHEN-LIST-ACTIVATED trigger raised unhandled exception ORA-29516
    We are having DB:11.2.0.2.5,Applications:11.5.10.2
    Please suggest in resolving the error.Was this working before? If yes, any changes been done recently?
    Can you find any errors in the database log file?
    Do you have any invalid objects?
    What is the complete error message? Any errors in Apache log files (error_log* and access_log*)?
    Thanks,
    Hussein

  • Why is this table trigger not firing when insert/update from servlet?

    Hi!
    I have this servlet that parses XML and stores values into Oracle tables. I have created a table trigger so that when one table is updated, a trigger is fired and the current system date is store in another table's field.
    I have tested the trigger in Toad and it works, that is, if I update the table that the trigger is set to, the SYSDATE is stored as intended.
    Here is the trigger's code:
    DECLARE
    tmpVar NUMBER;
    NAME: transaction_time
    PURPOSE:
    REVISIONS:
    Ver Date Author Description
    1.0 9/14/2007 1. Created this trigger.
    NOTES:
    Automatically available Auto Replace Keywords:
    Object Name: transaction_time
    Sysdate: 9/14/2007
    Date and Time: 9/14/2007, 8:00:42 AM, and 9/14/2007 8:00:42 AM
    Username: (set in TOAD Options, Proc Templates)
    Table Name: MS_RESLIMITS (set in the "New PL/SQL Object" dialog)
    Trigger Options: (set in the "New PL/SQL Object" dialog)
    BEGIN
    tmpVar := 0;
    UPDATE MS_Misc SET mi_lastrun = SYSDATE;
    EXCEPTION
    WHEN OTHERS THEN
    -- Consider logging the error and then re-raise
    RAISE;
    END transaction_time;
    Now, when the table is updated by the servlet, the trigger does not fire. And here is the code from the servlet:
    --- <start of code> ---
    boolean recordExists =
    this.isRecordPresent("MS_ResLimits", "rl_compcode",
    compCode, url);
    Connection rlConn = null;
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    rlConn = DriverManager.getConnection(url, dbUser,
    dbPwd);
    Statement stmt = rlConn.createStatement();
    PreparedStatement xmlUpdate = null;
    if (recordExists) {
    xmlUpdate =
    rlConn.prepareStatement("UPDATE MS_ResLimits SET rl_compcode = ?, rl_maxreslimit= ? WHERE rl_compcode =?");
    xmlUpdate.setString(1, compCode);
    xmlUpdate.setString(2, maximumReservationDate);
    xmlUpdate.setString(3, compCode);
    } else {
    xmlUpdate =
    rlConn.prepareStatement("INSERT INTO MS_ResLimits VALUES(?,?)");
    xmlUpdate.setString(1, compCode);
    xmlUpdate.setString(2, maximumReservationDate);
    } //end-if-else
    int n = xmlUpdate.executeUpdate();
    rlConn.commit();
    } catch (Exception ex) {
    out.println(ex.toString() +
    "-> error inserting Max Reservation Date<br>");
    } finally {
    if (rlConn != null) {
    rlConn.close();
    } //end-try-catch-finally
    --- <end of code> ---
    What causes the trigger to fire? the commit? My understanding is that executeUpdates are in autocommit mode by default, or am I mistaken? Do I have to programmatically send something to the DB so that the trigger fires?
    BTW, I'm using JDeveloper 10.1.3.3.0. The project is being compiled with Java 1.5.0_06. The servlet is running in OCJ4 standalone. DB is 10g (don't know the release version).
    ...and, for some reason this message is not keeping format from my edit window to the post...
    Thx!
    Message was edited by:
    delphosbean
    Message was edited by:
    delphosbean
    Message was edited by:
    delphosbean

    You are supposed to be able to preserve you formatting using the <pre></pre> tags but I can't get this to work either<br>
    <br>
    Patrick.

  • Trigger not firing in linux OS

    Hi All:
    Initially i am developed a form using form builder and i deployed this form in Windows OS this is working fine when i am deploying this same form in Linux OS
    that is not working even small trigger also not firing.so here we need to change any initial set up any help please.

    We are developing and deploying our Forms application on Linux, have no problem with the triggers whatsoever - any specific reason why developing on windows when deploying from Linux? otherwise, you have to recompile every time you move the form to the Linux iAS box for deployment (as Tony mentioned).

  • After Trigger Not Fired

    Hi All,
    I had created a Before and After Trigger for each row on a table.
    The Before Trigger will be fired when some columns are updated.
    In the Before trigger, I will changed the value of 1 column, says delvstatus.
    The After trigger will be fired if the delvstatus was changed.
    However, I noticed that after trigger is not fired if the delvstatus is changed within Before Trigger.
    Is this a normal case for trigger execution in oracle?
    Any comments are welcome.
    Thanks.

    The before trigger and the after trigger should be fired like in the following test case.
    If not please post your test case and your 4 digits Oracle version.
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL>
    SQL> drop table t purge;
    Table dropped.
    SQL> drop table log purge;
    Table dropped.
    SQL>
    SQL> create table log(txt varchar2(50));
    Table created.
    SQL>
    SQL> create table t (x int primary key, s1 int, s2 int);
    Table created.
    SQL>
    SQL> create trigger tbu
      2  before update of s1
      3  on t
      4  for each row
      5  begin
      6  :new.s1 := 1;
      7  insert into log values('tbu fired');
      8  end;
      9  /
    Trigger created.
    SQL> show errors
    No errors.
    SQL>
    SQL> create trigger tau
      2  after update of s1
      3  on t
      4  for each row
      5  begin
      6  insert into log values('tau fired');
      7  end;
      8  /
    Trigger created.
    SQL> show errors
    No errors.
    SQL>
    SQL> insert into t values(0,0,0);
    1 row created.
    SQL> update t set s1 = 2 where x = 0;
    1 row updated.
    SQL> select * from t ;
             X         S1         S2
             0          1          0
    SQL> select * from log;
    TXT
    tbu fired
    tau fired
    SQL>

  • When new record instance not firing on Purchase Order form

    I query a purchase order and click on the shipment lines button. There are 2 shipment lines in this example. I am using CUSTOM.pll to inject some specific code to restrict the cancel functionality. One line I want to restrict the cancel functionality and the other line I don't want to restrict. The problem arises when I click between the two rows on the Org or Ship to fields. No event or trigger gets fired that I can see; hence, the CUSTOM.pll code does not get injected and the user will be able to cancel both lines. Any ideas? Thank you for your time,
    -Kevin

    What does that mean? In the middle of creating a record?
    But how come system allows me to go to the 2nd tab when it goes to the last record and doesnt allow me to go the 2nd tab when i create in middle of the record
    Seems that there is some difference in the data of the two records, maybe one record passing validation and the other one not.Validations are same, both the scenario it just creates a new record.

  • Key-enter trigger not firing

    hi friends,
    i have a trigger on key enter, but it is not firing when i press the enter key,
    why it is not working. i want the trigger to be fired only if the user press Enter key
    thanks
    Kris

    Hi Kris,
    I would suggest you try searching this forum for "KEY-ENTER". You shall be able to find out why it does not fire
    regards,
    teo

  • SPECIAL1 user defined Trigger not firing in Forms

    Hi All forms Gurus,
    I have a need of creating a menu under tools in forms and call another from from this new menu option.
    I have done the below:
    on my block I have written a PRE-BLOCK Trigger with the below code:
    app_special.instantiate('SPECIAL1', 'Product Details');
    app_special.ENABLE('SPECIAL1',PROPERTY_ON);
    this is creating the menu option successfully on the forms at run time under TOOLS menu.
    Next I have :
    FND_FUNCTION.EXECUTE(FUNCTION_NAME => 'XXTEST'
    ,OTHER_PARAMS => ' P_PROD_CODE = ' || ''''|| :HOLDS_BLK.PROD_CODE
    and this is not getting executed when I click on the "Product Details" new menu entry which is create above.
    I even tried just putting
    fnd_message.debug('from SPECIAL1'); to check if the SPECIAL1 Trigger is firing, removing the above FND_FUNTION.EXECUTE.
    and I noticed that the SPECIAL! Trigger is not firing at all.
    I would really appreciate if you can help me out in fixing this and making the SPECIAL1 trigger fire.
    Thanks and Regards
    Rohit

    Hi Rohit,
    Welcome to OTN.
    Since this is Apps issue, you might want to post it in the [E-Business Suites forum|http://forums.oracle.com/forums/category.jspa?categoryID=3].
    -Arun

  • SPECIAL1 user defined trigger not firing

    Hi All forms Gurus,
    I have a need of creating a menu under tools in forms and call another from from this new menu option.
    I have done the below:
    on my block I have written a PRE-BLOCK Trigger with the below code:
    app_special.instantiate('SPECIAL1', 'Product Details');
    app_special.ENABLE('SPECIAL1',PROPERTY_ON);
    this is creating the menu option successfully on the forms at run time under TOOLS menu.
    Next I have :
    FND_FUNCTION.EXECUTE(FUNCTION_NAME => 'XXTEST'
    ,OTHER_PARAMS => ' P_PROD_CODE = ' || ''''|| :HOLDS_BLK.PROD_CODE
    and this is not getting executed when I click on the "Product Details" new menu entry which is create above.
    I even tried just putting
    fnd_message.debug('from SPECIAL1'); to check if the SPECIAL1 Trigger is firing, removing the above FND_FUNTION.EXECUTE.
    and I noticed that the SPECIAL! Trigger is not firing at all.
    I would really appreciate if you can help me out in fixing this and making the SPECIAL1 trigger fire.
    Thanks and Regards
    Rohit and Zahir

    Hi Rohit,
    Welcome to OTN.
    Since this is Apps issue, you might want to post it in the [E-Business Suites forum|http://forums.oracle.com/forums/category.jspa?categoryID=3].
    -Arun

  • When-tab-page-changed not firing

    I have 2 seperate forms opened on a single page. One displays on left side of screen and has tabs. One display on right side. If I am currently on my right side form (no tabs) and click on a tab on the left side form, it seems the 'When-tab-page-changed; trigger is not firing the first time. I have tried this on 6i and 10g webforms. If I try it on client/server 6i it works. Any suggestions?

    I just tried this with 10gR2 in web. My form with the tabs only get focus and does not call when-tab-page-changed when you click on a tab after returning from the other form.
    A 2nd button press does then call the when-tab-page-changed.

  • Allowing Mouse Events to "Fall Through" When Window Activated

    I'm implementing a "tool pallette" in my application (much like tools in an application like Photoshop) and I want the user to be able to immediately click on options on this pallete without having to make the window active. Since Swing doesn't have an explicit "Pallete" window that would give this to me for free, I'm assuming I need to subclass JDialog to make this happen.
    Even if window activation still must happen, it's crucial that the user only needs to click once to press the button on an inactive window.
    I know I can detect WindowEvents like WINDOW_ACTIVATED by simply adding my own window listener, but I don't know how I'd go about having mouse events "fall through" the window listeners and cause the appropriate action on the underlying component. It's almost as if I need to tell the window itself to listen for nothing.
    I thought glass planes may be the answer, but that doesn't seem to be what's preventing the intial click in an inactive window from falling through to the underlying component.
    Any thoughts, comments, or experiences regarding this are greatly appreciated!

    Such a simple solution to such a perplexing problem. You are absolutely right. It turns out I was experience a bug in my particular L&F. Trying this with the Windows L&F proves that simply changing from JWindow to a non-modal JDialog works. Now I'll have to go about getting the bug fixed in the MacOSX (Aqua) L&F so I have equivalent behavior across all our supported platforms.
    Thanks for the quick response.

Maybe you are looking for

  • Is it possible to export chapters into video files or final cut?

    Hello, I was wondering if it is possibly to export chapters from DVDSP of I would have to rework the chapters again when I edit. Bascially I have chapters, but they all end with a cutoff transition, I've decided to re-edit the 4 hrs of footage on fin

  • How do I back off 5.1.1 and go back to 5.0.1 ?

    I have 2 chargers, and 4 USB cables.  Ever since I applied 5.1.1 to my daughter's iPod Touch, every cable and both chargers come up with "Charging is not supported with this accessory" when I try to charge her iPod.  Searching on the web has revealed

  • JDBC 2.0 method not supported Error occuring in WL 6.1 sp1

    Hi , When I connect to a mssqlserver 2000 using a session bean and execute the following statement "stmDataAccess=conDataAccess.createStatement(ResultSet.CONCUR_UPDATABLE,ResultSet.TYPE_SCROLL_INSENSITIVE);" i get the following error at the client an

  • How can i get the component value which is in jtable

    hi all, i have a JTable and i added JSpinner component in 1st column. i want to get the value of the component. i tried to get the value using the following code for(int i=0;i<5;i++) ((JSpinner)tableDisbursals.getEditorComponent().getComponentAt(i,1)

  • What is wrong in this query?

    Hi All, Could anybody please help me in identifying the issue in the below code as i am getting error as: declare ERROR at line 1: ORA-01006: bind variable does not exist ORA-06512: at "SYS.DBMS_SYS_SQL", line 846 ORA-06512: at "SYS.DBMS_SQL", line 5