Diffrence between when-validate-item and post-text-item trigger

What is the Diffrence between when-validate-item and post-text-item trigger, when they are written for the same item and the basic diffrence between when-validate-item and post-text-item trigger.

Two big differences:
1. post-text-item is only available to, and only triggered when leaving a text item, whereas when-validate-item is triggered by the forms validation process, and is available for any item type.
2. p-t-i is a navigation trigger and you cannot invoke it programmatically, whereas the 'validate' built-in can be used to execute validation which fires the w-v-i trigger(s).

Similar Messages

  • Go-item in post-text-item oracle forms 6i

    It is not possible to use go_item in post-text-item trigger in forms 6i
    How to overcome this?

    I've never tried to force the user to do that.
    But Kevin's second solution would do it:
    Set a packaged variable and put the code in a form-level WHEN-NEW-ITEM-INSTANCECreate a package specification in the form -- I always name such a package P0.
    In the package, create a variable:  Next_Itm  varchar2(60);In your post-text-item trigger, set the package value:    P0.Next_Itm := 'BLOCK_B2.ITEM_6';In the form-level when-new-item-instance trigger:
      If P0.Next_Itm is not null then
        Go_Item(P0.Next_Itm);
        P0.Next_Itm := null;
      End if;

  • Execute query when post text item

    Anybody can help ?
    I create 2 block, first a data block and another is a control block with field customer_search field,
    after inputing customer id in search field on control block,
    I want to execute query.
    my code :
    set_block_property('customer',default_where,'custid=:control.customer_search');
    execute_query;
    error : frm-407 : illegal restricted procedure execute_query in post-text-item trigger.
    How to solve this problem ?
    notes: If I create one push button and put execute_query in there, every thing is fine.
    but the my user does not like that.
    Thank.

    hi,
    first of all change ur statement as
    set_block_property('customer',default_where,'custid='||:control.customer_search);
    means u must use pipe sign while using bind variable
    secondly
    u should use key next item trigger
    go_block(user desired item or block);
    --and then use this satemant
    clear_block(no_validate);
    execute_query(no_validate);
    i hope it wil slove ur peoblem if it will NOT then please acknowledge otherwise we will go for a other solution
    thanks
    imran
    manager IT
    www.masoodtextile.com

  • Validation in POST-TEXT item trigger

    Hi
    Does POST-TEXT -ITEM trigger fire in ENTER-QUERY mode?
    If not suggest me solution for following scenario:
    I have supplier field in master block. When Form is in -ENER-QUERY mode, i want to validate the user input in the supplier field before user navigate out of the field using TAB KEY (KEY-NEXT-ITEM) or MOUSE (POST-TEXT-ITEM).
    Thanks
    Cheers
    Ram

    The Forms help says that it doesn't, and nor does when-validate-item.
    It looks like you'll have to use the when-new-item-instance trigger. You can store the value of the current field and whenever the trigger fires, run some code to validate that field. If it passes the validation then store the value of the new field, otherwise put the user back in the original field.
    You'll also need to call the code from the key-exeqry trigger, so that you can validate the field which the user is in when they execute the query.

  • Post Text Item Trigger

    I have a master block and a detail block, which is a multi
    record block; for one item in the detail block I created a post-
    text-item trigger to check if this value exists;
    the problem now is that this trigger not only fires if I leave
    the item, it also fires at the beginning when the canvas is
    dieplayed and I execute a query
    can anybody tell me why this happens and how to avoid it?
    thx in advance, michaela
    null

    Michaela (guest) wrote:
    : I have a master block and a detail block, which is a multi
    : record block; for one item in the detail block I created a
    post-
    : text-item trigger to check if this value exists;
    : the problem now is that this trigger not only fires if I leave
    : the item, it also fires at the beginning when the canvas is
    : dieplayed and I execute a query
    : can anybody tell me why this happens and how to avoid it?
    : thx in advance, michaela
    What happens in your form is perfectly normal.
    You should use the When-Validate-Item trigger, and, eventually,
    set the text-item required.
    null

  • What is the diffrence between package javax.sql and java.sql

    Is javax designed for J2EE?
    And when to use package javax?

    Hi,
    What is the diffrence between package javax.sql and java.sql?The JDBC 2.0 & above API is comprised of two packages:
    1.The java.sql package and
    2.The javax.sql package.
    java.sql provides features mostly related to client
    side database functionalities where as the javax.sql
    package, which adds server-side capabilities.
    You automatically get both packages when you download the JavaTM 2 Platform, Standard Edition, Version 1.4 (J2SETM) or the JavaTM 2, Platform Enterprise Edition, Version 1.3 (J2EETM).
    For further information on this please visit our website at http://java.sun.com/j2se/1.3/docs/guide/jdbc/index.html
    Hope this helps.
    Good Luck.
    Gayam.Srinivasa Reddy
    Developer Technical Support
    Sun Micro Systems
    http://www.sun.com/developers/support/

  • What is the diffrence between My Runnable Interface and Java Runnable

    Hi folks
    all we know that interfaces in java just a decleration for methods and variables.
    so my Question is why when i create an interface its name is "Runnable" and i declared a method called "run" inside it.then when i implements this interface with any class don't do the thread operation but when i implement the java.lang.Runnable the thread is going fine.
    so what is the diffrence between My Runnable Interface and Java Runnable?
    thnx

    Hi folks
    all we know that interfaces in java just a decleration
    for methods and variables.
    so my Question is why when i create an interface its
    name is "Runnable" and i declared a method called
    "run" inside it.then when i implements this interface
    with any class don't do the thread operation but when
    i implement the java.lang.Runnable the thread is going
    fine.
    so what is the diffrence between My Runnable Interface
    and Java Runnable?
    thnxClasses and interfaces are not identified by just their "name", like Runnable. The actual "name" the compiler uses is java.lang.Runnable. So even if you duplicate the Runnable interface in your own package, it's not the same as far as the compiler is concerned, because it's in a different package.
    Try importing both java.util.* and java.awt.* (which both have a class or interface named List), and then try to compile List myList = new ArrayList();

  • What is the diffrence between a blanket PO and a Framework order?

    What is the diffrence between a blanket PO and a Framework order?

    Hi
    You have to use document type Frame work order for Blanket PO.
    You can use blanket purchase orders to procure consumable materials or services for which it is not worth creating a separate purchase order for each procurement transaction. 
    Blanket purchase orders are usually valid for a longer period of time. You can directly post the invoices for the materials and services procured for this blanket purchase order.
    Raju

  • Close open items and post balance

    Hi,
    Do we have any standard reports or programs which will consolidate all the customer open items. I mean clear all the open items and post a sperate transaction with new balance. This is not for fiscal year balance forwarding but has to be done every week for our client.
    Please do reply with any suggestions on how to do this. I am due to provide the solution for this.
    Regards,
    Satya

    Thank you for your replies.
    I have no idea about this report. Does this report generate balance of all open items till date instead of due in 8 or 20 days? Becz, the balance generated with this report is not matching with the balance on FBL5N.
    Also, what is the difference between F-30, F-32, F13E and S_ALR_87012178 report. What is the purpose of these and against what is this cleared?
    Please reply how these work. I need to see if any of these can be replaced with the custom program my client has.
    Regrads,
    Satya

  • Dynamically create and remove TEXT items in forms

    Hi Guys,
    Is there a way to dynamically create and remove TEXT items in form. For example I have the EMP and DEPT table and when
    I select the EMP table name from the LOV, rows of the EMP table with column name and data should get displayed on the screen and likewise a similar action for DEPT table and
    so on. I have about 90 tables from where data could be required to view and edit. They all have varying number of columns.
    Any suggestions ?
    Thanks
    KMD
    null

    Use OLE concept of developer and map Excel as an object
    Nadeem
    null

  • FRM-40737: illegal restricted procedure COMMIT in POST-TEXT-ITEM trigger

    Hi All,
    I tried to execute an insert statement in a POST-TEXT-ITEM trigger and use commit to save data in the db but this error appeared:
    FRM-40737: illegal restricted procedure COMMIT in POST-TEXT-ITEM trigger
    How to solve it? OR how to save every text item value entered in the database?

    I don't fully understand, why you need to insert records on post-text-item, but the possible solution is:
    Write a DB procedure which does insert and commits it.
    Call this procedure in post-text-item.
    Problems will occur if your procedure is modifying the table columns, which are used in form. Form will notice that values in DB have changed and you will have "Record has been changed by another user. Please requery to see changes" error. But if records, affected by DB procedures, are not used in form, the wverything will be OK.

  • Difference between importing a Journal and Posting a journal?

    Hi All,
    What is the difference between importing a journal and posting a journal?
    Thanks...

    When you import a journal, you have simply put the entries in a holding area. Those entries are not reflected in your accounts yet.
    Once you review the journal and it looks good, you post it.
    That is when your accounts are updated.
    Sandeep Gandhi

  • What is the diffrence between OMB plus command and OMB command

    what is the diffrence between OMB plus command and OMB command?
    are they both TCL command?

    Hi Alena,
    Welcome to SDN.
    Check this
    EXIT in Loops and Modularization Units
    Basic form
    EXIT.
    Effect
    Within a loop structure:
    Terminates looop processing (DO, WHILE, LOOP, SELECT).
    Within subroutines and other modularization units (but not in a loop structure):
    Leaves the subroutine or modularization unit (FORM, MODULE, FUNCTION, TOP-OF-PAGE, END-OF-PAGE).
    Outside loop structures and modularization units (report processing):
    Terminates report processing and triggers list display.
    But not sure about
    atexit() .. ,may use in Object Oriented Programming.
    (C++)
    "At exit-command in module pool."
    Mohinder
    Edited by: Mohinder Singh Chauhan on Aug 1, 2008 8:06 AM

  • When I copy and paste text in facebook, the text looks fine until I hit 'share' or 'comment' to submit it. Firefox then adds indiscriminate line-feeds within the text and it looks nothing like the original text. This does not happen in Safari. (Mac OSX 10

    When I copy and paste text in facebook, the text looks fine until I hit 'share' or 'comment' to submit it. Firefox then adds indiscriminate line-feeds within the text and it looks nothing like the original text. It makes it very difficult to read and awful to look at.
    This does not happen in Safari.
    (Mac OSX 10.6.4 with Firefox 3.6.6).
    == URL of affected sites ==
    http://

    Same problem, 3.6.8 and previous recent versions. I never thought to try another browser but I just pasted into IE and it worked fine. I copied from Firefox to IE and it worked as well. It's just when you paste into Firefox that you get the weird line breaks.

  • My animate file seems to work fine locally, but the images aren't linked properly when I publish and post them to a web server.

    I have an HTML5 animation that I am working on. When I preview it locally, it seems to work fine, but when I publish and post it on our web server, it doesn't seem to be able to find the images. The images are all in the images folder and it all seems to be pointing the right location, but it isn't showing up properly on the web server.
    If anyone has any insight, I would greatly appreciate it.

    The site runs fine offline. If I am watching it locally, it seems to be OK. The problem only occurs when I copy all of the content to the host. I have also checked to be sure that the images are in the correct folder and uploaded.
    Here is one of the images that is definitely live, but is showing as unlinked/missing in the HTML5 version.
    https://apps.treca.org/creative/ODE/70%20-%20Misc/images/ODE-Logo.svg
    Also, here is the URL of the site for review
    https://apps.treca.org/creative/ODE/70%20-%20Misc/ODE-VA-App.html

Maybe you are looking for

  • [Smartfroms] Problems in fetching text edit control text

    Hi gurus, I made an application using Screen programming (or dialog programming you must say). I used 3 tab strips. In last tab strip I used a text edit control to write remarks in multiple lines. I save those remarks (data element: TEXT255) in a cus

  • Captivate 4 publishing for LMS

    Hello, First, sorry for my bad english : I'm french. Please  someone can help me : I do not can launch my captivate project on my  LMS : the message written is : The archive is not standard to SCORM 2004  (3rd or 4th ed) I've already check the folder

  • Second Local Currency is ZERO in Depreciation Posting

    Hi In our SAP system we have set a second local currency in FI. It posts fine everywhere, posts in local and second local currency. Asset posting also post fine. But Depreciation posting do NOT post fine, the local currency has a value but second loc

  • Unable to install SAP Netweaver 2004s in Solaris x64

    I am trying to install SAP Net2004s in solaris x64 and it has JDK1.6. For some reason the SAPINST keeps giving error "JDK version 1.5.0 and above is not supported by SAP. I downloaded and installed j2sdk1.4.2_24_b06 as per note 716604. Created enviro

  • Software Update fails

    Hi Everyone Software update suddenly has a problem. When downloading and installing the latest updates - in this case Garageband and Java - the installer hits an error during the 'writing files' stage. This is the error: None of the checked updates c