Buitin RAISE FORM_TRIGGER_FAILURE not working in forms Personalization

Hi,
I create a SIT where i dn't want user to create more than 1 record. I successfully able to set the condition and popup error message in action tab when more than 1 record is entered by the user. Now I want to stop further processing and for that purpose I use built-in RAISE FORM_TRIGGER_FAILURE. But it won't work and user can able to process further easily.
Can any one guide me how I acheive this using forms personalization?

Pl see ML Doc 420518.1 on why this does not work
HTH
Srini

Similar Messages

  • 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;

  • Enable Property Not working in Form Personalization- R12

    Hi All,
    I have an requirement to grade out the button item for Production Supervisor- Batch details, The Button Item is Transact Material, This Button should be grade out always for this particular responsibility.
    See below what logic i used for this requirement in Form Personalization.
    1. For the Batch Details Form Created one Personalization with trigger condition WHEN-NEW-BLOCK-INSTANCE and processing mode Not in Enter-Query Mode.
    2. In Actions tab - Type : Property
    Object Type : Item
    Target Object: GME_BATCH_HEADER.TRANSACTIONS
    Property Name: ENABLED
    Value : FALSE
    After i validate it and pressed APPLY NOW- only at that time the "Transact Material" Button showed as Grade out but after i closed the personalization window and reopen the Batch Details form and am seeing that Transact Material still Enabled instead of Grade out.
    I prefectly saved the personalization window.
    I dont knw why it is working only when i see preview(APPLY NOW) option and not working once i reopen the batch details or logout the apps and reloged again still having the same issue.
    Please help me out if any one come accross this type of issue.
    welcoming your comments on this...
    Regards
    Prabu

    Are you making the fields "required" using personalization?
    The Raise FTF action won't produce any message.
    It looks like some other code is firing before your personalization fires.
    It seems user is unable to save the record. So your requirement is achieved.
    If not, please post details of the personalization.
    Sandeep Gandhi

  • Raise Form_Trigger_Failure Not Working

    On my form I have a button. This button updates 3 base table items from it's when-button-pressed trigger.
    My problem is that when another user comes along and clicks the button for the same record before a previous user has committed their changes the following messages are displayed 3 times (once for each item that the button attempts to update fields?):
    1. Could not reserve record (2 tries). Keep trying?
    2. FRM-40501: ORACLE error: unable to reserve record for update or delete
    My desired result would be that these messages only appear once regardless of how many items the button attempts to update and that the form processing would be stopped after the first messages are displayed. This isn't happening.
    To try to accomplish this I am using an On-Error trigger to capture the FRM-40501 error message and instead display my own custom message followed by "Raise Form_Trigger_Failure".
    Despite the On-Error trigger displaying my custom message successfully, the "Raise Form_Trigger_Failure" doesn't seem to stop the form from processing the remaining code in the when-button-pressed trigger. These messages still appear multiple times in a row and the remainder of the when-button-pressed trigger code continues to run.
    So my question is why isn't my "Raise Form_Trigger_Failure" working to suppress subsequent messages? Is there a way I can address this?
    Any help would be greatly appreciated. Thanks.
    Edited by: sharpe on Jul 13, 2012 9:39 AM

    The FORM_TRIGGER_FAILURE in the ON-ERROR-trigger will not stop the code in your WHEN-BUTTON-PRESSED-trigger. Could you post the code from your trigger?

  • Raise form_trigger_failure not wokring on validate records

    hi,
    I wrotea block level trigger WHEN-VALIDATE-RECORD, which do some screen level validation and
    in case of failure i use RAISE FORM_TRIGGER_FAILURE. working fine if i move records
    another trigger is KEY-COMMIT on form level.
    which calling a program unit where a command is FIRST_RECORD
    now when i save the records using the save button
    its call FIRST_RECORD, because of this command its executing WHEN-VALIDATE-ITEM
    and execute RAISE FORM-TRIGGER-FAILURE
    but system continue the executaion and jump back to key-commit triiger
    why WHEN-VALIDATE-RECORDS 's raise is not working...
    thanks

    hi
    its call FIRST_RECORD, because of this command its executing WHEN-VALIDATE-ITEM
    another trigger is KEY-COMMIT on form level.
    and execute RAISE FORM-TRIGGER-FAILURE
    If when-validate-item trigger is not set at item-level plz set it at item-level and check.
    set key-commit-trigger at block level.
    may it helps u.
    sarah

  • Ole2 commands not working in forms 10g

    OLE2.set_property(Application, 'Visible', true);
    above statement not working in forms 10g;

    Try to use the OLE2 fuction from WEBUTIL library. There is function in webutil CLIENT_OLE2.
    -Ammad

  • SQL Code not working in Forms Developer?

    Hi all,
    I'm using Oracle 10g and I have th following code running on iSQL+ but not working on Forms and I got the following erro
    The SQL code:
         select returningreason
            from (
                     select returningreason,
                     dense_rank() over (partition by 1 order by count(*) desc) as drnk
                     from returned_goods
                     group by returningreason)
           where drnk = 1;And the error happens near the word over to the right and the error statement is:
    Error 103 at line 18, column 19
       Encountered the symbol "(" when expecting one of the following:
             , formThanks in advance :)

    Triggers are compiled in forms so need to use only the features available to forms, which doesn't include all the new stuff in the database.
    select over partition
    NVL2They don't work in forms and reports too.
    Also if you use them in record Group
    Forms/SQL Compiler was not lined up to the database(10G).
    Meanwhile,for example. Pipelined TABLE and relative Select work in Reports AND Forms.

  • Call Custom Library built in type is not available in form personalization.

    Hello All,
    In our Vision instance(EBS 11.5.10.2 Dev 6i Patchset 15) Call Custom Library built in type is not available in form personalization..
    Please suggest

    probably wiser to post this in the E-Business forum
    General EBS Discussion
    your welcome

  • Help is not working in Form Builder 6i

    Hi all,
    I'm using Forms builder 6i in Windows7 system. When i go to Help menu and click 'Form Builder Help Topics' a error message is coming.
    I've reinstalled it many times. In Windows XP system it's working fine. Why it's not working in Windows7?
    Any suggestions??

    Check this:
    http://support.microsoft.com/kb/917607
    Regards

  • TABLE_FROM_BLOCK is not working in forms 10g ??????

    Hi all,
    How to use TABLE_FROM_BLOCK in forms 10g. its working in forms 6i .
    the same form is not working in 10g . i got this error.
    frm-40933 Cannot populate table because datatype is incorrect.
    pls help me
    Regards
    Gopinath M

    According to Metalink's Developer 2.1 Release Notes (Doc ID #90090.1), section 4.2.1, "TABLE_FROM_BLOCK Built-In":
    DO NOT use the TABLE_FROM_BLOCK built-in described in the
    documentation. It is reserved for internal use only. No support
    for this built-in will be provided under any circumstances.
    If you used this built-in, you will need to recode your from(s) for 10g.
    Message was edited by:
    Mark Roberts

  • Button based on data is not working in form/ report / region

    create or replace procedure "BUT2"
    is
    begin
    declare
    cursor c1 is select plot_id,plot_status from re_plot;
    tno number;
    v1 varchar2(500);
    c2 c1%rowtype;
    begin
    open c1;
    loop
    tno := nvl(tno,0) + 1;
    fetch c1 into c2;
    exit when c1%notfound;
    if c2.plot_status='BLOCKED' then
    v1 := v1 || ' ' ||'<input inline type =submit style="color:BLUE;background-color:RED" value='||c2.plot_id||'>';
    else
    v1 := v1 || ' ' ||'<input inline type =submit style="color:ORANGE;background-color:GREEN" value='||c2.plot_id||'>';
    end if;
    if mod(tno, 4)= 0 then
    --v1 := v1 || '<br/>' || ' ';
    htp.p(v1);
    v1 := null;
    end if;
    end loop;
    close c1;
    htp.p(v1);
    end;
    end;this above procedure works fine in SQL Command browser. I am unable to make it as page form / report.
    My requirement is i want to bring this images in form / report. Based on click button, the value need to be parsed to other page?
    how to do it?
    yours
    andi_raj

    is not working Insufficient information. In what way is it "not working"? The page doesn't render as required? There's an error message? The browser crashes? The server room has been trampled into dust by a herd of buffalo?
    >
    I am unable to make it as page form / report.
    v1 := v1 || ' ' ||'<input inline type =submit style="color:BLUE;background-color:RED" value='||c2.plot_id||'>';
    ...It is not possible to generate form elements in an APEX page in this way. The [APEX_ITEM API|http://download.oracle.com/docs/cd/E14373_01/apirefs.32/e13369/apex_item.htm#CACEEEJE] is the only way to create APEX items in PL/SQL. However it contains no procedures to generate button items, so an alternative design is required in this case, e.g. a report with links.
    (Also what is the intention of "inline" in the above code? [There is no *inline* attribute|http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#h-17.4].)

  • F7 & F8 key is not working in forms 10g

    Dear all,
    I am working with oracle application version 10.1.2.3.0, installed on windows server 2003 and database 10gR2 on windows server 2008. When i open any form and tries F8 / F7 to executed & enter
    query, its not working. But its owrking with with F11 and shitp + F11. I want to use F7 & F8 for enter/execute the query. I have same another same environment with same configuration, there F7
    & F8 is working fine. To enable these keys i rename fmrpcweb.res to fmrweb.res. But guide me with your sincere suggessions & experience.
    Regards,
    Ahmed.

    According to Metalink's Developer 2.1 Release Notes (Doc ID #90090.1), section 4.2.1, "TABLE_FROM_BLOCK Built-In":
    DO NOT use the TABLE_FROM_BLOCK built-in described in the
    documentation. It is reserved for internal use only. No support
    for this built-in will be provided under any circumstances.
    If you used this built-in, you will need to recode your from(s) for 10g.
    Message was edited by:
    Mark Roberts

  • Enter key not working in forms 10g

    Hi guys,
    Enter key to select a form is not working
    on my application.
    I have to double click the form to open it using the mouse.
    Then if we try to exit we have to press exit that many number of times as we have pressed enter key.
    So it seems to be storing the key processes.
    We are using forms 10g.
    Please help.
    Thanks and Regards,
    Rohan

    Fixed.
    Changed KB.
    However, this is still strange as the old KB was working fine in other applications.

  • SQL (Reverse) not working in Forms 6i

    Hi:
    Env 6i c/s 8i DB.
    SELECT REVERSE ( '321' ) FROM DUAL works in SQL*Plus but does not accept the REVERSE function from within a Trigger. I could put the logic in a Package on the DB but I'd like to know why it does not work in F6i ?
    Thanks
    N.

    Forms 6i uses an older version of PL/SQL than the database, so it does not recognize the newly introduced function. You will need to create a database function to call from the form.

  • MAXIMIZE WINDOW DOES NOT WORK IN FORMS 9i

    Hi,
    I am performing forms conversion and developing new forms in Forms 9i. The problem I am running into is that :
    the SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW, WINDOW_STATE, MAXIMIZE)
    and SET_WINDOW_PROPERTY(ROOT_WINDOW, WINDOW_STATE, MAXIMIZE)
    in the When_new_form_instance trigger don't work.
    I've also tried adding a parameter to initiate the running mode as WEB as suggested in a response that I saw on this
    forum, with that parameter I would set the ROOT_WINDOW State to NORMAL
    then set WIDHT=800, HEIGHT=600, POSITION=0, 24.........
    but it still does not work. When I run the form, the browser opens up as a full screen, but the form only fills up the gray rectangular
    area when the Jiniator is running and loading the applet.
    If I don't set the Maximize property of the main window to Yes then the vertical and horizontal scroll bars are automatically added,
    if I do set so then no scroll bar is added and the form is cut off.
    Is it a known problem ? and is there a solution to it?
    Any response is greatly appreciated.
    Thanks.
    TLe

    Thanks, it worked, and I've been playing with other parameters, such as replacing the lookandfeel (this works), but splashscreen and background don't when I specified the .GIF file name, it did not display the GIF image.
    Thanks again.

Maybe you are looking for

  • Maximum number of files in a folder ?

    Hello, what is the maximum number of files in a folder OS X can handle ? I used a file recovery software called FileSalvage to save some files of an external 300GB with a corrupted disk directory (unable to repair with the usual repair/recovery progr

  • How to compare 2 dates in SQL Server 2000 DB using Java?

    How do you compare 2 dates in SQL Server 2000 DB using Java? Let's say we have two fields: Date Reported and Target Finish Date. Date Reported is 09-10-2004 09:55:55: PM Target Finish Date is 09-12-2004 11:59:59: PM What i want to happen is i want to

  • MM Report in SAP  tcode

    Dear All, can anybudy explain where i got these report in sap or any tcode Customization of reports / MIS will help us in keeping a check on the excess inventory, Some of the reports which are immediately required are – •     Summary of the PO’s •   

  • Rendering intent when displaying, exporting or soft proofing?

    I am trying to make use of soft proofing to adjust my images for a given output device for which I have ICC profiles. The two profiles I am playing with are for a Lambda and a Fuji Frontier. The Lambda working space almost fits within Adobe RGB, it e

  • Photoshop trial will not download..!????????

    i have enough memory on my pc but it will not download i have never downloaded the trial before...it keeps saying error 105..????? please help