When-database-record not firing

I have a single record block in a form and the when-database-record trigger is not firing after I update and leave the first item in the record.
This only happens when I create-new-record, not when I update an existing record. I have checked the record status after I update the first item and the record status is new.
I am updating non-display items in the background, then executing a query on the block on when-new-form-instance. I programatically set the block status to QUERY status so that if the user attempts to exit the form without making any changes the form does not prompt the user to save changes.
I checked system.mode parameter and it is NORMAL. Should it be ENTER-QUERY? Can I update this programatically, I know the api for this is not public but I have seen it before.
ta, Michelle

The status should notchange if you modify a non database item

Similar Messages

  • When-database-record

    what is the difference between
    when-database-record and when-create-record triggers?

    When-create-record
    Fires whenever a new record is created using the create_record method, this method is used to do some initialization for new record to initialize form fields as new record is created.
    When-database-record
    Fires whenever a record is inserted or updated. Whenever we modify a field in form, the this trigger is fired. Use a When-Database-Record trigger to perform an action every time a record is first marked as an insert or an update.
    If we have created both triggers at block level in a form, then when we open the form, then When-create-record trigger is fired and when we modify a single field in form then When-database-record is fired.
    Hope it helps.

  • When-Timer-Expired not firing if LOV is open

    In my form I have a when-timer-expired trigger that kicks the user out of the form if there is no activity for one minute. But if the LOV is open the when-timer-expired trigger is not firing.
    Thanks,

    yeah !
    if the form starts a db-function or a host-command or a lov - then the form isn't able to do something else parallel to this...
    e.g. :
    WHEN-BUTTON-PRESSED :
    IF show_lov () THEN
    END IF;
    if the lov works different, then you have parallel working program units. In this case :
    a WHEN-BUTTON-PRESSED and a WHEN-TIMER-EXPIRED
    and this is today impossible in Forms

  • When validate item not firing when exit with mouse

    Hi
    I have a when validate item tirgger on an item.
    it fires fine when I use tab from keyboard after validating
    but when i navigate to another field with the mouse, the trigger does not fire.
    it only fires when i try to close the window..
    how can i overcome this?
    thanks

    Normally, a WVI trigger ALWAYS runs when you leave a field no matter how you leave it (after you have entered something, of course). If it is not running, then you should check whether you have messed around with Set_Form_Property and Validation_Unit.
    Or maybe you have some code in your key-next-item trigger that runs that makes you think it is the when-validate-item trigger.

  • Lync 2010 Updates when database is not on Default Path?

    Hi,
    What is exact default Path ?  I have E drive where I installed SQL Server and I also have "CsData" folder , I can find my DBs under
    E:\CsData\BackendStore\(default)\dbpath
    E:\CsData\BackendStore\(default)\dyndbpath
    E:\CsData\BackendStore\(default)\dynlogpath
    E:\CsData\BackendStore\(default)\logpath
    So i should run the command with default database path ?
    Install-CsDatabase -Update -ConfiguredDatabases -SqlServerFqdn <EEBE.Fqdn> -UseDefaultSqlPathsRegardsUsman Ghani
    Usman Ghani - MCITP Exchange 2010

    Default path is c:\ only
    http://howdouc.blogspot.com/2012/11/exploring-default-installation-and-sql.html
    To install both data files and SQL logs in the same location, simply specify the path to the folder where this data should be stored. For example:
    Install-CsDatabase -Configured Databases -SqlServerFqdn atl-sql-001.litwareinc.com -DatabasePath C:\SqlData
    To store data files in one location and log files in a second location, specify the path to each folder, separating the two locations by
    using a comma (be careful not to put a blank space before or after the comma):
    Install-CsDatabase -Configured Databases -SqlServerFqdn atl-sql-001.litwareinc.com -DatabasePath C:\SqlLogs,D:\SqlData
    Also you can check below link for more details
    http://blogs.technet.com/b/nexthop/archive/2011/09/02/haiku183.aspx
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical | Twitter:
    Mai Ali

  • Catch the exception thrown when database is not available in web.xml

    Hi,
    I have an app that uses a mysql database configured in the web.xml configuration file - a javax.servlet.jsp.jstl.sql.dataSource param
    There have been occasions where that server has been down, and this causes the expected error stack trace to be dumped to the jsp page
    Is there anywhere I can catch that exception in the jsp page, so the end user does not see that nasty error?
    Thanks,
    Tom

    You have answered your own question, catch the exception with a try catch block !!
    try
    // doing something stupid
    catch (Exception exception)
    out.println("sorry user, you did something really stupid");
    // it is acceptable to do nothing here if you dont want to handle the
    // error or output a message
    }

  • Update of database record not working

    Search works to return page to edit. Data displayed. Changes
    allowed on the page. Clicking on the Update button crashes.
    Connection checks (in DW8), and so does recordset with any
    values tried.
    ADODB.Command (0x800A0D5D)
    Application uses a value of the wrong type for the current
    operation.
    /sands2/IDresultsToEdit.asp, line 173
    LIne 173 is
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param150",
    5, 1, -1, (String(Request.Form("MM_recordId")) != "undefined"
    && String(Request.Form("MM_recordId")) != "") ?
    Request.Form("MM_recordId") : null)); // adDouble
    I don't know what MM_recordId is. Well, I know it's a
    variable generated by DW. I mean, I don't know where it comes from,
    what uses it. There is a field called ID. It is an autonumber. On
    the Update Record panel, it shows as ID with a check in the box for
    numeric. In the DB, it is unique (I checked).
    Any help or comments would be appreciated. Any think about
    this might give me a clue were to look for something wrong.
    Code validates in DW. No errors or warnings found.

    I found this code just before the end of the form.
    <input type="hidden" name="MM_update" value="form1">
    <input type="hidden" name="MM_recordId">
    <input type="hidden" name="MM_recordId" value="<%=
    rsEditSandS.Fields.Item("id").Value %>">
    Is one of the last two a duplicate that I should eliminate?

  • Crystal Report Alerts not firing when no records are fetched from the DB

    Hello,
    The crystal report alert i have created in the report in the event of no records being fetched from the query is not firing.  The condition used is isnull ( count(DB Field ) ).
    Is there a limitation with alerts that they would be fired only when some records are fetched in the report.
    Appreciate any pointers
    -Jayakrishnan

    hi Jayakrishnan,
    as alerts require records to be returned here's what you will need to do:
    1) delete your current alert
    2) create a new formula with syntax like
                  isnull(DistinctCount ()) or DistinctCount () = 0
    3) create a new Subreport (which you will put in a report header)
    4) the subreport can be based off of any table
    5) have the subreport record selection always return only 1 record...for performance reasons
    6) change the subreport link to be based on the new formula
    7) the link will be a one way link in that you will not use the "Select data in subreport based on field" option
    8) now in the subreport, create the Alert based on the parameter created by the subreport link
    i have tested this and it works great.
    jamie

  • When-validate-record trigger only if  a non database item is changed

    Hi,
    I am trying a code in the when-vaidate-record trigger in the BLOCK level.
    The trigger should fire only if a checkbox item value is ticked(Value ='Y) for the present record(i.e, if already existing other records have a value ticked (='Y), it doesnt matter and trigger shouldnt fire)
    Please help me achieve this :
    The code I have tried in when-vaidate-trigger, which does not work as what I want :
    DECLARE
    X NUMBER;
    BEGIN
    if
      nvl ( :DEFLOC.to_be_defaulted, 'N' ) = 'Y' and :DEFLOC.COMMENTS is NULL
      and :SYSTEM.RECORD_STATUS ='CHANGED'
         then
        set_alert_property(
             'err_alert',
             alert_message_text,
             'You must enter a comment when defaulting localities.');
              x := show_alert('err_alert');
              RAISE FORM_TRIGGER_FAILURE;
              end if;
    END;The above code does not fire at all..
    If I remove the part,
    and :SYSTEM.RECORD_STATUS ='CHANGED'
    it fires for "all records"(not just the currently changed records) where nvl ( :DEFLOC.to_be_defaulted, 'N' ) = 'Y' and :DEFLOC.COMMENTS is NULL
    Please help !!
    Note: :DEFLOC.to_be_defaulted is a non database item ; :DEFLOC.COMMENTS is a database item

    Hi kriti,
    There is one more way,
    In the when-checkbox-changed trigger,
    if :your_chk_box = 'Y' then
    set_Record_property(:system.cursor_Record, 'your_blk',status,changed_Status);
    else
    set_Record_property(:system.cursor_Record, 'your_blk',status,Query_Status);
    end if;
    Then it is easy for you to find out the changed records using get_Record_property((:system.cursor_Record, 'your_blk',status)
    Hey let me ask you one Question, is that check_box item is database item ???
    If so,
    it is easier..the fol. code will work for that
    if   nvl ( :DEFLOC.to_be_defaulted, 'N' ) = 'Y' and :DEFLOC.COMMENTS is NULL
      and nvl(get_item_property('DEFLOC.to_be_defaulted',database_value),'N') = 'N'      then
                      set_alert_property(
             'err_alert',
             alert_message_text,
             'You must enter a comment when defaulting localities.');
              x := show_alert('err_alert');
              RAISE FORM_TRIGGER_FAILURE;
              end if;otherwise
    If your are creating that temp. item, it should be in the same block as non-db item.
    I will explain this... You are setting the status of to_be_defaulted check box of some queried record to Y based on some conditions, right?
    These records anyways are not updateable. Now your requirement is to find out the newly checked check boxes.
    So in the post query or the place where you set to_be_defaulted as 'Y, we will default the new item with value Y, so that in the when validate trigger, you
    know which record needs to attacked, It is those records with nvl( new item ,'N') = 'N' and to_be_defaulted = 'Y'...
    Regards
    Dora...

  • Form_trigger_failure in when-validate-record fired message three times

    Hello all,
    I have a problem with one of my forms. Indeed, I have used when-validate-record trigger to validate fields block.
    So, when user fills a duplicate I display an error message with two choices. Accept or proceed to change. The action button 1 is impeccable.
    But when the user clicks the button 2 of the message, I raise form_trigger_failure exception. What is strange is that my error message appears three times if I get out of the record by the mouse but once I get out of line by the tab.
    Is there someone who can help me on that?
    Please, find below the code that produce this result :
    IF :CTRL2.MATCH_REC > 1 then
         L_ALERT := SHOW_ALERT('ALERTE_1');
         IF L_ALERT = ALERT_BUTTON1 Then
    NULL;
         elsif L_ALERT = ALERT_BUTTON2 Then
         raise Form_trigger_failure;
         end IF;
    end IF;
    Thank you in advance

    Dear CraigB,
    Thank you for your answer but I still working without success.
    I found that the trigger W-V-R is fired thee times so the value of :CTRL2.MATCH_REC is recalculated every time (as shown by Kevin D Clarke about validating duplicate http://forums.oracle.com/forums/profile.jspa?userID=8905) witch is correct.
    If I affect 0 or null to :CTRL2.MATCH_REC, it's not raising finally the form_trigger_failure (F_T_F), so it's working has button 1.
    Note that I found after catching others exception (exception when others then...) a 100501 non-oracle exception.
    I don't know if my repetition is caused by this exception?
    Note again that, when I put other statement instead of raising F_T_F, it's working fine. His just only when I raise F_T_F that I have this behaviour.
    Do you have any idea ?
    Thanks in advance
    Edited by: pkn87897 on Oct 23, 2008 7:09 AM

  • 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

  • Safari 5.1 flash mouse_leave not fired when mouse button is down

    Hi all, anyone know a work around for the fact that Event.MOUSE_LEAVE is not fired in Safari 5.1 (OSX 10.6.8) if the mouse button is down? I tried the latest beta player and the issue is not resolved. Thanks!

    WOT alerts you to dangerous web sites.
    That function is already built into Safari, and has been since version 3:
    http://www.macworld.com/article/137094/2008/11/safari_safe_browsing.html
    I had never heard of the WOT extension until today!
    If you go to Safari Preferences/Security you will see a box marked 'Warn when visiting a fraudulent website'. That is what that is.
    The blacklists from Google’s Safe Browsing Initiative (where Safari checks for 'fraudulent websites') are contained in a database cache file called SafeBrowsing.db  - the file was created when you first launched Safari, and if you have the browser open, the file is modified approximately every 30 minutes.

  • 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

  • Trigger a process when a record is inserted into database

    Hi, could someone tell me how to do the following (if it's possible):
    when a record is inserted into a table in a database,
    I want it to somehow trigger an action which will put an item into user's To-Do inBox of the WorkSpace,
    the user can then open the form in the To-Do and use it to view the data in the newly inserted record.
    this "user"'s login ID is part of the inserted record.
    thanks

    Mmm, trigger?  I don't know of a way.
    But I supposed you could have a process that has a timer that peroidically queries the database for changes and then do the same thing.
    You could also perhaps write a Service and then use the Java API to start a process?
    Maybe take a look here
    http://blogs.adobe.com/livecycle/2010/12/how-to-invoke-a-livecycle-process-periodically.ht ml

Maybe you are looking for

  • Just bought a 30Gb Video, and it's not happening for me!

    I had a 20Gb 4th Gen that died about a year ago. Finally bought myself a 5th Gen 30Gb Video iPod about an hour ago. It's not being recognised by iTunes (yes, 7.3!) and possibly not even Windows (Windows is recognising a mass storage device). When I b

  • Reason for rejection in Quotation

    Hi SAP-Guys,    I'm creating a quotation and i won't set any reason for rejection for that,but while saving it reason for rejection is populating automatically, i was unable to find out the reason .   please help me on what basis it is fetching , any

  • IPad wallpaper is always too big

    Evertime I download wallpaper from zedge etc the wallpaper size I select is correct but when I put it up as wallpaper in my photos it appears huge.... Any clues?

  • Schema name is not showing in the Data load

    Hi All, I am trying to load a CSV file using oracle apex data load option. The options are using a new table and file upload(.csv). In the load data page, the schema name is not listing my current schema because of which i could not to upload the CSV

  • 3850 QoS class-map match-all?

    I would like to create a QoS marking policy that re-marks packet to CS5 if the inbound traffic is SIP *and* if it is marked CS3 when it comes in.  I would have expected the configuration listed below will work.  I only found out when I tried to apply