commit to working when-validate-point around pls

Dear friends,

I have the same problem. Pls give me some inputs to achieve this result.

There is a block record multi in my form. When user tries to enter duplicate data in this block and tab from the last field i.e. end_date then a pop up should be raised.

"It's duplicate, you want to keep it? It has 2 buttons, yes or no.

When the user clicks "Yes" key data must be registered immediately (committed).

As I put this validation in when-validate-item of this class end_date I can't use commit-shape; Is we work all around to achieve this? Pls suggest some ideas.

Kind regards

REDA

Hello

I suggest you use the exit timer trigger, it will solve your problem, set the timer in the when-validate-agenda 1 microsecond and after you press the tab key, this will start the timer-out trigger and you can put your commitment within this trigger.

Tags: Oracle Development

Similar Questions

  • Oracle forms when-validate-point trigger

    Forms [32 bit] Version 10.1.2.0.2 (Production)
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64 bit Production
    With partitioning, OLAP and Oracle Data Mining options
    Release 9.2.0.8.0 - Production jserver
    Oracle Toolkit Version 10.1.2.0.2 (Production)
    PL/SQL Version 10.1.0.4.2 (Production)
    Oracle V10.1.2.0.2 - Production procedure generator
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Query Oracle 10.1.2.0.2 - Production Designer
    Oracle virtual graphics system Version 10.1.2.0.2 (Production)
    The GUI tools Oracle Utilities Version 10.1.2.0.2 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle tools integration Version 10.1.2.0.2 (Production)
    Common tools Oracle area Version 10.1.2.0.2
    Oracle 10.1.0.4.0 Production CORE


    I have a field called equip_code and some validations on the when-validate-item trigger that fills some years messages then opens a comment box. Next to this piece of code equip, I have a button for the list of values. If the user clicks the button (LOV), I have this code.

    If FORM_SUCCESS then
    do_key ('LIST_VALUES');
    end if;

    How can I force the trigger when-validate-point once the user chooses in a list of values.

    Next key element I have this code

    Validate (item_scope);
    If form_failure then
    raise form_trigger_failure;
    end if;
    do_key ('enter');

    I have this so that when-validate-item trigger before button-next. But when the user chooses in a list of values, I want to trigger when-validate-point. Any help appreciated.

    Your LOV button, in relaxation when button pressed, just do this:

    Go_item('MY_BLOCK.) EQUIP_CODE');
    If Form_Success then
    List_Values;
    End if;

    I don't think that anything on the trigger next-item key you need. If the equip_code value is changed, the WVI trigger runs when the focus (the slider) leaves the field.

    If you want to force the validation immediately once the user selects a value from the LOV, you can then change the List_Values; call over Do_key ('LIST_VALUES'); then create a trigger key-ListVal on the element. In the code, you d code: If Show_LOV ('MY_LOV') then Validate (Item_Scope);

    You must NOT put the code of validation in the trigger element next key, because it does not work if the user uses the mouse to click in a different field, or that he uses any number of other methods to leave the field.

  • Question about integrated NEXT_RECORD and when-validate-point trigger

    Hello

    I work with a form that/did the following:

    1) has two blocks of data (block 1 - & gt; Simple registration block & Block 2 - & gt; Block Record multi)
    2) has few items in each block.
    (3) when I filled the block 1 fields and press tab to navigate to next item key of an element in the trigger in block 1, block 2, I created a timer and when the period expires, the When-Timer-Expired trigger in the form of fires, which has a cursor that retrieves data from different database tables and assigns to the items in block 2 and saving the form must Save all records to the database tables attached to form blocks.

    During this process when I open the cursor and assign values to each element and say NEXT_RECORD when-validate-point triggers written on each level elements fires and validations. The code looks like this.

    Code of the trigger WHEN-TIMER-EXPIRED

    DECLARE
    CURSOR C1
    IS
    ................
    ................
    ................
    BEGIN
    FOR c1_rec in C1
    LOOP
    : block2.item1: = c1_rec.col1;
    : block2.item2: = c1_rec.col2;
    : block2.item3: = c1_rec.col3;
    message ("point value 3 is" |: block2.item3);

    NEXT_RECORD;
    END LOOP;

    DELETE_RECORD;
    POST;
    PREMIER_ENREGISTREMENT;
    END;


    So my problem is the value assigned to: block.item3 before call NEXT_RECORD is away for WHEN-VALIDATE-ITEM trigger on the same element. I tried to print the value as soon as the trigger is activated. Assume that the previous value is "100" the WVI trigger value is printed with a NULL value.

    I tried several times, but all the time, I get the same value.

    Can someone help me identify the problem?

    Thanks for your time and help

    Your problem may be a timing problem caused by a trigger when-validate-order of the day on your null file at the end change your loop like this:

    FOR c1_rec in C1 LOOP
      If :System.Record_status <> 'NEW' then
        Next_record;  --only advance if record is already populated
      End if;
      :block2.item1 := c1_rec.col1;
      :block2.item2 := c1_rec.col2;
      :block2.item3 := c1_rec.col3;
      message ('Value of item 3 is ' || :block2.item3 ||', Value in Col3='||c1_rec.col3);
      message(' ',no_acknowledge); --force above message to display immediately
    END LOOP;
    POST;
    

    In addition, you must not use next-element key to start a clock. What happens if the user clicks on the element rather than the tab? You should start the timer of the trigger when-validate-record of the first block. It runs all focus time leaves the line of Block_1, unless a change has been made, and regardless of how the user leaves the line.

  • return to the step after when-validate-point raise form_trigger_failure

    Sorry for this question but its a long time I had to program forms...

    I do validation step in a when-validate-point trigger. the trigger fires form_tirgger_failure on the validation point failure.

    is there an easy way to make the focus to the item once the failure is triggered?

    the most insight.

    You don't have to do anything. When form_tirgger_failure raised in when-validate-item, navigation fails and that the focus remains on the original item.
    Is it not what you see?

  • When-validate-point shot F10?

    In Forms6i, there is a block with data element two, itemA and itemB. I have a when-validate-Item trigger on itemA:

    If: itemA = 0 and: itemB > 0 then
    raise form_trigger_failure;
    end if;

    If I enter 0 itemA and itemB (current position of the slider on itemB) 5 and press F10, Oracle stores data. I don't want to save data if no trigger of W-V-I is not correct.

    -J' have set unit (property) of Validation at the point
    -KEY to ENGAGE on the level of form is:
    BEGIN
    Enter;
    IF this is Form_Success THEN
    RAISE Form_Trigger_Failure;
    END IF;
    IF: System.Form_Status = "MODIFIED" THEN
    Commit_Form;
    IF: System.Form_Status <>"QUERY" THEN
    Message ('error!');
    Bell;
    RAISE Form_Trigger_Failure;
    END IF;
    END IF;
    END;

    Can someone tell me what is the problem? Why forms commit data if one of the W-V-I is not ok?

    Have you done these steps?

    Enter 0 in itemA. -> WVI - lights and does not raise no exception for itemB is null
    Enter itemB 5. -> No WVI-trigger on this point, so no need for validation.
    Now your file is valid, that there will be no more validation, so the form will record data.

    You must either add an additional trigger WVI to the itemB, or create a WHEN-VALIDATE-RECORD-trigger block to do the validation.

  • What trigger should I use other than when-validate-point

    should what trigger I use, if I want something to fire when an item is changed?

    I don't want to use when-validate-item, because he shot whenever a record is displayed. I want to launch my code only when an element has changed its value?

    I thought I can use pre-text-point and post-text-point and run my code once the value on the post-text-point is to compare different pre-text-item. But I think it's not elegant.

    I need to store a value in a package.

    Is there a more 'user-friendly' way to do this in the forms?

    Can I check the status of an item? There are block_status, form_status and record_status, but not item_status.

    Thanks to you all.

    There's a trigger after CHANGE
    But it is included in web forms only for the sake of compatibility with older versions.
    If you are using a version older than 9i, maybe so you can use this trigger
    In addition, this trigger fires even when data are extracted from the database using execute_query.
    So, maybe you will need to do the verification:
    If: SYSTEM. MODE = "QUERY" then
    .
    .
    .

    Inserting the data in the tables in documents, and not as columns (items)
    This is why there is a record_status.
    The lock status is used to see if the record has changed for documents in the block.
    And form_status is used to see if there is any block in the form in which the record_status has been changed for the documents in this block.

  • problem when-validate-point and when-timer-expired...

    Hello
    In the when-validate-agenda of an item, there is the piece of code:
    Start
    h: = create_timer ('mon_timer', 1, no_repeat);
    end;

    and in the when-timer-expired in the block of the form:

    Start
    ....
    set_block_property ('Blockname', default_where, 'id =' |:cust.id);
    go_block ('cxs');
    do_key ('execute_query');
    ....
    end;

    The code above in when-timer-expired is not executed... I mean the go_block and run the query {at least I do not see the query results in the cxs block}...!
    But if I change the piece of code...

    set_block_property ('Blockname', default_where, 'id =' |:cust.id);
    x: = show_alert (...);
    go_block ('cxs');
    do_key ('execute_query');

    then the piece of code in WTE is carried out as planned...

    What may be the cause...?

    I use forms 6i with patch 12 and db 10 g v.2
    Thank you
    SIM

    Hmm. Maybe try a SYNCHRONIZE after the GO_BLOCK.

  • When-validate-point

    Hi all

    I have this code for sale_order form
    This code is written about prod_id
    but in this code when I choose wrong prod_id the cursor moves to the agenda thw I want he will show me the message

    MESSAGE ("PLEASE CHECK THE PROD CODE'"); and I want that if the item is not validated then it won't move to the next field

    Please correct the code in advance thanks
    BEGIN
         IF :sale_order.curr = 'GBP' THEN
         SELECT product.prod_name,product.TOTAL_FOB*(2.5) INTO :sale_order_detail.style,:sale_order_detail.price FROM product
         WHERE prod_id = :sale_order_detail.prod_id;
              ELSIF :sale_order.curr = 'EURO' THEN
                   SELECT product.prod_name,product.TOTAL_FOB*(2.5)*(1.5) INTO :sale_order_detail.style,:sale_order_detail.price FROM product
         WHERE prod_id = :sale_order_detail.prod_id;
              ELSIF :sale_order.curr = 'USD' THEN
                   SELECT product.prod_name,product.TOTAL_FOB*(2.5)*(2.2) INTO :sale_order_detail.style,:sale_order_detail.price FROM product
         WHERE prod_id = :sale_order_detail.prod_id;
         else
         EXCEPTION WHEN OTHERS THEN 
         MESSAGE('PLEASE CHECK THE PROD CODE');
         MESSAGE('PLEASE CHECK THE PROD CODE');
         RAISE FORM_TRIGGER_FAILURE;
         END IF;
         END;
    Concerning
    Vikas Singhal

    Published by: vikas singhal on Sep 4, 2009 18:26

    Hello!
    You need the exception at the end of your trigger handler.
    Try to change your code to:

    BEGIN
    IF
      :sale_order.curr = 'GBP'
    THEN
      SELECT product.prod_name,product.TOTAL_FOB*(2.5) INTO :sale_order_detail.style,:sale_order_detail.price FROM product
      WHERE prod_id = :sale_order_detail.prod_id;
    ELSIF
      :sale_order.curr = 'EURO'
    THEN
      SELECT product.prod_name,product.TOTAL_FOB*(2.5)*(1.5) INTO :sale_order_detail.style,:sale_order_detail.price FROM product
      WHERE prod_id = :sale_order_detail.prod_id;
    ELSIF
      :sale_order.curr = 'USD'
    THEN
      SELECT product.prod_name,product.TOTAL_FOB*(2.5)*(2.2) INTO :sale_order_detail.style,:sale_order_detail.price FROM product
      WHERE prod_id = :sale_order_detail.prod_id;
    else
      MESSAGE( 'illegal currency in sale order.' );
      MESSAGE(' ');
      RAISE FORM_TRIGGER_FAILURE;
    end if;
    
    EXCEPTION
    WHEN form_trigger_failure then raise;
    WHEN OTHERS THEN
      MESSAGE('Exception raised: ' || sqlerrm );
      MESSAGE(' ' );
      RAISE FORM_TRIGGER_FAILURE;
    END;
    

    Concerning

    Published by: Magoo on 04.09.2009 15:24

  • When-validate-item trigger doesn't trigger when press the button

    Hello experts.
    I use a when-validate-item in a text element. It works fine when I have on another element of text cursor, but if I press a button the man commits my form, does not draw the when-validate-point. How can I did it light when I press the save button / commit?

    Thank you
    John

    create the button navigable mouse...

  • Go_Item not available in a when-validate-Item trigger function

    Hello. I find that I can't use the Go_Item function in a trigger when-validate-point because it's a small trigger. Is there a common method to pull a trigger that I can use to validate an element (similar to the trigger when-validate-point) is not restricted to where I can use built-ins such as Go_Item, Go_Block, etc... I would use the trigger next-item key, but it does not when a user mouse clicks outside of the question, I need to validate.

    I need to get a validation on an element that identifies if some values were seized. If I find some values, so I need navigate a block "Diary problems" where the user can complete a problem. After leaving the block "Issues Log" I need then to return to the previous box and allow the user continue to enter items. This navigation appear to be limited in the when-validate-Item trigger.

    Any help would be greatly appreciated.

    Yes as Frane explained to create a timer and the fire on WHEN-VALIDATE-item and it expires after your operation as workaround

    or at the level of the blocks ONCE - NEW - ITEM - INSTANCE, you can write something similar

      if :system.trigger_item = 'MYBLOCK.MYITEM' then
             Your code
     end if;
    

    Baig,
    [My Oracle Blog | http://baigsorcl.blogspot.com/]

  • How to disable the current point when validate trigger

    Hi all
    I want to disable the current text point when validate trigger.

    Generally, we rely on WHEN-VALIDATE when the cursor leaves a field. In this case, because the cursor leaves the ground, why are you trying to turn it off at this point? The other time would be during the validation process. In this case, you should be able to disable during the WE-COMMIT or in a VALIDATION KEY.

    I guess if we understood better what you want to accomplish and why you want to do, we could offer something more useful.

  • In the latest Version of FireFox 9 Page Starup of Mozilla Firefox, pls which is the default home page no longer works, when you click it says invalid link, look at this and fix it...

    In the latest Version of FireFox 9 Page Starup of Mozilla Firefox, pls which is the default home page no longer works, when you click it says invalid link, look at this and fix it...

    Can be caused by a corrupt installation of Visual C++ (several versions can be installed-by-side; SxS) it lacks certain runtime components (Redistributable Package).

    See:

  • When my pointer navigation will not work top of page

    When my pointer navigation works very well on most of the page I am browsing, but when I try to use my pointer at the top of the page it won't work IE, try to disconnect

    The top of the Firefox window is unresponsive, inadmissible toolbars - see also the problematic extensions

  • My laptop can open internet explore properly, the cursor may work when you tap the address space to type a Web site, but the site it does not point to the search space to find anything except the right button

    My laptop can open internet explore properly, the cursor may work when you tap the address space to type a Web site, but the site it does not point to the search space to find anything except the right button. What is the problem? Harry

    When you try to search it's inside Windows or Internet explore?
    When is this last work fine?
    You did changes to the computer?
    Has it worked before, then you can try to run the system restore and check if that helps

    ;)

  • Windows Movie Maker 6.0 Vista immediately stops working when you try to open.

    Hello!

    I've been all around the internet trying to solve this problem, but nothing has worked so far.  When I try to start Windows Movie Maker 6.0 for Vista, (in general), it stops working at their opening saying the following:

    "Windows Movie Maker has stopped working".

    There has been a few times when it actually opens and I can work on my videos, however, it's very, very, rare and seems to happen randomly.

    I tried to open in safe mode, but it still fails to open.  I also tried to open .avi short and simple with WMM 6.0 files to see if it will be open, but that, generally, does not either.

    Once, I was able to open random and I have disabled all the filters on the Compatibility tab and temporarily activated only video filters that I needed.  That seemed to fix the problem for several days, and I could open Movie Maker 6.0 several times.  Sometimes it would freeze everything and save, or stop working when importing video files, but at least it would be open.  I was able to record some videos.  After a few days, my computer day and WMM 6.0 is more open more.  I don't know if yes or no update is the reason why Movie Maker 6.0 started crashing again, but it was the only thing that has changed on my computer while I could uncheck the Compatibility tab filters and open WMM 6.0. [Could uncheck all filters to be part of the problem?]

    I usually works with .mov files, and I read on how this type of file sometimes causes problems with Windows Movie Maker.  However, the problem normally occurs when I try to open the program (and if WMM opens, I can very well change .mov files).  I do not think that the file type is causing the crash, but I guess that's always a possibility...

    I also read that sometimes Windows Movie Maker 6.0 for vista doesn't work with all computers that have vista installed, and Windows Movie Maker 2.6 must be used to place.  Windows Movie Maker 2.6 is working fine on my computer, but it cannot change the .mov files, or record in HD.  I had horribly degrading the quality of the video with the conversions of files to use WMM 2.6.  Windows Movie Maker 6.0 is much better, on the rare occasions that it works.  Do you think I should use Windows Movie Maker 2.6 now?

    Here are two problem reports that appear more often when you try to open Windows Movie maker 6.0.  The window of support almost always said I need to update my computer again (even if there is no new update), or that it is a problem of security Data Execution Prevention.  Windows Movie Maker cannot be added to the list of exceptions to Data Execution Prevention, or I can check to see if the filters from the Compatibility tab are always disabled in the program, I don't know how to solve this problem...

    -----------------------------------------------------------------

    Signature of the problem
    Problem event name: BEX
    Application name: MOVIEMK.exe
    Application version: 6.0.6001.18341
    Application timestamp: 4ad5c77d
    Fault Module name: StackHash_6f96
    Fault Module Version: 0.0.0.0
    Fault Module Timestamp: 00000000
    Exception offset: 0378415b
    Exception code: c0000005
    Exception data: 00000008
    The system version: 6.0.6001.2.1.0.768.3
    Locale ID: 1033
    Additional information 1: 6f96
    More information 2: 39ee662180b2f2ed5cfc67e5914ae855
    Information additional 3:6366
    Additional information 4: 8328a225406b340b1b7b5f591aa5688c

    Additional information about the problem
    Bucket ID: 1197617492

    -----------------------------------------------------------------

    Signature of the problem
    Problem event name: APPCRASH
    Application name: MOVIEMK.exe
    Application version: 6.0.6001.18341
    Application timestamp: 4ad5c77d
    Fault Module name: StackHash_1703
    Fault Module Version: 0.0.0.0
    Fault Module Timestamp: 00000000
    Exception code: c0000005
    Exception offset: 032e41a4
    The system version: 6.0.6001.2.1.0.768.3
    Locale ID: 1033
    Information additional 1:1703
    More information 2: 2264db07e74365624c50317d7b856ae9
    Information additional 3:1344
    Additional information 4: 875fa2ef9d2bdca96466e8af55d1ae6e

    Additional information about the problem
    Bucket ID: 1909412930

    -----------------------------------------------------------------

    The "BEX" error happens much more frequently than the "APPCRASH" error  In addition, I have Windows Vista home premium installed and a 32-bit operating system.  I don't know how to read the problem reports, or if it's all the information you need.  I'm not very good with computers at all the... Any help and ideas would be greatly appreciated!

    Thank you!

    Very often, but not always, Code exception: c0000005 is a permissions access error, so have you tried right-clicking on the MM shortcut or .exe and selecting the option "Run As Administrator"?  Other times a reinstallation of the program crash can fix.  As you can not do with Movie Maker the next best option is to try the System File Checker.

    How to repair the operating system and how to restore the configuration of the operating system to an earlier point in time in Windows Vista
    http://support.Microsoft.com/kb/936212/#appliesTo

    Have you tested another user even if you need to create one to do this?

    Try running ChkDsk to check your drive for errors. Right click on your drive icon / properties / tools / error checking.  Try first by checking do not each box (that it will run in read-only mode) to see if it reports any problems file or hard drive.  If so, restart it by checking both boxes and restart to allow him to attempt to fix any problems found.

    See how many unsigned drivers, you have running on your computer.  This article will guide you on the instructions, but all you need to do is type sigverif in start run.

    How to identify unsigned with sigverif utility in Windows Vista drivers
    http://www.WinVistaClub.com/F34.html

    Vista Movie Maker DEP Fix
    http://www.YouTube.com/watch?v=tkpURM4FFt0

    In the fix above which is sometimes, but not always with success, it is suggested to leave it on the AVI decompressor.

    There are a few suggestions that Nero is a problem if you run that at all?

    Windows Movie Maker has stopped working
    http://blog.SteveX.NET/2006/11/Windows-Movie-Maker-has-stopped-working/

    If a piece of software can crash Movie Maker may be other software can do, then try Movie Maker in a clean environment, without other software running.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/default.aspx/KB/929135

    http://www.Google.com/search?q=Movie+Maker+DEP+Vista&RLS=com.Microsoft:-AU & ie = UTF-8 & oe = UTF-8 & startIndex = & startPage = 1

Maybe you are looking for