How to stop new record creation when mouse click

Hi,
I am working with Oracle Forms 6i.
I have a multi record block. I have provided a 'New' button that the user should click when a new record creation is required. This is because there is some other function that needs to be performed when the new record is created. Specifically, on clicking the new button, the program populates the field with values read from another table. This works fine.
However, I realized, that if the user clicks on the mutli-record block just below the last record, a new record gets created. This action does not cause the logic behind the 'New' button to execute and the record is created in a manner that is not acceptable.
First question is why does the new record get created only by clicking with the mouse with the pointer below the last record? Is there a way to stop this from happening?
Thanks in advance for your help.
Shailesh

Hi Andreas,
Probably I was not able to explaing my problem.
I have a button that creates a new record when clicked. The button's trigger has the CREATE_RECORD statement.
When a new record is created, I need to copy values from the record above it. I have therefore used DUPLICATE_RECORD in my block's WHEN-NEW-RECORD-INSTANCE trigger.
I cannot use DUPLICATE-RECORD in WHEN-CREATE-RECORD trigger.
So, I am not clear about what you are suggesting.
My problem is that a new record gets created when click with my mouse pointer below the last record in the multi-record block. Why does that happen and how to prevent it?
Thanks
Shailesh

Similar Messages

  • How to stop the Flex application when user clicks on Cancel button from JS-confirm message?

    Hi All,
    I use the next code when a user clicks on a link:
    private function clickHandler():void
          ExternalInterface.call('confirm', 'Of course you want to go to the Adobe forums!');
          navigateToURL(new URLRequest('http://forums.adobe.com'), '_self');
    This will show up the javascript confimation box. But when the cancel-button is clicked, the user goes straightly to http://forums.adobe.com...
    How to stop Flex performing the next code when a user clicks on the Cancel button?
    Or, how to catch which button is clicked by a user in Flex?
    Thanks!

    I agree with Mr. Hall that using mx.controls.Alert in Flex may be a better route.
    Show the Alert like this:
    // show an alert with a question and yes and no choices
    Alert.show( "Would you like to go to the Adobe Forums?", "Question",
         Alert.YES | Alert.NO, this, closeHandler, null, Alert.YES );
    Then handle the response in the closeHandler() function:
    protected function closeHandler( closeEvent:CloseEvent ):void
    if( event.detail == Alert.YES )
         navigateToURL( new URLRequest('http://forums.adobe.com'), '_self' );
    else if( event.detail == Alert.NO )
         // they chose no
    The following documentation on Alerts may be helpful:
    http://www.flexafterdark.com/docs/ActionScript-Alert
    Let me know if that helps...
    Ben Edwards

  • FF34. How to stop new search starting when changing Search Enigine choice?

    I switch a lot between different search enigines, such as IMDB, Mirrium-webster, Wikipedia, YACY ans so on, and with the prior versions when I chose a new Search Engine from the dropdown list it didn't instantly start a new search. I don;t want a new search commenced until I either press Enter or hit the Search Icon. How do I stop FF from doing this? The reason I don;t like FF doing this is because I don;t want the already searched for terms to be automatically used in a new search engine choice. THAT's the reason I choose to use another search engine previously.

    You can revert to the old Search Bar scheme like this.
    Open up '''about:config''' ''(typed in the Location Bar)''
    Right-click and toggle this preference to '''''false'''''
    '''browser.search.showOneOffButtons'''
    Then restart Firefox.

  • Re: How to cause a word appear when mouse click a object I created.

    I'm a new beginner, the software I have is Adobe fl CS4.  I succussfully created a scene with all correct layers including a start button action script.  No errors works great. Now my next challenge is, how do I cause a word to apear?  I created some objects that I want to select and cause a word to appear and color to change, once I hover over the object.  It is like the same method when you create a 'start button.'  Do I create another sub scene in the action script command?

    not
    var myPauseFunction():void {
    but
    function myPauseFunction():void {
    also this line
    startButton.addEventListener(MouseEvent.CLICK,playMovie);
    should be only
    startButton.addEventListener(MouseEvent.CLICK,playMovie);
    ... and stop just pastnig what I give you and start reading and thinking
    I gave you a sample pause function. instead of just pasting it jou should look at it ant figure that probably you would like to call the function on startbutton click... right?

  • How to identify new records in a table using OBIEE

    Hi,
    I have price change table as and when a record comes into this table i have to generate an alert. Then show a report with the price changes on which i can invoke an action to go into my transactional system to make the chnage. And once the change is made the process again starts to look for any new price chnage records that are recieved.
    Could anyone pls tell me how to identify new records in a table.
    Rgds

    SELECT ID, LastName, FirstName,
    RANK() OVER (PARTITION BY LastName,
    FirstName ORDER BY ID) AS SeqNumber
    FROM
    (SELECT ID, LastName, FirstName
    FROM Customers
    WHERE (LastName, FirstName) IN
    (SELECT LastName, FirstName
    FROM Customers
    GROUP BY LastName, FirstName
    HAVING COUNT(*) > 1)

  • HDR-CX405 How to stop dual recording, only mp4 file needed.

    Hello Sony, Yesterday i purchased HDR-CX405. My question is, how to stop dual recording? Only mp4 file needed. Both file created on memory card while shooing video scene - AVCHD and mp4. I don't want AVCHD (too big file), just want mp4 file only.

    Hi mkpi49,
    Welcome to the Sony Community!
    I would just like to confirm the answer VideoGeek posted. The camera can only record in Mp4 when it's set to Dual Rec. Both an AVCHD and Mp4 file will be created and written on your card. We would also suggest recording in AVCHD and later converting the file to Mp4 using the PlayMemories Home software. 
    For further assistance regarding your concern, please contact the Sony offices/Sony representative offices nearest to your place of residence in Asia Pacific region http://www.sony-asia.com/countryselector.html?hpid=countryselector:AsiaPacific. Due to proximity, they are in a better position to respond to your questions or concerns.
    If my post answers your question, please mark it as "Accept as Solution". Thanks_Mitch

  • How to stop a process chain when its running?

    Dear Experts,
    How to stop a process chain when its running? is it that a chain can be stoppend when we open an info package of that chain ?
    Thank you,
    Raj

    Hi,
    Goto the main menu process chain --> choose the remove from the Schudule...
    Regards
    sathis
    I hope it helps to u... please assign the points

  • When-Mouse-Click does not fire if When-new-item-instance exists

    We are using Forms 6i Patch 12.
    The When-Mouse-Click trigger (at block level) is not getting fired when a When-new-item-instance trigger exists on a given item on which mouse is clicked.
    We need to synchronize keyboard and mouse events such that if the validation on certain key items fails, the cursor should go to one of the specified items as per the validation rules.
    The validation rules are different on leaving from different items. Complex validation rules require cursor to go to a different item than the current item on which the validation fires.
    Since go_item cannot be used in when-validate-item, we are using a combination of key-next-item and when-mouse-click.
    But, this strategy seems to fail if mouse is clicked over an item having a when-new-item-instance trigger.
    Also, we need the When-mouse-click trigger to fire before When-new-item-instance.
    Any pointers to solving the firing of trigger or strategy will be appreciated!
    Regards,
    Sanjiv

    This solution we have tried and it works also.
    However, we end up in another problem in the form. For overall picture, please see my latest post for "Forms Valid status" at Forms Valid status
    Regards,
    Sanjiv

  • Could somebody please advice how to stop the pages dropping ,when l go on ebay ,utube etc

    could somebody please advice how to stop the pages dropping ,when l go on ebay ,utube etc

    could somebody please advice how to stop the pages dropping ,when l go on ebay ,utube etc

  • How to stop iphone from autoplay when plug into car audio system usb?

    how to stop iphone from autoplaying when connected to your car audio USB ?

    You need to remove the association that Windows has with that particular file type. To do that, you need to open Windows Explorer. From there, click on Tools, then Folder options. Click on the tab that is named file types. You then need to find the extension for the photos that appear in the iPhone, then click that registered file type. Once you do that, there is a section to select the program to open that file type with. You can click on the change button, and that will allow you to change the program that it opens with, or restore the default. There is also a box that can be checked to always use the selected program. If you unselect it, it will prompt you next time on what program to use.
    Hope this helps.

  • I migrated all data from old PC to new and iTunes successfully transferred to new PC. When I click on a song it says it cannot locate the original. How does one map iTunes file to iMusic to enable play from original files ?

    Subject: Migration
    I migrated all data from old PC to new and iTunes successfully transferred to new PC. When I click on a song it says it cannot locate the original. How does one map iTunes file to iMusic to enable play from original files ?

    Subject: Migration
    I migrated all data from old PC to new and iTunes successfully transferred to new PC. When I click on a song it says it cannot locate the original. How does one map iTunes file to iMusic to enable play from original files ?

  • How can i fix Thunderbird so when i click on a emailadress in internet explorer , it will be filled in the adress field in a new email

    How can i fix Thunderbird so when i click on a emailadress in internet Explorer . i want the email link to open thunderbird and fill in the adress i have clicked on.

    This would be a function of IE and not Thunderbird. Have you set Thunderbird to be your default email client?

  • Passing parameter through when mouse click trigger

    I have a detail block.This block fetching multiple records.My query is how can i pass parameter though WMC trigger.
    My details block displaying data from 4 tables.
    When i click on any field all the data on that row must be my parameters.

    In first form in when mouse click trigger:
    SELECT xyz
    INTO :GLOBAL.xyz,
    FROM abc
    WHERE v.po_no = :SYSTEM.MOUSE_ITEM
    AND IMT21_SIT.C_SIT_NO = IMT22_RECT_HD.C_SIT_NO;
    EXCEPTION WHEN NO_DATA_FOUND THEN
         MESSAGE('PLEASE CLICK ON PO NO');
    logout;
    logon('abc','[email protected]');
    open_form ('C:\CUSTOMER_SERVICES\SUPL_FAS');
    in second form in when new form instance trigger:
    block_name.field_name := :GLOBAL.xyz;
    it show error..........

  • COMMIT_FOARM IS NOT WORKING INSIDE THE  WHEN-MOUSE-CLICK

    Dear friends
    I have following script in when-mouse-click trigger
    BEGIN
    IF NOT Form_Success THEN
    Bell;
    RAISE Form_Trigger_Failure;
    END IF;
    IF :System.Form_Status = 'CHANGED' THEN
    IF :LOCK_FLAG = 1 THEN
    UPDATE PROJ.IM_REQUEST_HEADER
         SET LOCK_FLAG = 1
         WHERE DOC_CODE = :DOC_CODE ;
         SHOW_MESSAGE('DOCUMENT CODE -1'|| ' '||:DOC_CODE);
         SHOW_MESSAGE('LOCK FLAG -1'|| ' '||:LOCK_FLAG);
         Commit_Form;
         MESSAGE('The Record have been changed -1 ');
    ELSE
         UPDATE PROJ.IM_REQUEST_HEADER
         SET LOCK_FLAG = 0
         WHERE DOC_CODE = :DOC_CODE ;
         Commit_Form;
         MESSAGE('The Record have been changed - 2');
    END IF;
    ELSIF :System.Form_Status <> 'QUERY' THEN
    Message('An error prevented your changes from being
    committed.');
    Bell;
    RAISE Form_Trigger_Failure;
    END IF;
    END;
    Note :
    The above trigger is attached to this field LOCK_FLAG and the item type of LOCK_FLAG is check box in the form and the property of the LOCK_FLAG
    is site as the following :
    database item = NO , and the property of the blcok IM_REQUEST_HEADER is site as the following :
    database data block = NO
    and my problem is when i change the value of LOCK_FLAG is not executting the update statement .
    waiting for your valuable answer in details thank in advance for your cooperation.
    best regards
    jamil alshaibani

    Dear Wilfred
    Thank you very much for your cooperation, yes when I change the “Database data block “ property to no, it works, as I wanted to be.
    Notes about my application:
    In my program I provide the store keeper query screen, he can check the orders and lock the specific order by clicking on the LOCK_FLAG field, so after he locked the field the requester user can not change his order content if it is locked by the store keeper
    And the way I was trying to do it ,by query the data from      IM_REQUEST_HEADER Table which is the Order table which is the header table ,the form is displaying doc_code ,doc_date ,lock_flag,and the order store name ,and I provide him a report on the same form that he can see the details of the order items ,and all the field properties set to no, that is update allowed to no ,insert allowed set to no, but the field lock_flag property set as update allowed to yes and insert allowed set to yes
    and I would like to now how it was displaying this message
    ORA-01400 cannot insert NULL INTO “PROJ”.IM_REQUEST_HEADER”.DOC_CODE
    And I was not inserting, I was just updating the lock_flag by the above update statement.
    Best regards
    Jamil Alshaibani

  • Recording keystrokes and mouse clicks?

    Greetings,
    I need to be able to make scripts/macros by recording keystrokes and mouse clicks with location.
    Is this possible with Automator?
    Does anyone know of a way program to do this?
    It seems so simple.
    Thanks

    Keyboard shortcuts were often missed.  For example, I tried this sequence many times. 
    0: (setup:  text editor is scrolled to first line and cursor is at the beginning of the first line)
    1: Click on text editor window to focus it.
    2: press SHIFT-DownArrow to move cursor down one line and select the first line
    3: press CMD-X to cut the line.
    Automator never would capture those key strokes. 
    But today I has a break through.  This sequence does work:
    0: (setup:  text editor is scrolled to bottom of the file and the cursor is placed below the last line.)
    1: Click on text editor window to focus it.
    2: press SHIFT-UpArror to move cursor up one line and select the last line.
    3: press CMD-X to cut the line.
    about 70% of the time this did get recorded correctly (I did maybe 3 recordings and one failed to select).  Once it got recorded correctly it worked reliably. 
    So it seems to be able to capture some sequences but not others.  Both sequences work very reliably when I type them but automator can only capture the last sequence. 
    Thanks for the suggestions.  This tool is better than nothing but not anything I would recommend.

Maybe you are looking for

  • Transaction Variant for Reservations MB21

    Hi As far I know there is not release strategy for reservations in order to have a control of it. We need to give MB21 to users but also wants to have control about it. Also I know that the nearest we can use is the  "movement allowed" indicator. I c

  • Create Button With Mouseover AND Sound

    Hey - I know zilch about FLASH...just enough to fade pictures in, etc. Have a button created that changes on mouseover. That works fine...but now want to add a sound on mouseover or on click. I right-clicked on the button and did "edit in place". The

  • Need help with binary numbers

    hey i'm doing some things, but i need a entry of a binary coded number, i know that an hex number is written like 0xFF but how do i put a binary number in an instruction such as: byte b b="binary number"

  • Where is the ID for iWork ?

    I have restored the OS on one computer and it did not transfer the iWork family pack to my OS . The other computer doesn't seem to have the ID for iWork in the plists , the get info , or application support . Does anyone know where I could find the n

  • Cannot see HTTP Header in Browser and in application trying to intergrate

    I cannot see the HTTP header in browser using Fiddler and Liver Http Header add on in web browser. I tried with both IE and Firefox. I can see the header value get set in OAM Diagnostics log. We are using OAM 11gR2 with OAM 11G webgate for OHS 11g. i