When new record instance not firing on Purchase Order form

I query a purchase order and click on the shipment lines button. There are 2 shipment lines in this example. I am using CUSTOM.pll to inject some specific code to restrict the cancel functionality. One line I want to restrict the cancel functionality and the other line I don't want to restrict. The problem arises when I click between the two rows on the Org or Ship to fields. No event or trigger gets fired that I can see; hence, the CUSTOM.pll code does not get injected and the user will be able to cancel both lines. Any ideas? Thank you for your time,
-Kevin

What does that mean? In the middle of creating a record?
But how come system allows me to go to the 2nd tab when it goes to the last record and doesnt allow me to go the 2nd tab when i create in middle of the record
Seems that there is some difference in the data of the two records, maybe one record passing validation and the other one not.Validations are same, both the scenario it just creates a new record.

Similar Messages

  • How to undo update of checkbox after triggering when-new-record-instance

    Hi,
    I am using eBusiness Forms Personalization in 11.5.10 to alter the Receipts form in Purchasing. I want to prevent users checking the rcv_transaction checkbox if the destination is "Multiple" and, instead, click the "+" sign to explode the multiple record into it's many component records.
    I can do this by invoking the when-new-record-instance trigger to make the "multiple" record fields unalterable and issue a warning message when the user selects such records. However, my problem is that - if the user clicks the checkbox as the first field in a "multiple" record, then this updates the checkbox to "Yes" BEFORE the trigger fires, which then locks the record for update.
    What I need is a solution that either sets the checkbox to unalterable for "multiple" records BEFORE the user clicks into such records, OR a method of undoing the update of the checkbox after the record has been selected (I cannot do this by simply setting it to "No" by the trigger as this is still technically an update and locks the record).
    Cheers
    Graham

    Hi Navnit,
    Yes you are right, but it can work even we not plase quotation mark in it. But Yes I forget to place semi colon so now it is
    IF :System.Cursor_Record = 1 THEN
       :Block.Col1 := '02:00';
    ElsIF :System.Cursor_Record = 2 THEN
       :Block.Col1 := '07:00';
       ------and so on
    END IF;Danish

  • When-new-record-instance

    Hi All !
    I have a form, where in
    *Trigger:when new form instance*
    enter_query;
    *Block level Trigger :when-new-record-instance*
    :empaply.employeeid:=:global.employeeid;
    select employee_id,firstname into :empaply.employeeid,:empaply.employeename
    from pim_emplpersonalinfo where employee_id =:global.employeeid;
    if :empaply.leavetype='Casual Leave' then
    :empaply.status1:='Not Applicable';
    :empaply.status2:='Not Applicable';
    :empaply.status:='Pending Approval';
    elsif :empaply.leavetype='Earn Leave' then
    :empaply.status1:='Pending Approval';
    :empaply.status2:='Pending Approval';
    :empaply.status:='Pending Approval';
    elsif :empaply.leavetype='Earn Leave' and :empaply.status='Rejected' then
    :empaply.status1:='Not Applicable';
    :empaply.status2:='Not Applicable';
    elsif :empaply.leavetype='Earn Leave' and :empaply.status1='Rejected' then
    :empaply.status2:='Not Applicable';
    end if;And for a push button
    *Trigger: when button pressed*
    execute_query;Now my issue is the initial value i have set in the new record instance is not working automatically, it works when i click any other text box in my form or when i scroll down..
    What can i down to overcome this?
    Pls help !
    Thanks and Regards
    user 10685325
    Edited by: user10685325 on Jun 22, 2009 1:19 AM

    Hai,
    The NEW-RECORD-INSTANCE Trigger will work only when the cursor moves to that record.
    write in the POST-QUERY Trigger of the block.
    Regards,
    Manu.
    If this answer is helpful or correct, please mark it. Thanks.

  • Commit_form creating issue with When-New-Record-Instance trigger

    Hello friends,
    I am using Oracle forms 6i . I have a multi-data block. I have written commit_form in when-new-record-instance of the data block. When I launch the form on my instance the form does not open.
    But when I comment out this code, the form opens on the instance. What could be the exact problem?
    Also is there any condition that I can specify if the whole data block is null when I open the form?

    Hi...
    In When-New-Record-Instance, check if the block status is NEW. If Not, then just apply COMMIT_FORM;
    try this code in your trigger
    IF :SYSTEM.BLOCK_STATUS = 'CHANGED'
    THEN
    COMMIT_FORM;
    END IF;
    Should work for you.
    Thanks....

  • FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-

    Hi,
    In R12 When trying to search existing users through Sysadmin or any other user ...we are getting the below errror...
    ORA-01403: no data found
    FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-06510
    This error is not happening when we search for the SYSADMIN user....
    Any idea why this error happening...
    Also another error which is faced by users other than SYSADMIN is the below one when changing the responsability...
    APP-FND-01926---The custom event WHEN-RESPONSIBILITY-CHANGED raised unhandled exception:User Defined Exception
    Thanks
    Joseph
    Edited by: 783717 on Sep 27, 2010 10:49 PM

    Hi,
    In R12 When trying to search existing users through Sysadmin or any other user ...we are getting the below errror...
    ORA-01403: no data found
    FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-06510
    This error is not happening when we search for the SYSADMIN user....
    Any idea why this error happening...What changes have been done recently?
    Please run AutoConfig and make sure it completes successfully.
    Also another error which is faced by users other than SYSADMIN is the below one when changing the responsability...
    APP-FND-01926---The custom event WHEN-RESPONSIBILITY-CHANGED raised unhandled exception:User Defined ExceptionCan you find any errors in the database log file?
    Please compile CUSTOM.pll (and other files) as per these docs and try again (as you are on R12 use frmcmp_batch.sh instead of f60gen).
    APP-FND-01926, ORA-06508 [ID 797242.1]
    APP-FND-01926: The custom event WHEN-LOGON-CHANGED raised unhandled exception: ORA-06508: PL/SQL: [ID 831159.1]
    APP-FND-01926 when logon changed ORA-06508 [ID 334295.1]
    Thanks,
    Hussein

  • When new record instance trigger at Fire Enter Query event is throwing erro

    HI
    I have the following code on when new record instance which is set to fire at Enter Query Mode
    IF :SYSTEM.BLOCK_STATUS <> 'QUERY' THEN
    rec_num:=Get_Block_Property( 'MASTER', CURRENT_RECORD);
    GO_ITEM('DETAIL.ITEM_NAME');
    CLEAR_BLOCK(NO_VALIDATE);
    GO_BLOCK('MASTER');
    GO_RECORD(rec_num);
    END IF;
    But this is throwing error when I am querying record on master block.
    It says 'Function not allowed.Please see a list of keys or functions'
    Thanks in advance.

    hi,
    GO_ITEM( ) procedure is resctricted procedure.It can not be used in Enter Query mode to navigate to an item in a different block.
    You can check wheter rest of the procedures are Enter Query Mode -Yes/No thourgh forms help window.
    Message was edited by:
    Manish.Sharma

  • How to discover which field was clicked in when-new-record-instance

    Suppose: a multi-record block. The user is positioned on an existing record on field A
    Action: user clicks on empty (new) record on field B
    Question: how can I discoverer that the user clicked on field B in the when-new-record-instance? Already tried :system.current_item and :system.trigger_item. They both contain 'field A'.
    Edited by: user473811 on 26-aug-2010 4:56

    That should work. What version of forms are you running?
    I tested it out on Forms 9.0.4 just to make sure and :system.current_field, :system.current_item, :system.cursor_field, and :system.cursor_item all bring back field B when I run the form in debug mode. Is there logic in your when-new-record-instance trigger that is taking you back to field A before you look at the :system variables?
    I would run the form in debug mode if I was you and break on the first thing in the WNRI trigger and just step through it looking at those system variables so you can see what it happening, but it should work unless you have some bugged up version of forms or are doing a go_item in the trigger back to field A.

  • FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger

    Hi Guys,
    Can someone help me to find the root cause of my follwoing issue
    Issue
    My Sales Order was giving following error when trying to open the form
    'FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger '
    Bounced the instance the issue was resolved.
    Again today morning ,same issue started again after the daily bounce which is done bu a script.
    This time I bounced Form server and issue was resolved.
    Can someone help me in finding the root cause of this issue.
    This is issue is happening only on one form (Sales Order ) !!!!!
    Thanks

    Hi
    This is a Standard form using cusom.pll.
    This was working perfect for last 1 year.
    There where no changes made in the forms or in the environment.
    Only activity carried out was a rebooting of server.
    Surprising it is working fine after boucing!!!!
    any idea
    Thanks

  • FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception

    I have a form that I migrated to 10g from 6i. I have no problems with it in 6i.
    When I launch this migrated form on the web in 10g, I get the following error:
    Error: FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-03127From oracle error code
    03127, 00000, "no new operations allowed until the active operation ends"
    // *Cause: An attempt was made to execute a new operation before the active
    //         non-blocking operation completed or a new operation was attempted
    //         before all the pieces of a column were inserted or fetched.
    // *Action: Execute the new operation after the non-blocking operation
    //          completes. If piecewise binds/defines were done, execute the new
    //          operation after all the pieces have been inserted or fetched.What does the above suggested action mean?
    Any suggestions.
    Thanks

    Run the debugger and see what line of code is failing.

  • RAISE form_trigger_failure not working in purchase order form

    Hi,
    I am working on a customization in Purchase Order Form (poxpoepo)
    This is what I tried to do.
    CURSOR 1_cur IS
    SELECT pol.LINE_NUM v_line
    ,gcc.segment1 v_seg
    FROM gl_code_combinations gcc
    ,PO_DISTRIBUTIONS_ALL pod
    ,po_lines_all pol
    WHERE SUBSTR(gcc.SEGMENT1,1,1) = 'X'
    AND gcc.code_combination_id = pod.code_combination_id
    AND pod.PO_LINE_ID = pol.PO_LINE_ID
    AND pol.po_line_id = v_po_line
    AND pol.PO_HEADER_ID = v_po_header;
    CURSOR 2_cur IS
    SELECT pol.LINE_NUM v_line
    ,gcc.segment1 v_seg
    FROM gl_code_combinations gcc
    ,PO_DISTRIBUTIONS_ALL pod
    ,po_lines_all pol
    WHERE SUBSTR(gcc.SEGMENT1,1,1) = 'X'
    AND gcc.code_combination_id = pod.code_combination_id
    AND pod.PO_LINE_ID = pol.PO_LINE_ID
    AND pol.PO_HEADER_ID = v_po_header;
    BEGIN
    v_error_found := false ;
    IF (form_name = 'POXPOEPO' AND
    (block_name IN ('PO_LINES' ,
    'PO_SHIPMENTS',
    'PO_DISTRIBUTIONS') AND
    event_name = 'WHEN-NEW-ITEM-INSTANCE') OR
    (block_name = 'PO_HEADERS' AND
    event_name = 'WHEN-NEW-RECORD-INSTANCE' AND
    name_in('SYSTEM.BLOCK_STATUS') = 'QUERY' ) OR
    (block_name = 'PO_APPROVE' AND
    event_name = 'WHEN-NEW-BLOCK-INSTANCE' )
    ) AND
    NAME_IN('PO_LINES.PO_HEADER_ID') IS NOT NULL AND
    NAME_IN('PO_LINES.PO_LINE_ID') IS NOT NULL AND
    name_in('PO_LINES.LINE_NUM') >= 1 ) THEN
    v_po_header_id := NAME_IN('PO_LINES.PO_HEADER_ID');
    v_po_line_id := NAME_IN('PO_LINES.PO_LINE_ID');
    v_line_num := NAME_IN('PO_LINES.LINE_NUM');
    IF block_name in ('PO_LINES' , 'PO_SHIPMENTS', 'PO_DISTRIBUTIONS') THEN
    v_seg := null;
    FOR cursor1 in 1_cur
    LOOP
    if cursor1.v_seg = 'X' THEN
    v_seg := 'X';
    v_line_num := cursor1.v_line;
    EXIT;
    end if;
    END LOOP;
    ELSIF block_name in ('PO_HEADERS','PO_APPROVE') THEN
    FOR cursor2 in 2_cur
    LOOP
    if cursor2.v_seg = 'X' THEN
    v_seg := 'X';
    v_line_num := cursor2.v_line;
    EXIT;
    end if;
    END LOOP;
    END IF;
    IF v_seg = 'X' then
    fnd_message.set_string('custom message to be displayed.');
    FND_MESSAGE.ERROR;
    IF block_name = 'PO_APPROVE' THEN
    go_block('PO_HEADERS');
    raise form_trigger_failure;
    END IF;
    END IF;
    END IF;
    END;
    I actually want to achieve somewhat like this. When ever the charge account field start with 'X' or in other words if segment1 is 'X' and if changes are made to that line like note to supplier is changed and saved then the user should not be allowed to approve/reapprove the order and it shall pop up the message and ONLY restrict from going further if the user hits the APPROVE button. Highlighted in bold should have actually taken care of the requirement from proceeding to the next level of approval but it is not. I have had several debug messages and I am pretty sure that it is satisfying the condition of going to the PO_APPROVE block and still not raising form trigger failure. Could you please help me handle this scenario?

    Your Raise works -- it will terminate your procedure, Change_Detail_Block_Status.
    But, how are you calling the procedure? It is in THAT place that you should look for your problem.
    If you call the procedure, and then have coded EXCEPTION WHEN OTHERS THEN.... or something similar, you might be ignoring the "Raise FTF".
    In addition, you probably need to add these lines in your form where navigation or a commit or similar code causes a trigger to call your procedure:
    If not Form_Success then
    Raise Form_Trigger_Failure;
    End if;

  • New item instance not firing

    Hi all
    We are seeing a strange problem in forms 10g R2. the when-new-item-instance trigger is firing only for the first time ou click on the item. subsequent clicks on the item from an another item does not fire this trigger. This trigger was firing all the time whenever you navigate to an item in 6i. Hs the behavior changed,
    This is urgent any help is appreciated.
    Rgds
    Arvind Balaraman

    Hi Grant
    All the forms were initially created and run in AIX (6i patch 13).
    We have migrated all these forms to 10g under Linux. The forms run on the users desktop which is XP. As a part of the upgrade we have recompiled all the forms.
    Rgds
    Arvind Balaraman

  • How to populate automatically in a when-new-record-instance trigger?

    I have a form which displays around ten rows with about 5 columns. Whenever i will create a new record, i would like to place an initial value on the first column of every record. How do I do this? If I place the value in the properties of the item, it would be replicated on all the rows. What I want is to put a different value for each row created. But the problem is there is only one item property that i can put a value on (displayed 10 times). How do i put different initial values for each record created without creating new items for each record. is this possible? Thanks a lot

    Hi Navnit,
    Yes you are right, but it can work even we not plase quotation mark in it. But Yes I forget to place semi colon so now it is
    IF :System.Cursor_Record = 1 THEN
       :Block.Col1 := '02:00';
    ElsIF :System.Cursor_Record = 2 THEN
       :Block.Col1 := '07:00';
       ------and so on
    END IF;Danish

  • New field is not printed in Purchase Order (PO)

    I have added a new field in PO's Print Layout Designer (PLD). For example, I add a field called "Part Number" between "#" and "Description" fields. But when I print the PO, only "#" and "Description" fields are printed. The new "Part Number" field is ignored. I think there must be some sort of link between the new "Part Number" field in PLD and the "Item No." in the PO. This is the thing I missed. Can anybody give me a clue?

    hi..
    i think u missed to check the propery of perticular field which u have inserted. You please check the relate to and link to property of that field if there is any link, pl remove it. cause the linked field does not get value from db. so the field is not displayed. or check it the check box of visible is checked.
    I think it may help u.
    Regards,
    Chintesh Soni

  • Where's the WHEN-NEW-BLOCK-INSTANCE trigger gone?

    Not a rehash of my famous UKOUG presentation but a genuine question.
    If I start up a Form with ENTER_QUERY in the WHEN-NEW-FORM-INSTANCE trigger then WHEN-NEW-BLOCK-INSTANCE never fires. I just get a WHEN-NEW-RECORD-INSTANCE. This is true whether the query is executed or cancelled.
    I have replicated this behaviour inb both Forms 4.5 and 9i Forms so I assumed this is standard behaviour and well-known by everybody but me. The question is: why is Forms designed like this? I can just about see why WHEN-NEW-BLOCK-INSTANCE might not fire in QUERY-MODE, even though WHEN-NEW-RECORD-INSTANCE does, but why doesn't it fire after the query is executed or cancelled?
    Cheers, APC

    Interesting...
    I am aware that the when-new triggers do not run in some cases. On the other hand, the post- triggers run over and over again, to the point that I just don't use them because any code put there executes too many times.
    If you have several go_item or go_block triggers in a key trigger or when-button-pressed trigger, the when-new-item-instance trigger does not run each time you do a go_item. Instead, the when-new triggers ONLY run on the last item or block, just after my key-trigger code completes, and just before control returns to the user.
    So it would seem natural that if you go_block in a when_new_form_instance trigger, and execute an Enter_Query command, then the when-new-block-instance would not run.
    The fact that it does not run once you cancel the query just doesn't seem right, though.

  • WHEN-NEW-ITEM-INSTANCE TRIGGER NOT FIRING IN FORM PERSONLIZATION

    We are upgrading to R12, when-new-item-instance trigger written for radio group not firing. using USO-821 Order Administrator Responsibility the function order capture.After clicking on actions push button
    opening Copy Quote for this Form Personalization written.
    For Radio Group Copy-Group when-new-item-instance trigger written but this trigger not firing,but In 11i Instance its Firing.
    trigger-event: when-new-item-instance
    Trigger-object:copy_group
    condition:when copy_group='ALL'
    Action: showing message.
    The same when-new-instance trigger written in form item level and trigger execution hierarchy properties 'OVERRIDE'.
    Just I am thinking this overriding by Item level trigger of form.
    Please kindly help me quickly .What I need to do?
    How can I make trigger to Fire?
    Please kindly give solution.....Its very urgent Requirement.pls help me.
    Regards,
    Basavaraj

    Please kindly help me quickly .What I need to do?
    > Please kindly give solution.....Its very urgent Requirement.pls help me.
    Kindly log a SR for urgent issues.
    Thanks,
    Hussein

Maybe you are looking for

  • PO SMS to vendor

    Dear All,               I want to send sms to vendor at the time of purchase order creation (ME21N). but issue is no user exit or BADI (ME_PROCESS_PO_CUST ) works (hit) in ME21N. Pls suggest me for sending sms........ Thanks in advance, Tarun

  • Placed .eps files w/ spot white don't appear in PDF

    This happens on and off and I am completely flummoxed. Any suggestions would be most welcome!

  • Javascript: set or get caret position in textarea -not in IE?

    Hi all another javascript question... I'm using a javascript function that gets the caret position (the cursor position) in the textarea, and stores it when the textarea gets out of focus, so that text can be inserted by clicking on a button, where t

  • Rescue and recovery wiped out my external hdd

    I have a lenovo thinkpad edge 14 that I got a few months ago. for the last few weeks the thinkvantage toolbox kept telling me I had one 1 issue to solve, and that was to create a system backup. So finally I decided to get it taken care of, so I plugg

  • GCC development on a MacBook

    Before buying a MacBook (Pro), I would like to have confirmations on the tools available. I am mainly a Linux user today. I need to develop C++ programs with Gcc (mainly simple command line programs but quiet heavy computations). Gcc is delivered wit