Clear form not working in multi record form 10g.

I have a multi record block form, when sys_indicator is 'Y' in any of the records, user should not be able to delete this record. In Pre_delete trigger, I put this code
below.
IF :CST_REFERENCE_CODE.SYS_INDICATOR = 'Y'
     THEN
     MESSAGE('You cannot delete this record. Consult your Administrator');
     MESSAGE(' ');
     CLEAR_FORM(NO_VALIDATE);           EXECUTE_QUERY;
--     RAISE FORM_TRIGGER_FAILURE;
     END IF;
I want to clear form an re_query, but the clear form is not working. Help

CLEAR_FORM is a restricted built-in and is not allowed on PRE-DELETE trigger.
the purpose of PRE-DELETE trigger is to do some validation before the actual delete happens and may be delete the child records before the master record can be sucessfully deleted.
it will be better if you could explain that why you need some different functionality on PRE-DELETE trigger, which looks strange. Like, user is trying to delete the record and you want to restrict user from deleting the record if some condition is met and want to re-query. what is the main purpose of doing query here again or why you want to clear the form.

Similar Messages

  • Raise form_trigger_failure is not working in multi-record block?

    raise form_trigger_failure is not working in multi-record block.
    Why?
    I am using Form 9i.
    Thanks and regards,
    Vikas

    Here is my code. Workorder_master is single block, workorder_dtls is multi-block.
    This code is written in KEY-NEXT-ITEM of labour_code in workorder_dtls.
    If suspended labour, invalid labour etc. is selected then it should not leave labour_code, but does not happen as I like. What will be the solution?
    DECLARE
    v_count                         NUMBER;
    v_status                    CHAR(1);
    v_workorder_no     VARCHAR2(15);
    v_pass_no                    VARCHAR2(15);
    v_rec_pos                    NUMBER;
    BEGIN
         IF :workorder_dtls.labour_code IS NOT NULL THEN
              v_rec_pos := :SYSTEM.CURSOR_RECORD;
              SELECT COUNT(*) INTO v_count FROM labour_master
                                  WHERE labour_code = :workorder_dtls.labour_code;
              IF v_count > 0 THEN --if labour exist.
                   SELECT status INTO v_status FROM labour_master
                                  WHERE labour_code = :workorder_dtls.labour_code;
                   IF v_status = 'I' THEN--'I' stands for busy.
                        --check if labour is for extension i.e. if labour is working for same workorder
                        SELECT COUNT(*) INTO v_count FROM workorder_dtls
                                            WHERE labour_code = :workorder_dtls.labour_code
                                            AND workorder_no = :workorder_dtls.workorder_no
                                            AND to_dt <= SYSDATE;
                        IF v_count > 0 THEN
                             --if working in same workorder then for extension, then give from_dt, to_dt
                             SELECT MAX(TO_DT)+1 INTO :workorder_dtls.from_dt FROM workorder_dtls
                                                 WHERE labour_code = :workorder_dtls.labour_code
                                                 AND workorder_no = :workorder_dtls.workorder_no
                                                 AND to_dt <= SYSDATE;
                        ELSE
                             --if not working in same workorder then give message.
                             SELECT workorder_no, pass_no INTO v_workorder_no, v_pass_no FROM workorder_dtls
                                                 WHERE labour_code = :workorder_dtls.labour_code
                                                 AND to_dt <= SYSDATE;
                             MESSAGE('This labour is already working through workorder no. '||v_workorder_no||' using pass '||v_pass_no);
                             MESSAGE('This labour is already working through workorder no. '||v_workorder_no||' using pass '||v_pass_no);
                             RAISE FORM_TRIGGER_FAILURE;
                        END IF;
                   ELSIF v_status = 'A' THEN--'A' stands for available.
                        :workorder_dtls.from_dt := SYSDATE;
                   ELSIF v_status = 'H' THEN--'H' stands for help-up.
                             SELECT workorder_no, pass_no INTO v_workorder_no, v_pass_no FROM workorder_dtls
                                                 WHERE labour_code = :workorder_dtls.labour_code
                                                 AND to_dt <= SYSDATE;
                        MESSAGE('This labour has been held-up for not submitting gatepass.');
                        MESSAGE('This labour has been held-up for not submitting gatepass.');
                        RAISE FORM_TRIGGER_FAILURE;
                   ELSIF v_status = 'S' THEN--'S' stands for suspend.
                             SELECT workorder_no, pass_no INTO v_workorder_no, v_pass_no FROM workorder_dtls
                                                 WHERE labour_code = :workorder_dtls.labour_code
                                                 AND to_dt <= SYSDATE;
                        MESSAGE('This labour has been suspended through workorder no. '||v_workorder_no||' using pass '||v_pass_no);
                        MESSAGE('This labour has been suspended through workorder no. '||v_workorder_no||' using pass '||v_pass_no);
                        RAISE FORM_TRIGGER_FAILURE;
                   END IF;
                   IF v_status IN ('A', 'I') THEN
                        :BLK_TEMP_WORKORDER.LABOUR_CODE := :WORKORDER_DTLS.LABOUR_CODE;     
                        GO_BLOCK('WORKORDER_DTLS_IMG');
                        EXECUTE_QUERY(NO_VALIDATE);      
                        GO_RECORD(v_rec_pos);
                        GO_ITEM('WORKORDER_DTLS.FROM_DT');
                        IF :workorder_dtls.from_dt + 180 <= :workorder_master.to_dt THEN
                             :workorder_dtls.to_dt := :workorder_dtls.from_dt + 180;
                        ELSE
                             :workorder_dtls.to_dt := :workorder_master.to_dt;
                        END IF;
                   END IF;
              ELSE --if labour does not exist.
                   MESSAGE('Invalid labour code');
                   RAISE FORM_TRIGGER_FAILURE;
              END IF;
         END IF;
    END;

  • ToolTip_Text not working in multi - record block - Please Help!!

    Dear Friends & Gurus,
    I'm using Forms Version 6.0.8.21.3 (due to many reasons) in C/S mode. Now I have a multi record block in which I am showing the Employee No. My customer's requirement is when I place the mouse on this Emp no., the emp. name must be displayed. I thought of achieving this by ToolTip_text. For this I'm having a Database function which returns the name (as I use this functionality in many forms), in the When-New-Item-Instance block level trigger I'm calling that function with passing the emp code as below
    SET_ITEM_PROPERTY(:SYSTEM.CURSOR_ITEM, TOOLTIP_TEXT, FUNC_DIS_EMP_NAME(:SYSTEM.CURSOR_VALUE));But it is working only when I point the mouse in the first record. When I click on 3 or 4 record and then point to the first record, I'm getting the 3 record's name but in the first record.
    Please help me - I searched through the forum and I find no accurate answer. It is urgent - please help.
    Thank you.
    With Kind Regards,
    Perumal Senthil Alagu.

    Dear Safwan Bhai,
    As salaamo alaikum Rahamatulla hi burakathu!!
    Actually I'm having a multi record block in which all the emp no., days of attendance, etc will be displayed when I click on the search button. My requirement is when point the mouse over the emp no, the emp name must be displayed as a Tool tip text. My fields are non-editable, so Post-Change is not working. I placed the coding in the When-new-item-instance - in this case the emp name is displayed, but only for the first field, when I move the mouse to second and third fields, the empname of that particulart field is displayed as a tool tip but in the first field only.
    Any other suggestions?
    Anyway I would appreciate your help.
    Thank you.
    With Kind Regards,
    Perumal Senthil Alagu.

  • Urgent!!! Forms not work on web browser(OAS 10g,Solaris 10 x86).

    Problem discribe:
    1.environment:
    (1)Network: only local network.
    (2)Platforms
    All platforms we use are Solaris 10 for X86.
    (2.1)Server: (intel) Solaris 10 for X86
    Oracle Application Server Forms Services 10.1.2.0.2
    (2.2)Client: Mozolla web browser on (intel) Solaris 10 for X86 .
    Mozolla web browser information:
    (2.2.1)[menu]-[Help]-[About web browser]display:
    Welcome to Mozilla 1.7 for Sun Java(TM) Desktop System
    Mozilla/5.0 (X11; U; SunOS i86pc; zh-CN; rv:1.7) Gecko/20070606
    (2.2.2)[menu]-[Help]-[About Plug-in]display:
    Java(TM) Plug-in 1.5.0_12-b04
    file name: libjavaplugin_oji.so
    Java(TM) Plug-in 1.5.0_12
    MIME type
    application/x-java-vm Java
    application/x-java-applet Java
    application/x-java-applet;version=1.1 Java
    application/x-java-applet;version=1.1.1 Java
    application/x-java-applet;version=1.1.2 Java
    application/x-java-applet;version=1.1.3 Java
    application/x-java-applet;version=1.2 Java
    application/x-java-applet;version=1.2.1 Java
    application/x-java-applet;version=1.2.2 Java
    application/x-java-applet;version=1.3 Java
    application/x-java-applet;version=1.3.1 Java
    application/x-java-applet;version=1.4 Java
    application/x-java-applet;version=1.4.1 Java
    application/x-java-applet;version=1.4.2 Java
    application/x-java-applet;version=1.5 Java
    application/x-java-applet;jpi-version=1.5.0_12 Java
    application/x-java-bean Java
    application/x-java-bean;version=1.1 Java
    application/x-java-bean;version=1.1.1 Java
    application/x-java-bean;version=1.1.2 Java
    application/x-java-bean;version=1.1.3 Java
    application/x-java-bean;version=1.2 Java
    application/x-java-bean;version=1.2.1 Java
    application/x-java-bean;version=1.2.2 Java
    application/x-java-bean;version=1.3 Java
    application/x-java-bean;version=1.3.1 Java
    application/x-java-bean;version=1.4 Java
    application/x-java-bean;version=1.4.1 Java
    application/x-java-bean;version=1.4.2 Java
    application/x-java-bean;version=1.5 Java
    application/x-java-bean;jpi-version=1.5.0_12 Java
    2.Install Config:
    (2.1)formsweb.cfg
    after install,
    /export/home/ias/OraHome_2/forms/server/formsweb.cfg
    include a section :
    # Page displayed to users to allow them to download Sun's Java Plugin.
    # Sun's Java Plugin is typically used for non-Windows clients.
    # (NOTE: you should check this page and possibly change the settings)
    jpi_download_page=http://java.sun.com/products/archive/j2se/1.4.2_06/index.html
    # Parameter related to the version of the Java Plugin
    jpi_classid=clsid:CAFEEFAC-0014-0002-0006-ABCDEFFEDCBA
    # Parameter related to the version of the Java Plugin
    jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2,06
    # Parameter related to the version of the Java Plugin
    jpi_mimetype=application/x-java-applet;jpi-version=1.4.2_06
    (2.2)run oracle test form and my forms
    http://s216:7777/forms/frmservlet?form=test&userid=scott/tiger@orcl
    (Oracle simple test demo form)
    or
    tttp://s216:7777/forms/frmservlet?form=myform&userid=scott/tiger@orcl
    (2.3)browser dialogue window display:
    [title:Default Plugin]
    This page contains information of a type (application/x-java-applet;jpi-version=1.4.2_06)that can only be viewed with the appropriate Plug-in.
    Click OK to download Plugin.
    when I Click Ok ,display warning :
    File not found:www.sun.com, check filename ,try later.
    (2.4)change formsweb.cfg
    /export/home/ias/OraHome_2/forms/server/formsweb.cfg
    change:
    jpi_mimetype=application/x-java-applet;jpi-version=1.4.2_06
    to:
    jpi_mimetype=application/x-java-applet;
    (2.5)run again oracle test form and my forms
    http://s216:7777/forms/frmservlet?form=test&userid=scott/tiger@orcl
    (Oracle simple test demo form)
    or
    http://s216:7777/forms/frmservlet?form=myform&userid=scott/tiger@orcl
    (2.6)Problem:
    myform and test(Oracle simple test demo form) can run and display,
    but all buttons(when click) not work(no response);
    all meuns not work...........
    How to Solve this problem?
    thanks in advance.

    The currently supported versions with patches installed are as follows:
    <li>10.1.2.3 (10.1.2.0.2 + patch 5983622)
    <li>11.1.1.4 (11.1.1.2 or 11.1.1.3 + patch 11060983 : this also requires WLS 10.3.4)
    Fusion Middleware (FMw) 11 downloads are available from here:
    http://www.oracle.com/technetwork/middleware/weblogic/downloads/index.html
    Patches are only available to customers with access to MyOracleSupport (http://support.oracle.com)
    For Forms/Reports users, look for the FMw download titled "Portal, Forms, Reports and Discoverer". The distribution includes all that is necessary to design and deploy your applications. Note that WebLogic Server is also required and is a separate download (from the same page). Be sure to carefully review the installation instructions before attempting the process. It may also be helpful to review MyOracleSupport note 1073776.1.

  • Custom Master Detail form not working In EBS

    Custom Master Detail form not working In EBS
    Hi all,
    I have two custom tables -- 1) XXX_DIE_Headers
    2) XXX_DIE_LINES
    I developed a Master Detail form based on above tables. XXX_DIE_Headers is the Master Block (Single record) & XXX_DIE_LINES is the detail block ( Multi line block ).
    Yes, I used Appstand,Template.fmb for developing this form. The Master block has three fields out of which Two are required fields and i have given initial value for them.
    As i deployed it in APPS(EBS),everything about it is working fine (insert,delete,master-detail behaviour) except querying.
    When i press F-11 , It pops up a message "Do you want to save changes you have made" Choice - yes,no,cancel.
    I don't want this message to pop up.
    The scenario is :- I open the form.( without entering ) Press F11 . The message Pops up.
    Please give me suggession on how to work it around so as form directly goes to query mode ,without popping the message.
    regards
    ravi

    It seems that you are changing a database value in your form, do you have any changes in WHEN-NEW-FORM-INSTANCE???
    what the form is trying to tell you that you have changed something, do you want to save it?
    I suggest you debug your form and see what's happening step by step.
    Tony

  • HP ProBook 440 G2, Finger print reader not working when I upgraded form Win 7 Pro to Win 8.1 Pro

    My HP ProBook 440 G2, Finger print reader not working when I upgraded form Win 7 Pro to Win 8.1 Pro.
    In device manager showing that biometric reader is working properly. But actually the finger printer reader is not reading or senseing. It seems like "dummy" part. Please help me to correctly configure step by step for this issue.
    thankyou
    Hillet
    This question was solved.
    View Solution.

    Have you installed the Validity Sensor Fingerprint driver software for Windows 8.1?
    http://h20564.www2.hp.com/hpsc/swd/public/detail?sp4ts.oid=6943811&swItemId=ob_134806_1&swEnvOid=415...
    See page 64 in the following Windows 8.1 user manual for Validity Fingerprint setup information
    http://h20565.www2.hp.com/hpsc/doc/public/display?sp4ts.oid=6943810&docId=emr_na-c04371762&docLocale...
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Updating current record using SET_CUSTOM_PROPERTY in a multi-record form

    Hi,
    I have a multi record form and am using the SET_CUSTOM_PROPERTY method in the when validate trigger of an item. The problem is that it updates all records in the form instead of updating just the current record.
    Any inputs to resolve this would be helpful.
    Thanks

    I cannot reproduce the issue here.
    I have modified the sample dialog shipped with th article to have a block that displays 2 records
    <p>See the screenshot here</p>
    Here is the code in the When-Button-Pressed trigger:
      Set_Custom_Property( 'BLZ.BEAN', 1, 'READIMGFILE', 'd:/coyote.jpg' ) ;
      Set_Custom_Property( 'BLZ.BEAN', 2, 'READIMGFILE', 'd:/oracle_community.gif' ) ;So everything is ok for me.
    Francois

  • So does Flash Forms not work in Safari?

    Does Flash Forms not work on Safari Browser? I have them on
    my site but when I try to look at them in Safari, they don't work..
    Or do I need to just add some type of extension to my Safari
    Browser to View a Flash Form?
    Here is the page. it won't work in Safari.. unless I"m
    missing an install extension. I just downloaded the browser for
    Windows for the first time today and so I wanted to check my site
    in that browser.
    http://www.jimmyharrell.com/contact.cfm
    is the page in question.

    yes but still no luck. When you go here do you see my flash
    form load in Safari? I'm using Safari for Windows not mac.
    http://www.jimmyharrell.com/contact.cfm

  • Does Flash Forms not work in Safari?

    Does Flash Forms not work on Safari Browser? I have them on
    my site but when I try to look at them in Safari, they don't work..
    Or do I need to just add some type of extension to my Safari
    Browser to View a Flash Form?
    Here is the page. it won't work in Safari.. unless I"m
    missing an install extension. I just downloaded the browser for
    Windows for the first time today and so I wanted to check my site
    in that browser.
    http://www.jimmyharrell.com/contact.cfm
    is the page in question.

    yes but still no luck. When you go here do you see my flash
    form load in Safari? I'm using Safari for Windows not mac.
    http://www.jimmyharrell.com/contact.cfm

  • Copy form Wrod document and Paste in Oracle Forms not working

    Hi
    In one Oracle Finacial instance Copy from other document (word or Excel) and Paste in Oracle Financial Forms not working. Any body know the reason for this?
    Eg. Copy Invoice Number form Excel and Paste it in Some of the payable forms or any other forms
    Regards
    Sunil

    Hi
    We have tried this but no output. ie the issue continues the same. This issue is there for all PC including Server. Is there any other solution avaliable. .
    Regards
    Sunil

  • Discoverer Reports does not work in Multi-org Environment after R12 Upgrade

    Discoverer Reports does not work in Multi-org Environment after R12 Upgrade. Created a simple report using the below query:
    SELECT po_header_id, segment1, type_lookup_code
    FROM po_headers
    WHERE segment1 = '5000002'
    Query works perfectly fine; when i set the ORG_CONTEXT in the database using the command:
    EXEC mo_global.set_policy_context('S',129)
    But the report doesn't fetch any data when ran from an Org based responsibility. We've ensured that the MO: Operting Unit is set accurately and general Oracle reports (PLSQL Program OR XML Publisher) are working perfectly fine.
    ===========
    I followed the steps provided in Metalink Note: 732826.1 - It works for some responsibilities where the MO: Security Profile is not set; but fails for those responsibilities where the MO: Security Profile is set.
    I am looking for specific solution that works irrespective of either the MO: Operating Unit profile is set of not.
    Please suggest. Appreciate your response.
    Thanks,
    Kesava Chunduri

    Hi Hussein,
    Thanks for the quick response.
    Yes, I've gone thru both the notes specified below:
    Discoverer Workbooks Based On Organization Enabled Views Are Not Populated [ID 1293438.1]
    - Tried this option; but this option is messing up a couple of Oracle Standard Functionalities.
    - For ex: If i set this profile option; we are not able to create any receipts using Custom Responsibilities.
    I am able to create the receipt, when i remove this profile option.
    No Data Shows for Reports in Discoverer 10g with Applications Release 12 [ID 1054380.1]
    - I see that the products i am running these reports from AR/GL - already exists in these tables.
    Anything other options??
    Thanks,
    Kesava

  • Bookmarks not working in multi-document PDF application

    Why are bookmarks not working in multi-document PDF application when uploaded to the web? We created a multi-document PDF application. All bookmarks and links work on our systems. All work on the customer's system. They do not work when uploaded to the customers website. Their IT department says its an issue of relative vs. absolute addressing. We've created applications like this for years without running into this issue. Can't find anything about it in Acrobat Help. Can anyone help or lead me to help? Thx much, Sandy

    Have you tried opening the file in your browser to see if the bookmarks are working?  To open the file in your browser you need to do this:
    1) Launch your favorite browser;
    2) File >> Open >> Select your pdf file
    See this picture to see what I am talking about.  You might need to click on it to magnify it:
    Good luck.

  • FPMA auto Clearing is not working.

    Hi All,
    FPMA auto Clearing is not working.
    Scenario
    Contract account is having open invoices and also open credit items. The total open invoice amount is equal to the total open credit items. So the contract account balance is ZERO.But the open credit items and open invoices are not having a clearing document because its not cleared. I have executed FPMA transaction with proper parameters but auto clearing is not happend.
    Questions are:
    1) what would be the reason behind not functioning the auto clearing
    2) Job log of the FPMA program is showing exceptions ( some times with execption 6 and some times with 10,etc) . is there any table to check exceptions.
    3) what is the diff between FPL9 ( account maintenance ) and FPMA auto clearing.
    Regards,
    Will

    Hi,
    I have put together all the possible scenarios in my previous post against the failure of auto clearing.
    Now to elaborate my point (i)(ii)-
    (a) There is an object called clearing lock which you will find at the document level.which you will find in the payment data tab of the display document screen.
    If there is any value in the clearing lock, it indicates that the particular item will not be cleared.
    Also check for the posting lock field at the contarct account level. This field prevents any new line item to be posted into the account.
    (b) Items which have clearing restriction 8  can't be cleared with any other item nor they can be dunned.Clearing restriction field is also there in the the payment data tab of the display document screen.
    I would recommend you to perform the clearing through Account maintaineance (FP06). If it gets cleared, then there is some bug in the clearing control config for Auto clearing.
    If it doesn't, then it will throw some error in the status bar. Just go thru the error and you will be analyse it further.
    Hope it helps.
    Thanks,
    Amlan

  • N81 clear key not working

    My N81 has problems with the clear key not working which is very frustrating when SMSing  I have had it back for repair once but still not working.  Any suggestions?

    Your only option is to take it in for repair again and demand that it is repaired.  Make sure you take it to a nokia care point, not just any phone repair shop.
    Care points/service centres and repair info:
    UK • Europe • Asia-Pacific • USA •
    Canada • Middle East and Africa
    Elsewhere: Click here, select your country, go to the support section, then select repair.

  • Forms Library Not Working Correctly in Records Center

    Greetings,
    I have a scenario where I have created a form library in a records center.  This form library has the same InfoPath form published to it as is in the primary collaborative site.  In the collaborative site, based on certain conditions, a workflow
    moves the form entry to the records center; all of this work correctly.
    However, the entry in the form library is recognized as a plain XML file, this can be seen by the file type icon.  When I click on the item I want it to open using the InfoPath form.  Is there something special I need to do to make this work?
    Thank you in advance for your suggestions!
    Bob

    Hi,
    Based on your description, my understanding is that when you use workflow to move the form entry from collaborative site to the records center, you can't open the items in the records center using the InfoPath form.
    Could you please offer how do you use workflow to move the form entry from collaborative site to the records center?
    You said "However, the entry in the form library is recognized as a plain XML file". Does the items looks like the following:
    You said "When I click on the item I want it to open using the InfoPath form". if the items look like the following, Then you can open the items using the InfoPath form.
    I have done a test in my SharePoint, I create two new form library with the same infopath form template.
    then I create a workflow "Create List Item" action to move the form entry from the first form library to the second form library. Then I can open the items from the second form library using the InfoPath form.
    If I misunderstanding your issue, Please offer some screenshot about issue, I will help you better.
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]
    Hi Lisa,
    I use the Submit File action in SharePoint Designer to move the file.
    To be able to reproduce my same issue, you would need to provision your records center in a different site collection.
    I have the same InfoPath form published to the form library in the records center and have created the correct link to open the form; using formserver.aspx?XmlLocation=...  However, I still can't get the item (in the records center) to open.
    Bob

Maybe you are looking for