What trigger?

Hello,
on my form i have 2 blocks. what trigger should i use in order to display in the 2nd block(which have a where clause also) records based on the current selected record in the 1st block? i think it's about a block level trigger (of the 1st block) but i don't know which trigger. Maybe you can help me..
Regards,
corrected

Hai,
In the ON-ERROR Trigger, you will get the error no. so from there u can eliminate the message being displayed for this error.
And Don't forget to display error messages which are not being checked.
IF ERROR_CODE = 40350 THEN
<what you want when query caused no records.......
ELSE
MESSAGE(DBMS_ERROR_TEXT);
END IF;
Regards,
Manu.
If this answer is helpful or correct, please mark it. Thanks.

Similar Messages

  • What trigger should I use if I want to keep record amendment log?

    I am a newbie to Oracle forms, I would like to raise a simple question here ... hope you won't mind ... I have a form interface which accepts user input to record attributes for an object (e.g. personal information of a user). Now, because the importance of data, I was required to write log records in a journal table for changes made on the data. What trigger am I recommended to place and use?
    Thanks for any replies!

    Duncan, thanks for your reply first. However, I have two queries:
    1) Any generic event state to indicate change of record rather than 'POST-INSERT', 'POST-UPDATE' and 'POST-DELETE'?
    2) Given that I use the 'POST' event, how can I get the pre-update value? (My log record is supposed to record the before-update value)
    Thanks for your reply!

  • What trigger fires when a new record is requested?

    I'm trying to clear out a detail block when the user hits the button to enter a new record and cannot figure out what trigger to use or how to clear this block.
    This is a very old application and I don't even know what forms version it is in...
    Thanks, Scott

    If you don't even know the version, how can you modify the form at all?
    Check the code in the on-clear-details trigger if the form is a normal master-detail form. Clearing the detail block should be done automatically. From the manual:
    "Form Builder creates the On-Clear-Details trigger automatically when a Master/Detail block relation is defined. "
    If the form was created with its own logic to synchronize master and detail, you first have to figure out how that was done. Look for key-down, key-up, key-nxtrec etc.

  • What trigger is called?

    While navigating through my form I get a message
    "One or more blocks have changed would you like to save your changes?"
    I choose [Yes]
    Then another message pops up
    "FRM-40400: Transaction complete: 1 records applied and saved."
    I choose [Ok]
    Then I loose focus on the form. I want to know what trigger is called after those events so I can set the focus back to where I was so I do not need to use the mouse to regain focus.
    Thanks

    When they were running from Oracle Applications 11.5.10.2 - Forms Server 6.0.8.28.0, the focus would return to the field that was selected when the messages popped up.
    Now we are on Oracle Applications 12.1.3 - Forms Server 10.1.2.3.0 and the focus does not return to the field that was selected when the messages pop up.
    I am going to try the trigger you mentioned and report back, let me know if any more information is required.
    EDIT: Adding go_item to the trigger is not giving me any results. I even included a message box to see if the trigger was being executed and nothing happened.
    Thank you.
    Edited by: 948165 on Apr 12, 2013 11:15 AM

  • What trigger is fired just before hitting Ctl + F11.

    Hello Friends,
    I am developing a Master details form in 61.
    What trigger is fired just before hitting Ctl + F11
    Thanks,
    Sri

    Hi,
    Probably going through this tutorial created by Andreas would be helpful for you,
    http://sheikyerbouti.developpez.com/tutoforms10g/files/tutoforms10g.pdf
    -Arun

  • What trigger Line Protocol Down?

    Hi,
    Recently I encountered a problem on "line protocol down" as I'd posted on 4th April.
    Could anyone direct me to any webpage or sites where there's a detail explaination of how & what would trigger a line protocol down. Or these kinda data-link failure. Thanks!
    With regards

    Hi Friend,
    There could be few reasons majorly physical layer issue when the line protocol goes down.
    Can you please update which interface was showing line protocol down. Logical interface (SVI) on layer 3 switch, physical port on layer 2/3 switch or any physical interface on router?
    If it is a physical interface on layer 2 switch it is majorly a physical layer issue or may be that particular vlan asscosiated to that port got deleted.
    If it is a layer 3 logical interface showing line protocol down may be there is no vlan associated to that vlan configured on layer 2 switch port or no trunk carrying that vlan on that switch.
    HTH, if yes please rate the post.
    Ankur

  • What trigger can fire when execute_query occurs?

    I have a form where the new form instance trigger calls execute_query (parameters bring the query
    field info). I need the code in some when-radio-changed triggers to execute when execute_query occurs
    as well. What is the easiest way to do this? (I do not find when-new-item-instance firing at execute_query).
    forms 11.1.1.4
    Is the only way to do this to put each when-radio-changed in its own procedure and call each explicitly?
    (since you can't call a when-radio-changed trigger by name with execute_trigger (why?)).
    Well since I wrote that I did put the triggers in procedures and call them and that does work.
    Seems to me in forms6i the when new item instance trigger would've fired. This is definitely a whole
    new ballgame it seems.
    Edited by: lake on Jun 16, 2011 12:28 PM

    write the code in the POST-QUERY trigger for this purpose.

  • Insert master what trigger

    I have a master table and also detail table. In which trigger i insert the master before the detail? tx

    Forms [32 Bit] Version 10.1.2.0.2 (Production)
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Oracle Toolkit Version 10.1.2.0.2 (Production)
    PL/SQL Version 10.1.0.4.2 (Production)
    Oracle Procedure Builder V10.1.2.0.2 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle Query Builder 10.1.2.0.2 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.2 (Production)
    Oracle Tools GUI Utilities Version 10.1.2.0.2 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    I have a detail table with foreigg key batch_no to master table. And the batcch_no is generated using sequence number. So, i don't enter any value to master table.
    When the detail is going to be inserted, i need to insert the master first. So, the master record is inserted just before the details. tx.

  • What trigger to use?

    Hello,
    where can i put this code?
    declare
         v_cnt integer;
    begin
         select count (*) into v_cnt from salarii where an=to_number(to_char(sysdate,'YYYY')) and luna=to_number(to_char(sysdate,'MM')) and id_angajat=:angajati.id;
         if v_cnt>0 then set_item_property('control.btn_salariu',enabled,property_false);
         end if;
    end;i need some when-navigate-.... trigger, so when navigating into records i wanna execute that code, to check that 'if'.
    Thanks

    i wanna set a button disabled if that v_cnt>0. this when navigating into records (when moving to the next record). so everytime i change the current record, i wanna that code being executed and if v_cnt > 0 then that button should be disabled.
    Regards.

  • What trigger to use when wanting to form commit information

    Want to commit information from form to database.
    Only appears I can use when button push
    The on validate record does not facilitate form commit
    In previous forms versions used a post update trigger
    however this one is not valid/recommended anymore.
    THX IN ADVANCE

    Thank you Sanjay for your response. I am currently using When Validate Trigger. It works for all the scenarios except when order line is cancelled.
    When line cancelled I should rewrite the order quantity to 0 and save then only DFF's are updating to 0's.
    Thanks,

  • What is diffrerence between return builtin and raise form_trigger_failure

    what is diffrerence between return builtin and raise form_trigger_failure

    I believe you mean using the keyword RETURN; in a forms trigger versus raise form_trigger_error
    Mostly Depends on what trigger it is used in
    Generally
    Return: Stops the execution of the trigger and exits when it encounters the return keyword, however, no additional checks or form status settings are made. Acts like trigger fired successfully.
    Raise form_trigger_failure: Sets forms/block/record status (at appropriate level) depends on trigger may rollback etc.. see trigger defintions.
    Dave

  • Which trigger fires when i press cancel query button in oracle d2k forms.

    hi all,
    i have simply press then enter query but didn't enter anything in form and then press the cancel query. so i just want to know that what trigger will fire when i press the cancel query button in d2k form.
    Regards,
    kam.

    Why not ask into Forms<br>
    <br>
    Nicolas.

  • Key-Others Trigger (Please help!!!)

    Hi everybody,
    We are trying to restrict the end user from pressing some
    'dangerous' keys, i.e clear block, execute query, even the DOWN
    key causes us problems in some (1 record) blocks.
    I know there is a way to do it using Oracle terminal but it
    seems that we need greater degree of flexibility.
    I certainly don't want to go to every <KEY> trigger on every
    form (block) and put null; statements there. I know from Oracle
    Docs that I'm supposed to use the key-others trigger..
    So here are my questions:
    1.Is there any way to find out which key has been pressed?
    2.Can someone post a sample code of a KEY-OTHERS triggers?
    3.Is there another way to achieve what we need?
    Thanks is advance for any help.
    Mike
    null

    You have two options.
    1) Turn off all keys not wanted. This is what you said
    you did not want to do.
    2) Tun on all keys you want to use by creating a trigger for
    each key. i.e.
    trigger KEY-NXTREC trigger KEY-UP
    NEXT_RECORD; UP;
    Then turn off all keys not explicitly turned on.
    trigger KEY-OTHERS
    NULL;
    ET (guest) wrote:
    : Hope that it may be helpful.
    : Answer :
    : 1. In command line, add debug option so that you may know what
    : trigger is executing.
    : e.g. runform module= userid= debug=yes
    : 2. Sample code for Key-others trigger
    : null;
    : Rgds,
    : ET
    : Mike Braude (guest) wrote:
    : : Hi everybody,
    : : We are trying to restrict the end user from pressing some
    : : 'dangerous' keys, i.e clear block, execute query, even the
    : DOWN
    : : key causes us problems in some (1 record) blocks.
    : : I know there is a way to do it using Oracle terminal but it
    : : seems that we need greater degree of flexibility.
    : : I certainly don't want to go to every <KEY> trigger on every
    : : form (block) and put null; statements there. I know from
    : Oracle
    : : Docs that I'm supposed to use the key-others trigger..
    : : So here are my questions:
    : : 1.Is there any way to find out which key has been pressed?
    : : 2.Can someone post a sample code of a KEY-OTHERS triggers?
    : : 3.Is there another way to achieve what we need?
    : : Thanks is advance for any help.
    : : Mike
    null

  • Insted of trigger on Materialized view?

    Hi,
    Can we write insted of trigger on materialized view?
    Piyush

    peeyushgehlot wrote:
    When we do full refresh on materialized view, view gets truncated and new records get inserted, that's is on books and we can do job according, but when incremental refresh is done, what trigger will perform i am not sure.I'm not sure that I follow. A full refresh will cause insert triggers (row and table level, before and after) to fire for every row in the materialized view. An incremental refresh will cause insert, update, and delete triggers (row and table level, before and after) to fire for every row that is modified. There may, of course, be updates that don't actually change the data depending on how the materialized view is defined and how the changes need to be processed.
    Justin

  • Form trigger

    How to display a message after query has been executed and after record has come up.
    I mean, what trigger to use?Please help.
    POST-Query trigger is showing the message before the record comes up on screen.

    The Post-Query trigger fires after each row in a block is successfully fetched. Try adding a call to the SYNCHRONIZE built-in in your Post-Query trigger before you display your message. This will force Forms to synchronize the client display with the App Server representation of the form.
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

Maybe you are looking for

  • Activating the javascript debugger in Safari on Windows 7

    I apologize if this has already been answered but I have spent 2 hours trying to find out detailed instructions on how to turn on the javascript debugger in Safari for Windows 7 (specifically). From what I have read there is a debugger menu which I m

  • Need help finding iWeb files

    I can't retrieve iWeb files. When I go to the program it doesn't show any files even though I know they were saved. Excuse my ignorance and would appreciate your help. Jeff

  • Creating Business components

    Hi this purna ,i am new to the JDeveloper .so can you tell me the step by step process of creating business components . And also specify which site is full guide to perfect in JDeveloper other than Oracle site

  • URL Rewriting in JSP/Servlets

    Enabling URL rewriting for session support where cookies are switched off, results in the URL being rewritten as myURL/$SessionID$a_very_long_string. I believe that the /$SessionID$ is configurable on the server, does anyone know how ? OAS version 4.

  • How to connect LDAP though SSL

    Hi, I had successfully configured iDS4.1 to be a Naming Information Server, and I applied a Test cert to it which generated from Verisign. Now I would like to let all LDAP client connect to my LDAP server though the encrytion port 636, what should i