Which trigger

Hi all
i have one database block
that has 3 database items and one nondatabase listitem
if i fill the listitem in post query trigger every thing is Ok,
but i don't want to use post query trigger,
so i fill the listitem in when-new-record-instance trigger.
my problem is that for first time that i navigate on the record my listitem is correct
but if i press key_up trigger my listitem doesn't change.
i have to put my code for fill listitem in 3 triggers:
when-new-record-instance,key-up,key-down
now my question is :
which trigger is the best one for my purpose ?
any idea would be appreciate.

don't try those triggers. Use only the POST-QUERY-Trigger for your question.
All other triggers have side-effects to mouse-navigation, hotkeys, ...
or use a View, which has the correct data directly in it.
Gerd

Similar Messages

  • In which trigger can i use go_item() in oracle forms 6i?

    Hi,
        I have a problem with go_item.
    I tried executing go_item() in triggers like key_next_item, pre_text_item, post_text_item & when_validate_item.
    But none of them seemed to be working.
    I searched for other possibilities in the site, where i found a solution of using trigger ' when_timer_expired ' with ' when_validate_item ' ,
    but when i tried to create trigger, i did not find that trigger (when_timer_expired)  in the list at all.
    I'm using oracle form builder 6i.
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production.
    A trigger with go_item() must be created when tab is pressed.
    In which trigger can i use go_item() ??
    Thank You.

    from help:
    Restricted Built-in Subprograms
    Restricted Built-ins affect navigation in your form, either external screen navigation, or internal navigation. You can call these Built-ins only from triggers while no internal navigation is occurring.
    Restricted Built-ins cannot be called from the Pre and Post triggers, which fire when Oracle Forms is navigating from object to another.
    Restricted Built-ins can be called from the When triggers that are specific to interface items, such as When-Button-Pressed or When-Checkbox-Changed. Restricted Built-ins can also be called from any of the When-New-"object"-Instance triggers and from key triggers.
    Unrestricted Built-ins do not affect logical or physical navigation and can be called from any trigger.
    The Built-in descriptions include a heading, Built-In Type, that indicates if the Built-in is restricted or unrestricted.

  • Which trigger is raised after saving the details entered  in the block

    Hi,
    I am creating a form which should allow user to create tables by providing tablename , columnname and columntype. For that , I have a temporary table named NEWTABLE with columns named TABLENAME , COLUMNNAME and COLUMNTYPE.
    Upon running the form, the user enters TABLENAME , COLUMNNAME and COLUMNTYPE . Which trigger gets fired after all those records are inserted into that table. I tried using POST-INSERT but it is firing after each and every record gets inserted into the database table.
    Could u suggest the trigger name or else could u suggest any alternate method to perform that task .

    Use the classic key-commit trigger.
    Write there the following:
    post; -- this does insert/update/delete for the records in the form's data block
    after which you should call a stored procedure that receives as params the column names and column types in pl/sql tabels, plus the table name for the table to be created and does:
    'execute immediate create table ...'
    Still, it's quite unusual to create DB objects from forms. What if you need to indicate the tablespace? And what about indexes? What if you need partitions?
    Normally tables are to be created by developers and/or DBAs, not just any user, and those would use different tools (not Forms!), the most simple being SQL*Plus.

  • Which trigger to use in this case

    Hello All,
    I have a form in which I have an list item STATUS
    STATUS may have values a or b or c or d
    One event should happen when user selects 'c' whose earlier status is 'b'. Here I have two doubts
    1) Which trigger I have to use
    2) How to get the old value of the STATUSi.e 'b'
    because event should fire only when the status is changed from 'b' to 'c'.
    I am using forms4.5
    Cheers

    you can use the pre-insert or pre-update-trigger. the when-validate-record is as useless for your case, because navigating out of the record/block starts the trigger before your commit.
    but the two pre-trigger fire on each insert and update. Not only, when you have to validate your data. That means you have programatically to check, if your data changed the value between query- and commit-time.
    try it
    Gerd

  • Which trigger is best to validate list item

    Dear all,
    I have one form. Inthis form I have one list item named occupation_status.I have one text field called "Age".
    In the occupation_status property palette I set the "elements in the list" as follows
    List Elements:
    Professional
    Student
    Housewife
    Unemployed
    Not Applicable
    List Item value:
    P
    S
    H
    U
    NA
    My requirement comes here:
    User should allowed to select "Not Applicable" only if his age < 7
    If his age>7 then the list value "Not Applicable" in disable state.he sholud not allowed to select that value.
    where sholud i do the changes? Which trigger is best to do this validation .
    Please help me
    thanks and regards,
    SB

    Hi,
    IF :age > 7 THEN
    :LIST_ITEM_NAME := NULL;
    END IF;if we assign :list_item_name:=null then it may diasbale all the elements in the list item.I want disable only one element- "not applicable" if age>7.
    what can i do?
    thanks and regards,
    SB

  • Which trigger to use for this?

    Hello,
    I have this code here that should stop the user from creating a new record (therefore not adding it to the tree) if the value of sublevel = 0.
    I dont know which trigger I can use to make this kind of validation.
    declare
    v_group_code varchar(12);     
    var number;
    begin
    v_group_code:= ftree.get_tree_node_property('CONTROL.GROUP_TREE',nvl(:SYSTEM.TRIGGER_NODE,1),FTREE.NODE_VALUE);
    :parameter.grup_cd_selected     :=  v_group_code;
    select SUB_LEVEL
    into var
    from pyr_group
    where code = v_group_code;
    if var = 0 then
              message('You cannot create group here.');
              message('You cannot create group here.');
              RAISE form_trigger_failure;
    end if;
    end;Thank you

    Hi
    This code here that should stop the user from creating a new record (therefore not adding it to the tree) if the value of sublevel = 0.Pls try to use WHEN-CREATE-RECORD Trigger
    Hope this helps...
    Regards,
    Abdetu...

  • Which trigger to use?  Please help!

    Hi all,
    I am a bit confuse on which trigger to use when you want the trigger to fire as soon as you leave the item. Could anyone help me? Thanks in advance for your help.

    Harton,
    There are a couple of triggers which fire when leaving an item, WHEN-VALIDATE-ITEM, POST-TEXT-ITEM. Depending on what key is being used for navigation, you also have KEY-NEXT-ITEM, KEY-PREV-ITEM. Each of them are slightly variant as in the sequence of firing and hence are useful for specific purposes. The sequence of firing is clearly mentioned in Forms documentation.
    To validate any values entered in an item when leaving an item, WHEN-VALIDATE-ITEM is the ideal trigger to use and once the item validation is completed POST-TEXT-ITEM fires.
    SEQUENCE : KEY-NEXT-ITEM/KEY-PREV-ITEM
    |
    WHEN-VALIDATE-ITEM
    |
    POST-TEXT-ITEM
    -Aditya

  • Which trigger to use for error logging output ?

    hello,
    is there a trigger which is executed every time
    an error occurs in report generation ?
    so that i can write the error-message via
    "TEXT_IO" to an external file every time the
    trigger fires ?
    any suggestions
    greetings
    thorsten lorenz

    No, there's no equivalent of the Forms On-Error trigger. Please see my response in your other thread for information on where the error messages can be found.
    Hope this helps,
    Danny

  • ***Is there any listener which trigger the method when KEYUP?

    Hi,
    Is there any listener which can trigger the backingBean method when KEYUP!!!!
    Basically, I got 2 input box in the UI where the 2nd box getting enabled when user enters some value in the first box and tab out. I am doing this via valueChangeListener which has attached with first inputBox. But now I want to enable the 2nd input box as soon as the user start enter the value in the first box, how to do this plz..
    thanks
    kln

    Hi klogube,
    If you want to call method in backingbean from javaScript you should use both clientListener And serverListener as:
    1- Add clientListener inside your inputText as :
    <af:clientListener type="KeyUp" method="keyUp"/>2- write javaScript function as :
    <af:resource type="javascript">
        function keyUp(event) {
           var source = event.getSource();
           AdfCustomEvent.queue(source,"callServerListener", {}, false);
    </af:resource>3-Add serverListener inside your inputText as :
    <af:serverListener type="callServerListener" method="#{backingBeanScope.txnBean4.keyUpMethod}"/>Your InputText will be like:
    <af:inputText label="Label 1" id="it1">
          <af:clientListener type="KeyUp" method="keyUp"/>             
          <af:serverListener type="callServerListener" method="#{backingBeanScope.txnBean4.keyUpMethod}"/>
    </af:inputText>4- The java method:
    public void keyUpMethod(ClientEvent event){
    // do whatever u want
    }Sameh Nassar

  • Forms 6i - which Trigger?

    Hello together.
    I've a question for Forms 6i.
    I need a trigger which is only firering when the user changes the content of an item.
    The post_change trigger for example doesn't work because he is also firering when another code (in this issue an post_query trigger) is changing the content of an item.
    Thanks to everyone who trys to help me,
    Stefan

    ESW_si wrote:
    Hello together.
    I've a question for Forms 6i.
    I need a trigger which is only firering when the user changes the content of an item.
    The post_change trigger for example doesn't work because he is also firering when another code (in this issue an post_query trigger) is changing the content of an item.
    Hi, Stefan
    Do you have any other trigger attached your item ?
    If not ,Use post-change trigger within this item... more efficient when-validate-item trigger.
    Hope this helps
    If someone's response is helpful or correct, please mark it accordingly.

  • Which trigger i should use to display the values

    Hi all,
    Assume there are four fields in my forms coming from the same table i.e empno,empname,depno,salary.In which empno is LOV which displays all the employee names whenever i select the empname from the list the form should automatically fill empno,depno,salary fields which form trigger i can use here....

    The Column Mapping Properties in the LOV's property palette allows you to select a return item for each column displayed in the LOV. This will do what you want, there is no trigger involved. If you want a value to be returned but not visible in the LOV then set the column width in the LOV to zero.

  • Which trigger to use for insert data into db table in Forms

    Hi,
    My form is current having a database block with table reference. When enter data into form field and click on save button. Automatically the record is inserted into database table.
    I want to make this as manual insert. I changed the data block to a non-database. Where should i write the insert statement in order to insert data into table.
    Is it Key-commit trigger at form level?
    Please advise.
    Thanks,
    Yuvaraaj.

    Hi Yuvaraaj.
    Insert should happen when we click on the save which is inbuilt in the form. In this case where should i write the insert statement.Forms in built save commit's the form data where block is based on database not non database.
    @2nd reply
    Ypu are right. The reason i chnaged the database block to non-database is Currently i have a database block with form field canvas which insert only 1 record in to >table when we click on standard save button. The requirement was to add a field called CHANNEL which should have multiple values displayed. (i created this channel >field in a seperate datablock (non database) and used the same canvas.) When we insert data in all fields (single record) and channel we should be able to selected >multiple channel (say A,B and C) when we click on save then 3 records should be inserted in to the table which looping values for each channel. This was the actual >requirement and this is the reason why iam changing the block to non-database block.You are talking about two blocks.. 1. Master block and 2. Details block name channel
    You are inserting one record in master block then insert 3 record name A,B,C for that master record.
    Now you want master record should insert to each A,B,C record. Means
    'how are you' --master record
    and you want
    'A'- 'how are you'
    'B'- 'how are you'
    'C'- 'how are you'OR
    ?Ok. If you want master record save in database and then want to save non-database(channel) data into database USE Post-Insert trigger at block level and do the rest.
    Hope this helps...
    Hamid
    Mark correct/helpful to help others to get right answer(s).*
    Edited by: HamidHelal on Jan 26, 2013 1:20 AM

  • Which trigger would be required to populate a field based on another field

    Hi all,
    I have a tabular form which displays ID number once i execute a query
    Now i want to display a name for that id and its from another table. is there a post trigger that can do that ?
    thanks

    Hi ammad,
    its amazing how stupid i can be sometimes. i tried most of the post- ... but didnt even try the query. god its really nerve breaking.
    Thanks ammad u r a real pro.

  • Event Handlers which trigger functions with multiple arguments

    I am playing two video clips back to back. I have a few
    things which I need to do in between clips, so what I am doing for
    each is adding a handler for VideoEvent.COMPLETE, at which time i
    want to call a function which takes multiple arguments, like this:
    video.addEventListener(VideoEvent.COMPLETE,
    myFunction("1","2","3"));
    private function myFunction(var1:String, var2:String,
    var3:String):void
    video.removeEventListeners(VideoEvent.COMPLETE, myFunction);
    I've already figured out that getting rid of event handlers
    that trigger anonymous functions is impossible. Please don't tell
    me that it's impossible to remove them if functions require more
    than 0 arguments...

    "muskiemania" <[email protected]> wrote in
    message
    news:gc0pk0$jfb$[email protected]..
    >I am playing two video clips back to back. I have a few
    things which I need
    >to
    > do in between clips, so what I am doing for each is
    adding a handler for
    > VideoEvent.COMPLETE, at which time i want to call a
    function which takes
    > multiple arguments, like this:
    >
    > video.addEventListener(VideoEvent.COMPLETE,
    myFunction("1","2","3"));
    >
    > private function myFunction(var1:String, var2:String,
    var3:String):void
    > {
    > video.removeEventListeners(VideoEvent.COMPLETE,
    myFunction);
    > }
    >
    > I've already figured out that getting rid of event
    handlers that trigger
    > anonymous functions is impossible. Please don't tell me
    that it's
    > impossible to
    > remove them if functions require more than 0
    arguments...
    Any function that you add via addEventListener should expect
    exactly ONE
    argument, the event. And 99.958% of the time, you can take
    that event
    object and figure out exactly what you need to know.
    HTH;
    Amy

  • Which trigger gets fired when a filed (item) get populated

    Hi,
    Which (item level) trigger gets fired when a filed (item) get populated with data
    Thank you

    Thanks for the responce. But....please read the following and try to understand the probelm.
    I have a screen in Oracle Forms.
    For example the screen is EMP and I have a LOV on item: EMPNO
    After selecting an EMPNO from the LOV, I click on a button and the button's trigger (WHEN-BUTTON-PRESSED)
    populates the remaining items with data related to the EMPNO in the EMPNO item which I selected from the LOV.
    Here is the request: I want the items get populated when I select the EMPNO from the LOV.
    I copied the code from WHEN-BUTTON-PRESSED (which is populating the data into other fields) to the triggers you mentioned
    (pre-text-item, when-new-item-instance, when-validate-item, post-text-item)
    But they are not working (the data is not populating when I select EMPNO from LOV)
    I am a DBA not a developer, but I have to do this. So please help me and let me know how to do this.
    I hope you understand the request.
    Thank you

Maybe you are looking for

  • Producing a line graph of int values and saving as an image

    Hi, I wonder if anyone could help me with this. I have 2 arrays of integer values that I would like to plot as a line graph (e.g. X[ ] and Y [ ]) and then have this line graph saved as an image (the format isn't too important but PNG would be preferr

  • CSV file not appear as a CSV file in attach

    Hi. I am sending an CSV file as an attach in an email. But the problem is that it appears as a PDF file, even though in SOST it appears as a CVS file. Does anyone faced this problem? Thanks.

  • An error occurred downloading iOS 7.0.3

    I have an iPad that is currently on iOS 7.0, I am trying to update to 7.0.3 using the OTA update. I keep getting an error reading "Software Update Failed an error occurred downloading iOS 7.0.3" We have 1100 iPad Retinas and I have only seen this pro

  • DVD attaching but not reading data

    Upgraded my Host servers from server 2012 to server 2012 R2. Created new guest image with ISO which is datacenter 2012 R2 operation system for guest. When I tried from the virtual server I had to first install a DVD on SCSI. These are generation 2 Hy

  • Air HTML HTMLLoader load https ssl with untrusted or unknown certificate, click 'yes' does nothing

    When i go to a https website with an untrusted certificate i get this warning. when i click "yes" the HTML component does not go anywhere. just a blank white screen. tried this out with adobe air 1.5 and 2.0