Press ctrl+sht+F9 from when button press trigger.

I am using oracle forms 10g. Is ther a way to press ctrl+sht+F9 automatically when user press button on the form? I have a window programm runiing on the window which has a hot key set as (ctrl+sht+F9 ) when user clicks button it passes certain values from oracle form and start program that is running.
I am able to pass the value to the program only problem is I am unable to press ctrl+sht+F9 automatically.

Not sure what you want to do.
I guess you want to base your BLOCK a_agents on the table a_agents and have a where clause {a_id is null}.
Open Forms
Go to Tools-> Data block wizard.
Select table or view
In the next screen select a_agents , select the column names(last_name etc...).
Go through the next steps of the wizard... should be fairly simple.
When you are done with it go to the object navigator.
Right click on the Block(a_agents).
scroll down to the Where clause, enter a_id is null.
I think this should work for you.

Similar Messages

  • Open URL Website from WHEN BUTTON PRESSED

    I need to open an internal website when a button is pressed on Forms 9i, which is the best and simplist way to go about it, using the available inbuilt forms 9i functions.
    Any ideas?????

    Hello,
    Use the Web.Show_Document() built-in.
    Francois

  • WHEN BUTTON PRESSED TRIGGER

    Hi,
    I've created a form with 4 data blocks (each of which has its' own canvas, items, and window). On my first canvas, I've created "push buttons" for the user to select which canvas (block/window) they go to next. I've attached WHEN-BUTTON-PRESSED triggers to each of these buttons (which execute a go_block command), however, when I first run the form and click on a button, nothing happens. If I execute a query BEFORE I click on a button, they all work fine and take me to the correct canvas. Could someone please tell me how I can get these buttons to work WITHOUT having to execute a query first? I've looked at all the property palettes, etc. and can't see any attribute that I can set.....any help would be greatly appreciated. Thank you. (I'm using Forms 9.0.4.0.19)

    Thank you so much for your responses. I had changed the
    Fire In Enter-Query Mode to No, but that didn't help, however, changing the trigger from WHEN-BUTTON-PRESSED to WHEN-MOUSE-CLICK did the trick - it works fine.
    Can you suggest a good reference for determining which type of trigger you should use?
    Thanks again for your responses - I really appreciate it!

  • Calling a report from forms - FRM-40735 when-button-pressed raised unhandle

    Hi,
    I created a form to generate a pdf report.
    its not going too well, so i need some help.
    my form only has one button , when pressed I want it to generate a report in pdf format.
    i created a when-button-pressed trigger and the following code is below:
    I also create a web service proxy jar file,
    the jar file is in the FORMS_BUILDER_CLASSPATH, and the jar file is imported from forms builder without any issues.
    As of now I am hard coding everything in the code below to see if it works.
    The error I am getting  FRM-40735 when-button-pressed raised unhandled exception ORA-105100 i dont know why ?
    This error is occurring at this line of code, please help, this is my first time doing something like this.
    obj := publicreportserviceclient.new(); DECLARE
    param_name varchar2(200);
    un varchar2(200);
    pw varchar2(200);
    out_file varchar2(200);
    obj ORA_JAVA.JOBJECT;
    BEGIN
    obj := publicreportserviceclient.new();
    param_name := 'EMP';
    un := 'Administrator';
    pw := 'Oracle123';
    out_file := 'D:\DevSuiteHome_1\j2ee\home\default-web-app'||'output';
    publicreportserviceclient.callRunReport(obj,'/~administrator/Learn/Test1/Test1.xdo','EMP','141414',un,
    pw,'pdf','New_Template',out_file);
    web.show_document('http://jmenge-de.de.oracle.com:8889/j2ee/' || 'output');
    exception
      --check for ORA-105101
      when ORA_JAVA.EXCEPTION_THROWN then
         message('Java Exception : '
          || Exception_.toString(ORA_JAVA.LAST_EXCEPTION));
          ORA_JAVA.CLEAR_EXCEPTION;
          return;
      --check for ORA-105100
      when ORA_JAVA.JAVA_ERROR then
                   message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
              return;
    END;This is my java function
        public void callRunReport (String reportPath, String paramName, String  paramValue, String
        username, String password, String format, String template, String outFile) {
        try {
                bip_webservice.proxy.PublicReportServiceClient myPort = new bip_webservice.proxy.PublicReportServiceClient();
                // Calling runReport
                ReportRequest repRequest = new ReportRequest();
                repRequest.setReportAbsolutePath(reportPath);
                repRequest.setAttributeTemplate(template);
                repRequest.setAttributeFormat(format);
                repRequest.setAttributeLocale("en-US");
                repRequest.setSizeOfDataChunkDownload(-1);
               ParamNameValue[] paramNameValue = new ParamNameValue[1];
                paramNameValue[0] = new ParamNameValue();
                paramNameValue[0].setName(paramName);
                String[] values = new String[1];
                values[0] = paramValue;
                paramNameValue[0].setValues(values);
                repRequest.setParameterNameValues(paramNameValue);
                ReportResponse repResponse = new ReportResponse();
                repResponse = myPort.runReport(repRequest,username,password);
                byte[] baReport = repResponse.getReportBytes();
                FileOutputStream fio = new FileOutputStream(outFile);
                fio.write(baReport);
                fio.close();
            } catch (Exception ex) {
                        ex.printStackTrace();
        }Thanks - please help

    If there is a way to make it work with Bi publisher, Please let me know.
    I need to something to make it work with BI publisher.
    thanks,
    Edited by: Rooney on May 27, 2010 1:27 PM

  • Error -- No Such Trigger('when-button-pressed')

    Hi,
    I am getting the error ""No Such Trigger('when-button-pressed')"",
    when I am executing the code EXECUTE_TRIGGER( 'WHEN-BUTTON-PRESSED' );
    on some item(Key-Next-Item), although WHEN-BUTTON-PRESSED trigger exists.
    What could be the problem ?. It worked till yesterday, giving error from today, I havent
    changed any thing.
    Thanks in Advance
    Devender

    Steve's tip is the only good solution for this case.
    The problem in your case for example is:
    Let's say you have a block-trigger, which fires after your execute-trigger.
    Now a colleague of you, which don't know your code, create a WHEN-BUTTON-PRESSED on an item, then the new code is started and not the block-trigger-code.
    So, don't ever do this. Write your code in a package-function or -procedure and call it from the trigger. So you can re-user the functionality
    Gerd

  • How can I call my chart in Forms6i on When Button Press Trigger?

    Hi Friends,
    I have make a chart in Graphic Builder 6i and save on path C:\graph\test.ogd
    Now I want to run this Chart from Form6i on When Button Press trigger.
    I have call my report in forms using this command on When Button Press trigger.
    Run_Product(reports,'C:\Cheema\Qdir_store\reports\pmms\sec_backlog',asynchronous,runtime,filesystem,TO_CHAR(NULL));
    So tell me How can I call my chart in Forms6i?
    Please reply me on urgent.
    Thanks,
    Shahzad

    Just to recall after a long break of couple of years..... Pls check out if not wrong.
    First of all you need to embeed the chart object on your layout window and make it visible = FALSE. This is a design time work. In the button press event, show the chart object by setting the visible property = TRUE.
    Note, i could not paste u the sample code as i don't have forms installation on my PC. The above states is a logic you can apply.

  • Calling a function in WHEN-BUTTON-PRESSED

    Hello,
    i have in when-button-pressed a line containing
    select pachet_salarizare.ani_vechime(data_min, to_number(to_char(sysdate,'YYYY')), to_number(to_char(sysdate,'MM'))) into ani_vechime from dual;so i call a function which is in pachet_salarizare package (package created in program units, in Forms).
    when compiling, i get: function 'PACHET_SALARIZARE.ANI_VECHIME' mai not be user in SQL.
    how can i deal with this? i need the result of that function in a variabie, ani_vechime.
    Thanks!

    Uh, thank you. i thought it's not possible what i wanted..
    but strange why cannot be called function in select statements
    Regards,

  • Requerying in WHEN-BUTTON-PRESSED

    Hi,
    I have two forms. I have a button that opens up modal form 2 from form 1 and passes some parameters. I allow the user to update something in form 2 (which has an effect on form 1). When user exits form 2, I want to requery the block in form 1 so that any updates effected in form 2 can be visible.
    I tried putting in a do_key('execute_query') in the WHEN-BUTTON-PRESSED trigger in form 1 after the call to open form 2. This had no effect (probably because it didn't get called when I expected it to). The only way I am able to get the new data (after an update in form 2) is to manually issue a requery in form 1.
    Any suggestions would be deeply appreciated!
    Thanks,
    Niranjan

    Hi Niranjan
    Put the Execute_query in the when-new-form-instance of the Called form.
    With Regards
    Harish
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Niranjan Ramakrishnan:
    Hi,
    I have two forms. I have a button that opens up modal form 2 from form 1 and passes some parameters. I allow the user to update something in form 2 (which has an effect on form 1). When user exits form 2, I want to requery the block in form 1 so that any updates effected in form 2 can be visible.
    I tried putting in a do_key('execute_query') in the WHEN-BUTTON-PRESSED trigger in form 1 after the call to open form 2. This had no effect (probably because it didn't get called when I expected it to). The only way I am able to get the new data (after an update in form 2) is to manually issue a requery in form 1.
    Any suggestions would be deeply appreciated!
    Thanks,
    Niranjan<HR></BLOCKQUOTE>
    null

  • When-button-pressed---adding a "select statement"

    Hi friends,
    i have a select statement:
    select count(*) from employees
    where emp_no=:control.emp_no;
    i would like that when i press a button, count for instance, i get the number of employees.
    I need the codes used in oracle in the when-button-pressed.
    Thanks.

    DECLARE
    RESULT NUMBER :=0;
    CURSOR CUR
    select count(*) from employees
    where emp_no=:control.emp_no;
    BEGIN
    OPEN CUR;
    FETCH CUR INTO RESULT;
    :ITEM_NAME := RESULT;
    CLOSE CUR
    END;
    I hope this will help
    This will be shown in item, if you want to show a message then use
    MESSAGE(RESULT);
    Regards
    Abbas
    Edited by: Abbas on Jul 19, 2011 12:37 PM

  • FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-106561

    I m working on Fusion Middleware forms 11g with windows plateform. I want to launch an exe (like notepad.exe) from my form on button click, which i m doing using the webutil dde.app_begin. My form is deployed on server, and i want to launch this application from client. The server is on linux. Now when i press the button it gives me error "FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-106561". Here is my code:
    DECLARE
    AppID    PLS_INTEGER;
    BEGIN
    AppID := DDE.App_Begin('notepad.exe',DDE.App_Mode_Normal);
    END;
    Any help will be highly appreciable. Also, please tell me for any possibility, if i can call this exe from server, which is on linux.
    Regards,
    Sharjeel

    Any one there pls help me in this. I seen all the forums and threads, for this, but could'nt find any solutions.
    Any help will be highly appreciable.
    Regards,
    Sharjeel

  • FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-29516

    Hi,
    The users are facing problem on opening the OAF pages on R12 instance.
    They face this error when they,
    1. Go to System Administrator responsibility.
    2. Open page under Workflow > Administrator Workflow > Status Monitor.
    3. This error pops up in the lower half of the form page.
    FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-29516
    However, this error doesn't happen when people make direct login from homepage. Kindly help and suggest what need to be done.
    EBS 12.1.3
    DB 11.2.0.2.0
    Thanks in advance.*
    Holi*

    Can you find any details about the error in Apache log files and the application.log file?Saw two files, error*.log, and access.log. Please suggest if I need to see some other files, I am new to R12 environment.
    error log
    n request for destination: application://forms (no island or jgroup).
    +[Fri Apr  1 09:05:04 2011] [error] [client 10.182.1.5] [ecid: 1301666704:10.10.241.79:3809:0:89,0] mod_oc4j: Failed to find a failover oc4j process for session request for destination: application://forms (no island or jgroup).+
    +[Fri Apr  1 09:05:48 2011] [error] [client 10.182.1.5] [ecid: 1301666748:10.10.241.79:2404:0:299,0] mod_oc4j: Failed to find a failover oc4j process for session request for destination: application://oacore (no island or jgroup).+
    +[Fri Apr  1 11:34:36 2011] [error] [client 10.11.219.90] [ecid: 1301675676:10.10.241.79:2404:0:414,0] File does not exist: /p01/app/applmgr/oappsp1/apps/apps_st/comn/java/classes//+
    +[Fri Apr  1 11:34:38 2011] [error] [client 10.11.219.90] [ecid: 1301675678:10.10.241.79:8458:0:332,0] File does not exist: /p01/app/applmgr/oappsp1/apps/apps_st/comn/java/classes//+
    +[Fri Apr  1 11:40:10 2011] [error] [client 10.11.219.90] [ecid: 1301676010:10.10.241.79:2562:0:467,0] File does not exist: /usr/local/oraapps/tmp/inst/apps/OAPPSP1_c201u334/portal/favicon.ico+
    access log
    +27.0.0.1 - - [01/Apr/2011:23:36:00 -0500] "HEAD /index.html HTTP/1.1" 200 0 0 "-" "-"+
    +127.0.0.1 - - [01/Apr/2011:23:36:20 -0500] "HEAD /index.html HTTP/1.1" 200 0 0 "-" "-"+
    +127.0.0.1 - - [01/Apr/2011:23:36:40 -0500] "HEAD /index.html HTTP/1.1" 200 0 0 "-" "-"+
    +10.32.16.114 - - [01/Apr/2011:23:36:55 -0500] "POST /forms/lservlet;jsessionid=3218513816b7b7e5c75d2c1e812eca1e21eb118fdac1cbb0d8eb1d618ee6ccbb.e3qKbN0Mc3yNe38Lb34KahuTbx10 HTTP/1.1" 200 2 0 "-" "Mozilla/4.0 (Windows XP 5.1) Java/1.6.0_07"+
    +127.0.0.1 - - [01/Apr/2011:23:37:00 -0500] "HEAD /index.html HTTP/1.1" 200 0 0 "-" "-"+127.0.0.1 - - [01/Apr/2011:23:37:20 -0500] "HEAD /index.html HTTP/1.1" 200 0 0 "-" "-"

  • FRM-40735 WHEN-BUTTON-PRESSED TRIGGER RAISED UNHANDLED EXCEPTION ORA-01843

    Hi everyone
    When I run My form in Microsoft Windows Melinem , and I have Button on the form WHEN I press the button it works fine ,but when I run the same form in Microsoft Windows XP and WHEN I press the button it give this message :
    FRM-40735
    WHEN-BUTTON-PRESSED TRIGGER RAISED UNHANDLED EXCEPTION ORA-01843
    AND I RECOMPILE THE FORM IN Microsoft Windows XP BUT STILL I AM GETING THE SAME MESSAGE
    WAITING FOR YOU VALUABLE ANSWER .
    BEST REGARDS
    JAMIL ALSHAIBANI

    Forms [32 Bit] Version 6.0.8.23.2 (Production)
    Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
    With the Partitioning option
    JServer Release 9.0.1.1.1 - Production
    and the script which is used in the button as the following :
    DECLARE
    CURSOR C1 IS
    SELECT ITEM_CODE,AVERAGE_COST,STORE_CODE,ITEM_QUANTITY,TOTAL_COST
    FROM IM_GOODS_RECIEVE_DETAILS
    WHERE DOC_CODE = :IM_GOODS_RECIEVE_HEADER.DOC_CODE;
    LOC_DOC_CODE VARCHAR2(10);
    LOC_DOC_DATE DATE;
    LOC_ITEM_CODE VARCHAR2(30);
    LOC_ITEM_QUANTITY NUMBER(20,3);
    LOC_CART_QTY NUMBER(20,3);
    LOC_UNIT_CODE VARCHAR2(10);
    LOC_TOTAL_COST NUMBER(20,6);
    LOC_AVERAGE_COST NUMBER(20,6);
    LOC_SUM_QTY NUMBER(20,6);
    LOC_BALANCE NUMBER(20,6);
    LOC_PRICE NUMBER(20,6);
    LOC_BALANCE_COST NUMBER(25,6);
    LOC_ITEM VARCHAR2(30);
    L0C_TOT_COST NUMBER(20,6);
    LOC_TOT_QTY NUMBER(20,6);
    LOC_NEW_AVERAGE NUMBER(20,6);
    LOC_ON_HAND_QTY NUMBER(20,3);
    al_id Alert;
    al_button NUMBER;
    LOC_SYS_DATE DATE;
    BEGIN
    SELECT TO_DATE(TO_CHAR(SYSDATE,'DD/MM/YYYY')) INTO LOC_SYS_DATE FROM DUAL;
    FOR R IN C1
    LOOP
    BEGIN
         SELECT B.ITEM_CODE ,SUM(NVL(ITEM_QUANTITY,0)) INTO LOC_ITEM ,LOC_SUM_QTY
    FROM IM_TRANS_ISSUE_HEADER A,IM_TRANS_ISSUE_DETAILS B
    WHERE A.DOC_CODE = B.DOC_CODE
    AND B.DEL_STORE = R.STORE_CODE
    AND ITEM_CODE = R.ITEM_CODE
    AND DOC_DATE BETWEEN :IM_GOODS_RECIEVE_HEADER.DOC_DATE
    AND LOC_SYS_DATE
    GROUP BY
    ITEM_CODE
    ORDER BY B.ITEM_CODE ;
    exception
         when no_data_found then
         NULL;
         when form_trigger_failure then
    show_message(sqlerrm);
         raise form_trigger_failure;
         when others then
         show_message(sqlerrm);
         raise form_trigger_failure;     
    END;     
         BEGIN
         BEGIN
         SELECT (NVL(QUANTITY_ON_HAND,0) + (NVL(LOC_SUM_QTY,0))),NVL(ITEM_PRICE1,0),
         NVL(QUANTITY_ON_HAND,0)
         INTO LOC_TOT_QTY,LOC_PRICE,LOC_ON_HAND_QTY
         FROM IM_LOCATION A, IM_INVENTORY B
         WHERE A.ITEM_CODE = B.ITEM_CODE
         AND A.ITEM_CODE = R.ITEM_CODE
         AND A.STORE_CODE = R.STORE_CODE;
         LOC_BALANCE := (:IM_GOODS_RECIEVE_DETAILS.ITEM_QUANTITY) - (LOC_TOT_QTY);
         LOC_BALANCE := - (LOC_BALANCE);
         LOC_BALANCE_COST := ((LOC_BALANCE) * (LOC_PRICE));
         L0C_TOT_COST := LOC_BALANCE_COST + :IM_GOODS_RECIEVE_DETAILS.TOTAL_COST;
         LOC_NEW_AVERAGE := ROUND(((L0C_TOT_COST)/(LOC_TOT_QTY)),5);
         exception
         when no_data_found then
         NULL;
         when form_trigger_failure then
    show_message(sqlerrm);
         raise form_trigger_failure;
         when others then
         show_message(sqlerrm);
         raise form_trigger_failure;
         END;
         BEGIN
         SELECT 1 INTO :GLOBAL.DUMMY
         FROM COST_TEMP_SUM
         WHERE S_GOODS_DOC = :IM_GOODS_RECIEVE_HEADER.DOC_CODE
         AND S_GOODS_DATE = :IM_GOODS_RECIEVE_HEADER.DOC_DATE
         AND S_ITEM_CODE = R.ITEM_CODE;
         exception
         when no_data_found then
         INSERT INTO COST_TEMP_SUM
         VALUES(:IM_GOODS_RECIEVE_HEADER.DOC_CODE,
         :IM_GOODS_RECIEVE_HEADER.DOC_DATE,LOC_SUM_QTY,LOC_ON_HAND_QTY,
         LOC_TOT_QTY,LOC_BALANCE,R.ITEM_QUANTITY,
         LOC_PRICE,LOC_BALANCE_COST,R.TOTAL_COST,
         L0C_TOT_COST,LOC_NEW_AVERAGE,R.ITEM_CODE,LOC_SYS_DATE);
         when form_trigger_failure then
    show_message(sqlerrm);
         raise form_trigger_failure;
         when others then
         show_message(sqlerrm);
         raise form_trigger_failure;     
         END;
         END;
    IF LOC_BALANCE_COST = 0 THEN
         UPDATE IM_INVENTORY
              SET ITEM_PRICE1 = R.AVERAGE_COST
              WHERE ITEM_CODE = R.ITEM_CODE;      
    ELSE
         UPDATE IM_INVENTORY
              SET ITEM_PRICE1 = LOC_NEW_AVERAGE,ITEM_PRICE2 = LOC_PRICE
              WHERE ITEM_CODE = R.ITEM_CODE;      
    END IF;
    -- THIS FOR ISSUED ITEMS QUANTITY
    FOR R2 IN (
    SELECT B.ITEM_CODE as LOC_ITEM_CODE, NVL(ITEM_QUANTITY,0) as LOC_ITEM_QUANTITY,
    A.DOC_CODE as LOC_DOC_CODE, AVERAGE_COST as LOC_AVERAGE_COST,
    TOTAL_COST as LOC_TOTAL_COST,A.DOC_DATE as LOC_DOC_DATE,
    CART_QTY as LOC_CART_QTY,UNIT_CODE as LOC_UNIT_CODE
    FROM IM_TRANS_ISSUE_HEADER A,IM_TRANS_ISSUE_DETAILS B
    WHERE A.DOC_CODE = B.DOC_CODE
    AND B.DEL_STORE = R.STORE_CODE
    AND ITEM_CODE = R.ITEM_CODE
    AND DOC_DATE BETWEEN :IM_GOODS_RECIEVE_HEADER.DOC_DATE
    AND LOC_SYS_DATE
    -- AND :EXPENSES_TAB.EXP_DATE
    ORDER BY B.ITEM_CODE )
    LOOP
    BEGIN
    SELECT 1 INTO :GLOBAL.DUMMY
         FROM COST_TEMP
         WHERE T_DOC_CODE = R2.LOC_DOC_CODE
         AND T_DATE = R2.LOC_DOC_DATE
         AND T_ITEM_CODE = R2.LOC_ITEM_CODE;
    exception
         when no_data_found then
    INSERT INTO COST_TEMP
    VALUES(R2.LOC_DOC_CODE,R2.LOC_DOC_DATE,R2.LOC_CART_QTY,R2.LOC_ITEM_QUANTITY,
    R2.LOC_AVERAGE_COST,:IM_GOODS_RECIEVE_HEADER.DOC_CODE,
    :IM_GOODS_RECIEVE_HEADER.DOC_DATE,R.ITEM_CODE,R.STORE_CODE);
    when form_trigger_failure then
    show_message(sqlerrm);
         raise form_trigger_failure;
         when others then
         show_message(sqlerrm);
         raise form_trigger_failure;     
         END;
    Begin
    al_id := Find_Alert('POST_DATA');
    IF Id_Null(al_id) THEN
    Message('User_Warning alert does not exist');
    RAISE Form_Trigger_Failure;
    ELSE
    ** Show the warning alert
    -- jamil al_button := Show_Alert(al_id);
    ** If user pressed OK (button 1) then bring up another
    ** alert to confirm -- button mappings are specified
    ** in the alert design
    -- IF R2.LOC_ITEM_QUANTITY != 0 AND al_button = ALERT_BUTTON1 THEN
         IF R2.LOC_ITEM_QUANTITY != 0 THEN
    BEGIN
    UPDATE IM_TRANS_ISSUE_DETAILS
    SET AVERAGE_COST = LOC_NEW_AVERAGE,
    TOTAL_COST = LOC_NEW_AVERAGE * R2.LOC_ITEM_QUANTITY
    WHERE DOC_CODE = R2.LOC_DOC_CODE
    AND ITEM_CODE = R2.LOC_ITEM_CODE ;
    END;
    END IF;
    END IF;
    END;
    END LOOP;
    END LOOP;
    GO_BLOCK('IM_GOODS_RECIEVE_HEADER');
    :IM_GOODS_RECIEVE_HEADER.FLAG_COST := 1;
    COMMIT;
    SET_ITEM_PROPERTY('IM_GOODS_RECIEVE_HEADER.PUSH_BUTTON152',ENABLED,PROPERTY_FALSE);
    SET_ITEM_PROPERTY('EXPENSES_TAB.PUSH_BUTTON151',ENABLED,PROPERTY_FALSE);
    SHOW_MESSAGE('The New Cost Price updated Successfully !!!');
    END;
    BEGIN
         IF nvl(:IM_GOODS_RECIEVE_HEADER.FLAG_COST,0) = 1 THEN
    Make_Block_Query_Only('IM_GOODS_RECIEVE_DETAILS');
         ELSIF nvl(:IM_GOODS_RECIEVE_HEADER.FLAG_COST,0) = 0 THEN
         Make_Block_Query_Only('IM_GOODS_RECIEVE_DETAILS');
         END IF;          
    END;     
    best regards
    Jamil Alshaibani

  • FRM-40735:when-button-pressed trigger raised unhandled exception ORA-24247

    hi all
    i am using form 10g release2 i am having a problem
    when i use the following stored procedure in form then i am getting this
    error.
    FRM-40735:when-button-pressed trigger raised unhandled exception ORA-24247
    but the same code working fine when i use in SQLPLUS.
    CREATE OR REPLACE PROCEDURE mail_attach (dir1 VARCHAR2, filename VARCHAR2)
    AS
      l_output  utl_file.file_type;
      l_file       RAW(32767);
      l_size       NUMBER;
      BLOCK       NUMBER;
      b          BOOLEAN;
      l_start NUMBER := 1;
      TYPE ARRAY IS TABLE OF VARCHAR2(255);
      l_data ARRAY := ARRAY([email protected]');
    BEGIN
      UTL_FILE.FGETATTR(dir1, filename, b, l_size, BLOCK);
      l_output := utl_file.fopen('BACKUP', 'code.txt', 'r' );
      utl_file.get_raw(l_output, l_file, l_size);
      utl_file.fclose( l_output );
      FOR i IN l_start .. l_data.COUNT
      LOOP
        UTL_MAIL.SEND_ATTACH_RAW (
            sender   => 'Mailer',
            recipients => l_data(i),
            subject   => 'Data for ' || TO_CHAR((SYSDATE-1),'DD-MON-YYYY'),
            attachment => l_file,
            message   => 'Dear User, Please find attached the upload
    data for the period mentioned in the subject line.',
            att_inline => FALSE,
            att_filename => filename);
           l_start := l_start + 1;
      END LOOP;
    END;and this is used in form when-button-pressed trigger.
    BEGIN
      mail_attach('UTL_PATH','code.txt');
         message('FIle send successfully');
         message('File send successfully');
    END;

    hi
    Mehwish now check the following code and its working fine with me in form..........
    declare
         dir1 VARCHAR2(200);
          --filename VARCHAR2(200):='Logon.jpg';
           filename VARCHAR2(200);
      l_output  utl_file.file_type;
      l_file       RAW(32767);
      l_size       NUMBER;
      BLOCK       NUMBER;
      b          BOOLEAN;
      l_start NUMBER := 1;
      TYPE ARRAY IS TABLE OF VARCHAR2(255);
      l_data ARRAY := ARRAY('[email protected]');
    BEGIN
    -- EXECUTE IMMEDIATE 'ALTER SESSION SET smtp_out_server = ''192.168.56.103:25''';-- this is IP address and port of the server
      UTL_FILE.FGETATTR(dir1, :filename, b, l_size, BLOCK);
      --select directory_path into :filepath from dba_directories where directory_name='BACKUP';
      l_output := utl_file.fopen('BACKUP',:filename, 'r' );-- i added :filename as a text item.
      utl_file.get_raw(l_output, l_file, l_size);
      utl_file.fclose( l_output );
      FOR i IN l_start .. l_data.COUNT
      LOOP
        UTL_MAIL.SEND_ATTACH_RAW (
            sender   => 'Mailer',
            recipients => l_data(i),
            subject   => 'Data for ' || TO_CHAR((SYSDATE-1),'DD-MON-YYYY'),
            attachment => l_file,
            message   => :f,-- this is message item.
            att_inline => FALSE,
            att_filename => :filename);--this is attachment file name.
           l_start := l_start + 1;
      END LOOP;
      message('File Send Successfully');
      message('File Send Successfully ');
    END;hope this helps you.
    Attachment and mail are working fine with me, i can send attachment..............
    sarah

  • FRM-40735 when Button Pressed Trigger Raised Unhandled Exception ORA-03113

    Hi all,
    We are using oracle 9.2.0.4 on SUSE 10.When user try to insert record second time they are getting the error
    FRM-40735 when Button Pressed Trigger Raised Unhandled Exception ORA-03113And we are also getting ORa-0600 [12333]-[253]-[1]-[253]
    Please don't tell me that this is an oracle internal error and i have to contact oracle support.
    Actaually earlier we were using Oracle 9.2.0.6 (64 bit)on sun soalris 8 9(64 bit) and now after migrating the same to Oracle 9.2.0.4 to RHEL4 (32 bit).
    And i have also cross checked on the new server oracle 9.2.0.6 (64 bit) on rhel4 (64 bit).
    please suggest me....

    Please don't tell me that this is an oracle internal error and i have to contact oracle support.WHY? But it's the one and only reason! What do you think, how we can solve internal error? Do we have a special utility to demand from you some logs and by uising that utility analyze your database and solve your problem?

  • FRM-40735 WHEN BUTTON PRESSED trigger raised unhandled exception ORA-29282

    Hi All,
    while entering data in EAM forcaste workorder in maintenance workbench am getting this error
    FRM-40735 WHEN BUTTON PRESSED trigger raised unhandled exception ORA-29282
    check google and oracle forums and checked versions of pll and plx (as mentioned in one forum) for the form every thing is fine
    i hav also generated tkprof report but did'nt get enough info required
    my environment
    linux 5.6
    R12.1.3
    on 11.1.0.7
    please do let me know how to attach the print screen and tkprof report
    please help
    zavi

    Hi There,
    Srini:
    the form form name is different from one you mentioned in note
    ORA-29282 In POST-DELETE Trigger In EAMWOMDF Form [ID 1364328.1]
    any how i check the EAM diag option is set to yes,
    sorry i cant upload the screenshots and trace file we cant upload any from company
    here are few details from form-->help--> about
    RDBMS : 11.1.0.7.0
    Oracle Applications : 12.1.3
    Form Application : Enterprise Asset Management
    Form Name : EAMPLNWB
    Form Path : /u02/uat/apps/apps_st/appl/eam/12.0.0/forms/US/EAMPLNWB.fmx
    Form Version : 12.0.78.12010000.28
    Form Last Modified : $Date: 2011/05/17 02:44 $
    Forms PL/SQL
    APPCORE : 12.0.29.12010000.22
    APPDAYPK : 12.0.2.12010000.6
    APPFLDR : 12.0.6.12010000.2
    APPTREE : 12.0.0
    CUSTOM : 12.0.0
    EAMMRMDF : 12.0.27.12010000.4
    EAMOPMDF : 12.0.13.12010000.1
    EAMRSMDF : 12.0.10.12010000.2
    EAMWOMDF : 12.0.77.12010000.25
    FNDAPLT : 12.0.1
    FNDSQF : 12.0.3.12010000.8
    GHR : 12.0.46.12010000.14
    GLOBE : 12.0.76.12010000.10
    GMS : 12.0.51.12010000.8
    IGILUTIL2 : 12.0.32
    IGILUTIL : 12.0.3
    OPM : 12.0.7.12010000.2
    PQH_GEN : 12.0.7
    PSA : 12.0.17
    PSAC : 12.0.5
    PSB : 12.0.2
    Hi Hussain:
    from the note
    Please see (Creating Work Orders with Activity gives PL/SQL: numeric or value error: ORA-06512: at "APPS.EAM_WORKORDER_PKG", line 1431 [ID 822365.1]).
    it says about
    to debug the issue, users has enabled profile EAM: Debug Profile Option needs to be set to Yes at site level.
    Every time when WO API is involved, the following files are generated: createwo.log , updatewo.log.
    where can i find those logs please specify the location
    what i did
    as said by hussain i have manually compiled form and libraries assocaited with that form
    still waiting for reply from user
    got tkprof report
    few lines from that tkprof:
    declare                         
         m_stmt     varchar2(512);               
    begin                         
         m_stmt:='delete     from     sdo_geor_ddl__table$$';          
         EXECUTE     IMMEDIATE     m_stmt;          
         EXCEPTION                    
         WHEN     OTHERS     THEN          
         NULL;                    
    end;                         
    some select statement
    SELECT     MAX(STOCK_LOCATOR_CONTROL_CODE),     MAX(DEFAULT_DEMAND_CLASS),               
         MAX(CALENDAR_CODE),     MAX(CALENDAR_EXCEPTION_SET_ID),               
         NVL(MAX(PROJECT_REFERENCE_ENABLED),2),     NVL(MAX(PROJECT_CONTROL_LEVEL),1),               
         NVL(MAX(PM_COST_COLLECTION_ENABLED),2),     MAX(PRIMARY_COST_METHOD)               
    FROM                         
         MTL_PARAMETERS     WHERE     ORGANIZATION_ID     =     :B1
    insert statement its performing
    insert     into     eam_forecasted_work_orders(     pm_forecast_id,     group_id,                                                       
         pm_schedule_id,     activity_association_id,     cycle_id,     seq_id,                                                       
         scheduled_start_date,     scheduled_completion_date,     action_type,                                                            
         wip_entity_id,     process_flag,     wo_status,     created_by,     creation_date,                                                  
         last_update_date,     last_updated_by,     pm_base_meter_reading     ,                                                       
         ORGANIZATION_ID     )                                                                 
    values                                                                           
    (     :1,     :2,     :3,     :4,     :5,     :6,     :7,     :8,     :9,     :10,     :11,     :12,     :13,     sysdate,     sysdate,
         :14,:15,:16     )                                                                 
    please add a line through your vission
    cheers
    Zavi

Maybe you are looking for

  • Create link to web page

    Hello, I have linked documents through Create external document (URL) and need to find where the URL actual address is stored - what table? or a function module that can retrieve it? Help required ASAP. Thanks.

  • Upgarade weblogic from 10.3.5.0 to 10.3.6.0

    hi i have jdeveloper 11.1.1.6.0 which come with weblogic 10.3.5.0 how can i upgarade that weblogic to 10.3.6.0 i try to install Application Development Runtime but when i try to install my weblogic 10.3.6.0 in C:\Oracle\Middleware am getiing this err

  • Problems running Flex on OSX 10.5

    here is the log: !ENTRY org.eclipse.equinox.app 2008-06-23 10:36:07.702 !MESSAGE Product com.adobe.flexbuilder.standalone.product could not be found. !ENTRY org.eclipse.osgi 4 0 2008-06-23 10:36:07.713 !MESSAGE Application error !STACK 1 java.lang.Ru

  • SSLHandshake failure : Calling external SSL webservice from WL10.3

    Hi , I need to call an external SSL enabled webservice XXX . I have the certificate from webservice provider. My client is deployed on Weblogic 10.3 . This client works fine from standalone as am using java ssl settings . But it fails when deployed o

  • Low performance issue with EPM Add-in SP16 using Office Excel 2010

    We are having low performance issues using the EPM Excel Add-in SP16 with Excel 2010 and Windows 7 The same reports using Excel 2007 (Windows 7 or XP) run OK Anyone with the same issue? Thanks