Why Module level trigger contains "WHEN-CHECKBOX-CHANGED" trigger in Forms 6i?

Hi,
Why Module level trigger contains triggers like "WHEN-CHECKBOX-CHANGED", "WHEN-BUTTON-PRESSED" etc.? "WHEN-CHECKBOX-CHANGED" trigger is present in CheckBox & "WHEN-BUTTON-PRESSED" trigger in Button. Then why these triggers are also presnt in Module?
Can anyone please clarify my doubt?

There's a lot of triggers that are present at different "scopes". Like they exist at the item level, the block level,
the module level...
The idea is if you have an action that should only occur at that one single item it can do in the item trigger. If
it's for all of them on the block, in the block level trigger. If for all of them ever, at the module level.
For example suppose you wanted it to do a next_item after the trigger executed you can put that logic in the module
level trigger. A key thing to notice here is the trigger hierarchy. That is essential to know about.
Right click on one of these triggers in the object navigator. The execution hierarchy is override, before and after.
since each of these levels of the same trigger has this execution hierarchy this is, well, potentially not easy to
understand what is going to happen. I would typically have a per-item trigger be before and a higher level trigger
be after.
And this execution hierarchy thing is something I'd love to see enhanced in the gui. I wish it was a lot easier to see
what the execution hierarchy is when editing a trigger text. I wish one could see and modify the execution hierarchy on the
same screen as the trigger text and what would be really great is some way to tell how the trigger hierarchy will sort out
at run time. For example if one is looking at an item level trigger it would be fabulous to know that as is, that trigger will be
overridden by a higher level trigger and so on. Or vice versa if one is looking at a block level or form level trigger that it is
overridden by a lower level trigger, or it will execute before or after some other trigger. I don't know what is defined to happen
with various levels of triggers that have the same execution hierarchy. Like suppose they are all override,before,after.. then
what happens? It'd be good to know.

Similar Messages

  • Problem with WHEN-CHECKBOX-CHANGED and ON-POPULATE-DETAILS

    I have a detail block with a relationship set up to a second block. In my first block, if I cause an error but the next action I take is to press a checkbox on another record, my error will display and the raise form trigger failure is triggered but the checkbox changes it's value and the cursor is displayed on the record with the error. I didn't want the checkbox to change if an error occurred. I tracked this through the trace and saw the on-populate-details is fired between the error and the when-checkbox-changed trigger. I went through debug and saw because of the erorr, the system will do a 'return' back to the sending action. I beleive this return is causing the when-checkbox-changed to fire. I'm just guessing here. I tried a similar action on another form without a relationship set up. That would eliminate the on-populate-details trigger. When I did a similar error, I got exactly what I was looking for. I caused the error but pressed the checkbox on another record. The error displayed but the checkbox did not change and the cursor returned to the error record. I need the record to have this relationship. Consequently, I need the on-populate-details trigger. Can anyone think of a solution? I'm currently on Forms 6I. We are going to forms 10G in the next few months. But I really need a solution on my current set up. Thanks.

    The getNextDatabankRecord() call is at the beginning of my run code. I use one step just for this line code.
    Code :
    public void run() throws Exception {
              beginStep("CHARGEMENT DES DONNEES SUIVANTES");
                   info("Chargement des prochaines données...");
                   getDatabank("NouvellesIA").getNextDatabankRecord();
              endStep();
    Stop the user after this step and goto the finish section should not be a problem...
    If I use the "When out of records" option, does it jump directly to the finish section ?
    Thanks,
    Benoit.

  • How to realize WHEN-RADIO-CHANGED- Trigger in ADF

    Hy@ all,
    I try to redevelop the Summit Forms Demo in ADF.
    One of the existing modules is called "ORDER" and contains, among other things, radio buttons based on a database column(VARCHAR2) named PAYMENT_TYPE which contains the values CASH and CREDIT.
    Based on this Item a WHEN-RADIO-CHANGED- Trigger is called which shows an alert and reset the changes to a default value when the payment type is changed but the credit rating(database column from another table) is not equal to an according value.
    The code of the trigger is the following one:
    DECLARE
         n NUMBER;
         v_credit S_CUSTOMER.CREDIT_RATING%TYPE;
    BEGIN
         IF :S_ORD.payment_type = 'CREDIT' THEN
              SELECT credit_rating
              INTO v_credit
              FROM S_CUSTOMER
              WHERE :S_ORD.CUSTOMER_ID = ID;
         IF v_credit NOT IN ('GOOD', 'EXCELLENT') THEN
              :S_ORD.payment_type := 'CASH';
              n := SHOW_ALERT('PAYMENT_TYPE_ALERT');
         END IF;
         END IF;
    END;
    Now my questions are where to place the equivalent code(EO, VO, etc.?) and how to realize this.
    Further, is it possible to roll out the trigger code to the database and then call this stored unit from "the right place"?
    I´m using JDeveloper v10.1.3.1.0 and I´m pleased about any reply or solution.
    Best regards
    Chris

    The answer will depend on how you are storing the parameter in your ADF application and when do you actually need it to be set and based on what.
    This can be for example a property of a managed bean in your JSF application and you can initialize it either in the bean itself or in the faces-config.xml file as a managed property.
    http://www.oracle.com/technology/tech/java/newsletter/articles/jsf_pojo/index.html

  • Insert statement in when-checkbox-checked trigger doesn't work

    in a when-checkbox-checked trigger, I wrote the follwing code :
    IF :sunday = 'Y' THEN
    msg_alert('Y','I',false);
    pkg_var.v_day_count := pkg_var.v_day_count + 1;
    msg_alert('1','I',false);
    :schtm_skmk.day_id := '1';
    msg_alert('2 ',I',false);
    INSERT INTO schtm      
    (ROUTE_ID, DAY_ID, FLIGHT_ID)
    VALUES
    (:schmf.ROUTE_ID, :schtm_skmk.day_id, 1);
    COMMIT;
    msg_alert('end insert schtm','I',false);
    END IF;     
    if the checkbox is checked, I assigned value '1' to day_id. Then, I want to insert a row into table SCHTM. But, the insert statement fail. The msg_alert '2' pop up. The msg_alert 'end insert schtm' does not pop up, meaning the insert statement fail. It also fail after I replace the insert statement with the exact value of the item. But if I execute this statement in SQL plus, it insert a row into the database.
    What is strange here is it did work before, I successfully insert 2 rows into database. But when I test it again just a while later, it never work anymore.
    Please help.
    Thanks,
    Shu Wen

    It seems that you have missed ELSE. By the way there is only one INSERT ...

  • Trigger workflow when PR changed and copmlete activ workflow for same PR

    Hi,
    i am triggering the workflow for all line item of PR when PR is created. now i want to create workflow when PR change also.
    but before triggering the workflow i have to check the any in process workflow for the same and if then complete is and delete all its work item.
    for Ex.
    PR -4500000001 created with item 10 workflow triggerd ,
    suppose i changed it and agan save next workflow trigged now before triggerin this workflow we have to complete the 1 instance of workflow , delete all workitem of that instant
    Please suggest how can i achive this .
    Thanks in Advance
    Deepanker Dwivedi

    Hello,
    We have already implemented this in our old  project.Please find below the solution.
    No config change is required.
    1.Go to tcode SWETYPV
    2. Double click on your linkage.
    3. You will see there check function module.
    4. MAke a custom custom function module of yours and it will have CDPOS and CDHDR as its component.
    5. When so pr is changed or created this function module will be triggered there you can identify whether pr is changed or not using cdpos and cdhdr.
    6. If it is change raise two events one for completeion of old worklfows which are in process second for creation of new workflow instance.
    7. Create a wait step in your workflow which will wait for the completion event to be raised.
    Hope it helps.
    Regards,
    Nabheet Madan

  • How to update collection when checkbox changed in report

    I have a report based on a collection:
    select seq_id
           ,c001
           ,c002
           ,apex_item.checkbox(1,seq_id,decode(c003,'J','CHECKED','UNCHECKED')) selected
    from apex_collections
    where collection_name='CONCOLLECTION'When the checkbox changes I want to store the new checked/unchecked status in the collection.
    Steps towards a solution I've come up with:
    1 Create a dynamic action: Change, jquery selector : input[name="f01"]
    2 Create javascript to store value (=seq_id) of changed item into a hidden page item.
    3 plsql code to update collection member with seq_id that is now in hidden item.
    Is this the way to do it?
    If so, it's the javascript of step 2 that I can't figure out.
    thanks, René

    thanks this works.
    Using javascript I store the seq_id and the checked value in 2 page items
    $s('P70_SEQ_ID', $(this.triggeringElement).val() );
    $s('P70_CHECKED', $(this.triggeringElement.checked).val() );The checked value I get is <empty> when checked and 'undefined' when unchecked. Based on this I can now update the collection.
    declare
      l_selectie varchar2(1);
    begin
      if v('P70_CHECKED')='undefined'
      then
        l_selectie := 'N';
      else
        l_selectie := 'J';
      end if;
      apex_collection.update_member_attribute(p_collection_name => 'CONCOLLECTION'
                                                 ,p_seq             => v('P70_SEQ_ID')
                                                 ,p_attr_number     => 3
                                                 ,p_attr_value      => l_selectie);
    end;

  • Route value is not changing for item level in VA02 when we change shipping

    Hi experts,
    I was facing a problem in VA02. When we change shipping condition type in header level,
    the item level route data has to be changed. But in  my case it is not happening. This is happening for only one line item and rest of the line items route values are same as prvious(last) shipping condition type.
    Where do i change the code.
    Can anyone please explain this one and help me out this.<priority normalized by moderator>
    regards,
    Sree.
    Edited by: Vinod Kumar on Aug 26, 2011 1:29 PM

    a

  • Why doesnt a sound play when I change the path?

    Hi. I am trying to play a background sound in my program and so far, after searching and reading lots of posts I finally have a "TaDa" sound playing once when the program starts. But what I want is a sound to be looped everytime I start a program. That sound will be in the same folder as the program.
    This is the code that I put in public static void main() to play the sound:
    public static void main(String[] args) {
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    java_testt b = new java_test();
    b.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    b.startApp();
    private void startApp()
    {playStartupSound();}
    private void endApp() {System.exit(0);}
    private void playStartupSound() {
    Runnable soundPlayer = new Runnable() {
    public void run() {
    try {                                                                                    
    File tadaSound = new File(System.getenv("windir") + "/" + //This is the windows tada sound. All I want is
    "media/tada.wav"); //to change the path to another sound
    AudioInputStream audioInputStream = AudioSystem
    .getAudioInputStream(new FileInputStream(tadaSound));
    AudioFormat audioFormat = audioInputStream
    .getFormat();
    DataLine.Info dataLineInfo = new DataLine.Info(
    Clip.class, audioFormat);
    Clip clip = (Clip) AudioSystem
    .getLine(dataLineInfo);
    clip.open(audioInputStream);
    clip.start();
    } catch (Exception e) {
    e.printStackTrace();
    Thread soundPlayingThread = new Thread(soundPlayer);
    soundPlayingThread.start();
    Does anyone know how to choose another sound in the same folder as java_test and make it work with this code because when I change the ath it doesnt run.
    Thanks.

    Please put your code between the code tags. It's much better readable then.
    public static void main(String[] args) {
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    java_testt b = new java_test();
    b.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    b.startApp();
    private void startApp()
    {playStartupSound();}
    private void endApp() {System.exit(0);}
    private void playStartupSound() {
    Runnable soundPlayer = new Runnable() {
    public void run() {
    try {
    File tadaSound = new File(System.getenv("windir") "/" //This is the windows tada sound. All I want is
    "media/tada.wav"); //to change the path to another sound
    AudioInputStream audioInputStream = AudioSystem
    .getAudioInputStream(new FileInputStream(tadaSound));
    AudioFormat audioFormat = audioInputStream
    .getFormat();
    DataLine.Info dataLineInfo = new DataLine.Info(
    Clip.class, audioFormat);
    Clip clip = (Clip) AudioSystem
    .getLine(dataLineInfo);
    clip.open(audioInputStream);
    clip.start();
    } catch (Exception e) {
    e.printStackTrace();
    Thread soundPlayingThread = new Thread(soundPlayer);
    soundPlayingThread.start();
    }

  • Why do screen updates fail when MacOSX changes location?

    With Firefox 4.0, when I change MacOSX system location (host name and IP), the Firefox screen no longer updates. It does appear that link selections are followed. My current work-around is to quit and restart Firefox losing all session state. Changing MacOSX location did not appear to effect Firefox 3.

    The issue appears to have been resolved in the production release. Perhaps it was in some way related to the beta feedback plugin.

  • Why dose Premier (CS6) Crash when I change the Audio Hardware to System Default?

    I am running a brand new Imac, i7 3.4ghz, 32gb ram and updated.  Full Adobe Production suite installed and updated.  My Audio interface is the Akai EIE Pro with the latest 2.8.18 drivers installed.
    If a launch Audition, After effects, Logic, they all see the audio interface and work seemlessly.  When I launch Premier it does not see the EIE Pro interface and when I change the Default Audio interface to System Default Input/output Premier crashes immediately.  I have tried an earlier version of the EIE Pro drivers with the same results.  It doesn't make sense to me that it would work fine in After Effects but not Premier.
    Here is the following crash report.    Anybody else have this issue or have any ideas on what to do?
    Cheers!!
    Steve
    Process:         Adobe Premiere Pro CS6 [195]
    Path:            /Applications/Adobe Premiere Pro CS6/Adobe Premiere Pro CS6.app/Contents/MacOS/Adobe Premiere Pro CS6
    Identifier:      com.adobe.AdobePremierePro
    Version:         6.0.2 (6.0.2)
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [170]
    User ID:         501
    Date/Time:       2013-07-21 09:29:29.581 -0700
    OS Version:      Mac OS X 10.8.4 (12E55)
    Report Version:  10
    Interval Since Last Report:          104446 sec
    Per-App Interval Since Last Report:  81707 sec
    Anonymous UUID:                      CA3E80BE-8989-2BAE-97EB-5E95F113889C
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_BAD_ACCESS (SIGABRT)
    Exception Codes: EXC_I386_GPFLT
    [Crash log deleted.]

    Steve, the partial crash log is an unofficial unwritten rule around here.  The cause of the crash is usually near the top of the log anyway.  The hardware profile is at the bottom.  That can be helpful some times.
    But, most of the contents only make sense to software engineers.
    Search for the .plist without ".plist" in the search criteria. 
    Or, look in /System/Library/LaunchDaemons
    Best of luck,
    Jim
    Look, I just edited my post after you replied to it, John.

  • To trigger  congen_obj_wrt   when any changes  are done in Capgen_obj_wrt

    Hi ,
      I would like to know if there is any mechanism to trigger an congen_obj_wrt when changes are made to the organization(capgen) even for change in fields like name1 or address .
    There is "is contact person of " relationship maintained for the cp(congen ) and the organization (cap ) .
    I would like to trigger a congen_obj_wrt as soon as any changes are made to capgen_obj_wrt if the relationship exists .

    Hi,
    try the user exit EXIT_SAPLV56U_004.
    use the following tables parameters of this function module to determine whether the values are changed:
    I_XVTTK - Shipment Headers (Current)
    I_YVTTK - Shipment Headers (Old)
    I_XVTTS - Shipment Stages (Current)
    I_YVTTS - Shipment Stages (Old)
    if any change is made to any of the fields, you can trigger the standard output type by using the function module WFMC_MESSAGE_SINGLE. you will have to pass a structure of type NAST with the required vlaues.
    try this...
    cheers
    jubin

  • Adobe Acrobat Standard XI: Why prompted to save file when nothing changed?

    I have Adobe Acrobat Standard as the default PDF reader. I PDF printed a page from a website. Then I clicked to open the PDF. After I finished viewing the file, I closed the window. Adobe Acrobat prompts me to save: Yes, No, Cancel. Since I changed absolutly nothing, I am puzzled why Adobe Acrobat's save dialog thinks there are changes and askes me whether I want to save the changes.
    I have repeated opening and closing the PDFseveral times.
    Then, I tried opening and closing another PDF, and it just closes without prompting to save.
    Why do I get different behaviors on different PDFs? And can I control the behavior to get or not get the save prompt when there are no changes?

    I like that Adobe Acrobat will correct problems, then ask you whether to save.
    In the case of this file, I click Yes to save. Then the next time I open and close the file, it asks again, and I click Yes to save. Adobe Acrobat always does it with this file.
    With another file, Adobe Acrobat (AA) does not prompt, unless I change the file.
    I don't know which difference matters. AA created both PDFs. The problem file was a print from a webpage. The good file (that closes without prompting) was created from a scanner.
    I tried PDF printing this page (i.e. the page on which I am composing my response to your message). Then, I opened and closed the PDF, and was prompted to save.
    Seems like if AA corrected the problem, and I saved, AA should not have to correct the problem again (if that is what's happening). Also, if AA made the PDF in the first place, there should be no problems with the PDFto correct.
    You know what? I just tried printing another website and same prompting everytime I close.
    I've been using Chrome. I tried printing with Internet Explorer, and no problem of prompting when closing.
    Hmm. I just tried PDF printing from FireFox. No problem here either.
    Well, Now I suppose I just leave it for Google and Adobe to work out, if they care to.
    I just tried opening the problem file in AA and PDF printing from it. This seems to have cleaned the file. The second PDF file has no problem opening and closing.
    I've got an idea. I just went to the address bar in Chrome and typed "Chrome://plugins". That's the only way I know to get to the Chrome plugins. I saw that I have BOTH the Chrome built-in PDF Reader  AND the Adobe Create plugins enabled. I disabled the Chrome PDF Reader so ONLY the Adobe Create plugin is enabled.
    I printed this webpage again (the webpage you are reading). This time, there was no problem opening and closing the PDF, no prompts to save.
    However, now online PDFs will not display in Chrome. Instead, Chrome offers to download the PDF.
    I went back to the plugins and found Adobe Reader disabled. I enabled Adobe Reader so now I have both Adobe Reader and Adobe Create plugins enabled.
    The problem came back.
    I don't know who would fix this, Adobe or Chrome, but would be nice to "have my cake and eat it, too" meaning, not have to muck with the plugins to AA-print clean PDFs from Chrome, and then muck again with the plugins to display PDFs in Chrome.
    I tried FireFox. Displays PDFs, and AA-prints PDFs that are clean (i.e. no prompt on closing from AA).
    Well, that is enough (maybe more than enough) from me on this. I'll monitor this discussion in case anyone comments.

  • Why objet is not stopped when page change

    Hi,
    I'm currently working in my company on a library.
    A have created a class to display ads in a webrowser. A request is executed every 20 seconds.
    I display the ads in a panorama page
    but when i go to a detail page my banner continu to do request.
    The object isn't destroyed when the page change ?
    And if not how can i resolve it ?
    Thank you

    No. You should call the stop method on that timer to ensure it stops when you want it to.  It sounds like there's a handle somewhere on that timer that hasn't been released (perhaps via page caching) so that's why the timer hasn't gone out of scope.
    Ignoring the obvious solutions makes your programming life more difficult.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with
    undefined objects and unknown namespaces.

  • *Not a Joke* Why does my iTunes apologize when I change songs?

    Okay, I know what you're all thinking, but this is honestly the strangest thing that I have ever heard. About 50% of the time, when I switch song on iTunes, I hear "sorry" in between songs. Yeah. Strange, right? For those who don't know what I'm talking about... http://www.youtube.com/watch?v=zJceD_lwanU Skip to about 24 seconds in and just listen.
    Thank you guys for your support and help in this very strange matter.

    I doubt it's coming from iTunes itself. iTunes has no "speech" capability directly, and it doesn't sound like it's picking up a fragment of some other recording. Check the Universal Access system preference and see if VoiceOver has gotten inadvertently turned on. If not, then it's probably some other utility you have installed, Growl perhaps.
    Hope this helps.

  • SPL Block when manually changing address detail form r3

    I have a strange situation:
    We have completed an upgrade to GTS 7.1 - SSLLEG SP 15
    We are using R3 4.7 - PI 2004_1_470  SP 0015   PI_BASIS 2005_1_620 SP 0014
    When we create a sales order with reference to another sales document - and manually change the address, the RFC sends the sales order inofrmation to GTS - and screens normally
    When we create a sales order without reference - and manually change the address to a partner -  the RFC sends teh sales order information to GTS - but the partner(s) changed are identified as blocked due to "Manual change - and found on boycott list"
    When I SPL screen this on the GTS side - it proposes release - without considering the blocked partner(s). It does not appear on the blocked documents list - but when you display doc - it shows these partner(s) blocked
    If I send this sales order over using the r3 push program (/SAPSLL/SD0A_DISTRIBUTE_R3) - the order screens properly
    The configuration is set to SYNCHRONOUS SCREENING for the document item category
    Any insight here would be helpful

    hello Sameer,
    1. Whether your Embargo service is activated for the Country of Plant from which your order is getting shipped. -- Yes I have activated the Country under Embargo list.
    2. Whether the partner function for which you changing the county detail has been added in into the Partner group which is assigned to Embargo services.( GTS)-- Assinged the Sold to Party ( AG) for PGEMB2- Partner group
    3. Whether the country which u putting as Embargo has been maintianed under Embargo country list,
    - yes
    What I am doing exactly is , I am creating sales order with US customer master , but I am chaning the Country Key as Embargo country ( Ex: CU, SY, IR) at VA01 , or VA02 level Sales order header Partner tab level for Sold to party address ( changing only country key as embargo country) , not to ship to party  ( ship to party still US country key only), at that time system not blocking the sales order as embargo.
    please let me know if any once come across this sistuation..
    Thanks in advance
    NVR

Maybe you are looking for

  • HT4904 Apple Hardware Test or not?

    Tried to open Apple Hardware Test on my MBP Pro 13", but pressing the D-key while starting the MBP did not work. Turned to "Computers that can be upgraded to use Lion Internet Recovery" where the latest MBP 13" is early 2011.* My MBP 13" is late 2011

  • Bought Apps

    When buying Apps is the charge per phone or per account with Itunes and Iphone what ever I bought my wife could also put on her Iphone.Went ahead and ordered 3 Droid X for the family coming from AT&T and Iphone to this will be a learning curve but I'

  • Problem in running javac.exe

    Hi I'm using Windows 2000 server. I installed Java 2 sdk in directory c:\jdk1.2.2. After this I added c:\jdk1.2.2\bin in the path environment variable using Control Panel ,System Utility. Then I opened the command prompt (Start ,Run ) and typed comma

  • How does one remove inserted HTML?

    I inserted HTML on a page and it must now be removed. I know it is there in the HTML code, but it does not show when I "Insert HTML" from the Object dropdown.How can I remove the code?

  • Can I import my google & yahoo bookmarks to firefox

    I have a lot of bookmarks on both yahoo & google, and I would like to be able to access them from firefox. Can you please guide or show me how to go about this?