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

Similar Messages

  • 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 collection to use in this case for best performance....

    i have two text files having 10,0000(aprox)
    phone numbers , i wish to compare both the files
    and write the matching numbers in third file..
    so which collection should i use to perform it..
    so that performance is best......
    plz send me the logic....

    > so which collection should i use to perform it..
    so that performance is best......
    Program to interfaces. That way, you can switch out implementations and test for yourself which performance is best in an actual production context. But first, write your program so that it works. Worry about refactoring for performance once your program is written and it works.
    > plz send me the logic....
    Give it a shot on your own first; we can help if you get stuck.
    ~

  • Which cache the Formula Engine will use in this case?

    Say that a MDX query contains:
    ❶a calculated measure defined in the targeted cube, ❷and another
    WITH MEMBER.
    Which cache the Formula Engine will use in this case:
    ❶Query,
    ❷Global, or
    ❸both (query & global)? and why? .... illustrate as possible please.

    Thanks Elvis ... but
    ❶ doesn't your reply, especially this part:
    ...But if we use WITH MEMBER keyword to define a calculated measure, it's the Storage Engine cache and not the Formula Engine cache....
    contradict with Microsoft's white
    paper: SQL
    Server 2008 R2 Analysis Services Performance Guide? ... check the figure below please:
    this is in page 36, where they are talking about the Formula Engine (or Query Processor, as they sometimes refer to it) types of cache. note the highlighted, they are saying that using the "WITH keyword within a query" forces the use of the "Query
    Context" which is one of the formula engine cache (as they said).
    Actually I've asked the main question because of this part of the same 36 page:
    I wanted to know
    ❷ what will happen to the calculated measures (those defined in the cube) if combined with another calculated members defined using the WITH keyword, in the same query? are they going to be recalculated even if they are already
    exist in the global cache?

  • HT4994 HAI CAN YOU TELL ME WHICH SIM IS USED IN THIS IMEI **** AND WHICH COUNTRY

    HAI CAN YOU TELL ME WHICH SIM IS USED IN THIS IMEI **** AND WHICH COUNTRY
    <Edited By Host>

    No. Sorry, no one here can help you.
    The only reliable way to determine this info is to call AppleCare.

  • Adobe Shockwave continually locks up my computer no matter which browser I use.  This is getting tiring.

    I installed and uninstalled shockwave a number of times but nothing seems to work.  It continually locks up my computer. I always get an error message.....shockwave has stopped working...in my browsers, no matter which one i use.  This is really getting tiring and I'm so frustrated.
    I've researched and made adjustments according to what others think the problem is but it never works.  What is going on?  Do I have a program which is blocking it?...My computer is only a few years old and I have to say I never had this problem before.
    I have the latest version.  Should I try to get to an older version?  Is there another program I can use.  It doesn't matter if I'm playing games or just going to my home page.  I get the error message and the computer locks up. 
    Any REAL working suggestions?

    I can't provide one because it's not one in particular.  It happens when my home page opens (msn.com), when I'm on facebook, when I try to go to any page.  In Chrome the message comes up stating Shockwave has stopped working; In Foxfire, I have the same error message with foxfire wording.  It is nothing specific, nothing.  I will uninstall it and try to find another program in it's place. 
    I know many people are having the same problem.  I use Win8.1

  • 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 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 effects were used in this video?

    In the link below does any one know which effects were used. I am creating a video but I would like to recreate some of these effects, specifically the two videos over lapping with transparency, the fast reverse clips, and any other you can see from the video would be helpful.  Thanks!
    KNITZ Fall 2014 - For Love & Lemons | Facebook

    Overlapping with transparency is simple enough. Just put on video on track one and the other on track two. Then set the track two video to 50% opacity and adjust to taste.You will probably spend some time changing the position of one or both of the videos.
    Shooting on green screen makes it easier to overlap videos though. Or, if not a chroma key color, at least a solid color.
    Reversing a video is a simple matter of changing the speed to a negative number.
    There really isn't anything too complicated in that video as far as I can tell. A lot of cropping and masking and transparency.  Not much else.

  • SuperDuper or Carbon Copy Cloner, which one to use in my case?

    Let me start of my saying what i am going to be doing...
    Right now i have Panther on my Mac, i am going to install Leopard and do a clean install which will erase everything on my Mac's HD, so i bought a external FireWire HD to backup all of my files , i was actually just going to backup my music, pics & videos but then i was told that the best thing to do is to backup the whole HD (don't know why this is necessary).
    So the carbon copy cloner is the most popular here on the forums while Super Duper looks like it's very simple to use, the only problem i see with Super Duper is that it's not Leopard compatible but i don't see that as a problem in my case since i am going to be using Super Duper with Panther and then i am assuming that i can manually drag and drop files i need ( music, pics and videos) back on my Mac's HD after i install Leopard, am i right here?
    Please reply with any advice you have or suggestions, greatly appreciated if you will, thanks in advance.

    Marat Voznyuk wrote:
    i was told that the best thing to do is to backup the whole HD (don't know why this is necessary).
    Because that allows you to revert to a known, good, bootable OS, in case your Leopard installation fails. It also allows you to simply use the Migration Assistant with a successful Leopard installation.

  • 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

  • BSP / Web-Dynpro (Java / Abap)  what to use in this case ?

    Hi all,
    i have some questions about all this BSP/Web-Dynpro stuff. We have an application (for health care written in Visual Studio) out there at our customers. Some of these customers are using SAP as their backend system. So we've writte some backend functionality (a cash processing, additional reports, a special invoice system etc.etc.) in Abap and Abap-Objects. Actually we are planing a new release for this backend stuff which is using the normal SAP Gui.
    Maybe we plan for the next release to convert our app to a Web based app and we discuss what SAP technology we should use for that.
    Here are my questions :
    - When and why should we use Web-Dynpro (Java) ?
    - Can't we use BSP ?
    - Is there any future for BSP ?
    - When will Web-Dynpro for ABAP be released (actually we are not a Java Shop so Abap is prefered)?
    Hope someone can answer my question.
    Greetings
    Henning

    If you don't mind, I am going to terminate discussion of Web Dynpro ABAP here. It is not that I want to, but we are in a difficult position with this development, and can not really discuss it too much.
    But, let me first make a few (last) comments:
    (*) BSP is available since WebAS 610 (which is now nearly at the end of its lifetime). WebAS 620 is the main platform out there, with NW04 (WebAS 640) now shipping, and the next product is inevitably coming. If you keep in mind that SAP supports each release at least 7 years, and we will be shipping BSP in an upcoming release, you can see that with BSP you are not going to left stranded for many years to come.
    (*) Web Dynpro Java is out and shipping. A very nice development environment. You can build nice things with it.
    (*) Web Dynpro ABAP: it will become a very nice product as well. We should know :). But, it will definitely not ship on NW04 platform. Which unfortunately means the next great NW shipment (both naming and date is not available).
    From our experience, most people seem to make their decisions based on the available Java versus ABAP skills in the shop. However, the other factor to look at is also "pixel perfect" rendering. Only with BSP can you influence the rendering. Web Dynpro is more a development platform for business applications, and as such they must conform to the designated model/concepts, etc.
    brian

  • Please help...Its really urgent- Which class to use for this?

    Can someone help me with this? I want to read characters from a file
    Ultimately I want to load some information from a text file which has information like this:
    0123456789
    0
    1
    4
    10
    X0123456789
    01202120212
    11202120212
    20212021202
    I want to load the information from X onwards .. all the rows and columns in a 2D array..
    I am not able to read the file at all ...
    I tried RandomAccessFile, BufferedReader..... They had problems.....what class sould I use.. any if you can give hints how I can reach X and start reading to 2d array...... It will be really very very helpful........
    Please help......

    Hi...
    See this is the partial code
    class LanguageRecognizer
         String word;
         String fileName;
         BufferedReader reader;
         char transitionTable[][];
         char letters[];
         char startState;
         char endStates[];
         int rows;
         int columns;
         public void getFileName(String fileName_)
              /********** Create File Objects to read file ******************************/
              try{
              this.fileName = fileName_;
              java.io.BufferedReader reader = new java.io.BufferedReader(new FileReader(fileName));
                   /***** Read File **************/
                   int i;
                   int X = 0;
                        /** as long as its not the EOF **/
                        while((i=reader.read()) != -1)
                             //Print all characters
                             System.out.println((char)i);
                             if (((char)i)=='X')
                                  X = i;
                                  System.out.println("X is at "+(char)i);                         
                             }//if
                        }//while          
              catch(Exception e)
                   e.printStackTrace();
              /**Call Prompt user and ask user to enter a word****************************/
                   promptUser();
         }//getFileName()When I say
    The while loop prints this file containing:
    0123456789
    0
    1
    4
    10
    X0123456789
    01202120212
    11202120212
    20212021202
    But it prints it in this format :
    0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    //Want to take this in the letter[]
    0 //want to take this as the startstate
    1 // This is the end state which could be more than one so in endState[]
    4 // This is the number of rows in the transition table
    1 // This is columns
    0
    //This is the transition table that I want in a 2D array......
    X // This is the X printed with the if() in the code
    X
    0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    0
    1
    2
    0
    2
    1
    2
    0
    2
    1
    2
    1
    1
    2
    0
    2
    1
    2
    0
    2
    1
    2
    2
    0
    2
    1
    2
    0
    2
    1
    2
    0
    2
    So I want to capture each letter typed in arrays.......But I am not able to seperate them and get them in my datatypes... atleast not using this class BufferedReader.... so can I use this class and get it or which class can I use??

  • Which widgets did used for this website?

    Hi Guys
    I have just visited the http://fashionologieedina.com/index.html  nicely designed by Ptauly.
    What widget did he used for top banner (Sliding the images)? or how did he created that banner in Muse?
    regards.
    sanjay

    Hi Sanjay,
    It looks like the designer has just used a 'Blank Slideshow' widget and deselected the 'Prev/Next/Captions/Counter' options from the widget menu (the little blue arrow next to your widget) and added their own images.
    You can add your own images by clicking the folder icon on the widget menu, then enable 'Thumbnails' so you can see which pictures are in your slideshow, then select the default pictures that you don't need in your slide (usually the flower pictures) and just delete them, then turn the thumbnails back off.
    Hope this helps.
    Regards,
    Karl

  • Which LayoutManager to use for this purpose.

    I am trying to set a panel inside JTableColumn. The panel consists of JTextField and a Button. The Button is very small in size and should appear in the SouthEast portion of the panel. The remaining space should be used up by JTextField. Which LayoutManager will help me achieve this. Here is a diagram of the layout of panel that I want.
    (----) stands for JTextField area and (||||) stands for the JButton.
    ------------------------|||||||||
    -------------------------------Please Note that the width of Panel is not known as it depends on the size of table column.
    regards,
    nirvan.

    Guys,
    Thanks for the replies. I achieve what I wanted using BorderLayout. Here is the program demonstrating what I was looking for. It's an SSCCE. The problem is solved.
    package com.ns;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.FlowLayout;
    import java.awt.Toolkit;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.BorderFactory;
    import javax.swing.JButton;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    import javax.swing.WindowConstants;
    public class PropertySheetLayout extends javax.swing.JFrame {
        // Variables declaration - do not modify
        private JPanel dummyPanel;
        private JTextField inputText;
        private JButton lookUpButton;
        private JPanel outerPanel;
        // End of variables declaration
        public PropertySheetLayout() {
            initComponents();
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {
            outerPanel = new JPanel();
            inputText = new JTextField();
            dummyPanel = new JPanel();
            lookUpButton = new JButton();
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            getContentPane().setLayout(new FlowLayout());
            outerPanel.setBorder(BorderFactory.createEtchedBorder());
            outerPanel.setPreferredSize(new Dimension(150, 75));
            outerPanel.setLayout(new BorderLayout());
            inputText.setBorder(null);
            inputText.setPreferredSize(new Dimension(100, 20));
            outerPanel.add(inputText, BorderLayout.CENTER);
            dummyPanel.setBackground(Color.white);
            dummyPanel.setPreferredSize(new Dimension(25, 75));
            dummyPanel.setLayout(new BorderLayout());
            lookUpButton.setText("jButton1");
            lookUpButton.setPreferredSize(new Dimension(25, 25));
            lookUpButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    lookUpButtonActionPerformed(evt);
            dummyPanel.add(lookUpButton, BorderLayout.SOUTH);
            outerPanel.add(dummyPanel, BorderLayout.EAST);
            getContentPane().add(outerPanel);
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            setBounds((screenSize.width-408)/2, (screenSize.height-334)/2, 408, 334);
        }// </editor-fold>
        private void lookUpButtonActionPerformed(ActionEvent evt) {
            inputText.setText(JOptionPane.showInputDialog("Enter your Name"));
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new PropertySheetLayout().setVisible(true);
    }regards,
    nirvan.

Maybe you are looking for

  • How to link Multiple pages in smart forms?

    Hi experts, am creating one smartform in that i have 4 pages each page is different from the other. am linking the pages as for page1 -   next page = page2 and create a command on main window in that   go to next page(checked) page2. similarly all th

  • Please allow us to use IOS 6 icons on IOS 7

    IIs it possible to have a choice to use icons from ios6 instead of ios7? The new IOS7 icons are big and poorly designsed meant for children.

  • Getting a ref cursor out of a procedure

    Hello, I am having some issues getting the ref cursor out of this procedure that returns a ref cursor when given inputs. I have included the code below and made bold the call to the package and procedure where the requested function lies. I put c2 in

  • Solaris 10: shminfo_shmmax

    Hello, I�m an Oracle DBA trying to understand the impacts that shmmax can have in a Solaris 10 system. 1. how does shminfo_shmmax setting affect the system performance (memory,paging,CPU) in Solaris 10? 2. Our server has 8G of RAM and runs with shmsy

  • Default site settings in iWeb

    How do I change the name of the site I originally set up in iWeb? Everytime I update a page it has the wrong address programmed into it and I must manually enter the correct address. Is it in the "Domain" file?