Calling form .fmx or report .rep from database trigger. (URGENT PL.)

can we call an form (.fmx) or a report (.rep) from a database trigger. that is when there is some insertion in the table i want to call a report which will take the parameters from the table changed.
regards
vishal

JDeveloper and ADF

Similar Messages

  • How to send error message to forms from Database Trigger

    Hi, Please help me to send error message to forms from Database Trigger?
    RgDs,
    Madesh.R.M

    You are correct, the On-Error trigger is a Forms trigger. However, if your Form is going to display the error generated by the database stored procedure or trigger - you might not see the database error in your Form unless you check the DBMS_ERROR_CODE in the On-Error trigger and manually display the Error Code and associated Text. I've see this happen with a co-worker. The Form she was working on was based on a table with an Before-Insert trigger. Because she was not explicitely handling the error from the Before-Insert trigger in the Forms On-Error trigger, her Form appeared to halt for no reason at all. Once she added code to the On-Error trigger in the Form to handle the DBMS_ERROR_CODE, she discovered the trigger was producing an error and was able to show the error to the user in the On-Error trigger.
    I understand the desire to keep as much as possbile in the database, but with that comes some extra coding in your Forms to handle this. This extra coding could easily be placed in a Forms Library, attached to a Form and called in the On-Error trigger. Your code could look like this:
    DECLARE
       /*This example assumes you have an Alert defined
          in your Form called: 'ERROR' */  
       al_id    ALERT;
       al_text  VARCHAR2(200);  /* Max text of a Forms Alert message*/
       al_btn   NUMBER;
    BEGIN
    IF DBMS_ERROR_CODE != 0 THEN
       /* Error code is ORA-00000 Normal Successful completion
           So only handle non-zero errors  */
       al_text := DBMS_ERROR_CODE||':'||DBMS_ERROR_TEXT;
       al_id := Find_Alert('ERROR');
       set_alert_property(al_id, alert_message_text, al_text);
       al_btn := show_alert(al_id);
    END IF;
    END;Your original question was "How to send error message to forms from Database Trigger?" The answer is you don't because Forms already gets the database error code and database message through the Forms DBMS_ERROR_CODE and DBMS_ERROR_TEXT functions. Look these up in the Forms help and it should clear things up for you.
    Craig...
    Edited by: CraigB on Jun 14, 2010 4:49 PM
    Edited by: CraigB on Jun 14, 2010 4:49 PM
    Edited by: CraigB on Jun 14, 2010 4:50 PM
    Edited by: CraigB on Jun 14, 2010 4:51 PM
    Edited by: CraigB on Jun 14, 2010 4:51 PM

  • How i can make forms read form nls and reports read from anather

    hi evrey one
    how i can make forms read form nls_lang and reports read from anather nls_lang ,
    I think that this property is found in the file format .ini,
    I forgot his name,
    Is there one has found this information,
    pleez share.
    thanks.

    At a minimum, the creation of the TcpClient will need to change its parameter to the name of server you want to use:
    TcpClient tClient = new TcpClient("gmail-smtp-in.l.google.com", 25);

  • Running forms 6i and reports 6i from oracle portal

    hi all,
    is it possible to run the forms and the reports developed in
    forms 6i and reports 6i from oracle portal
    or
    is it possible to export forms 6i and reports 6i into oracle
    portal
    prabhakaran

    Dear Friend,
    It is possible to deploy 6i forms & reports by Apache Web
    Listener. You will have to edit the httpd.conf configuration
    file and add your virtual path as Alias. The Virtual Paths are
    /dev60html/
    /dev60cgi/
    /jinitiator/
    /dev60temp/
    Reply me if youre are successful.
    Thanx.

  • Invoke oracle report 10g from database pl/sql package

    Hi
    Is there a way that i can invoke an oracle report 10g from the database pl/sql package? I am working on a requirement that needs to generate a report when one of the criteria is not met.
    Please suggest me on this.

    Thanks for the info.
    I have a scenario where i need to fetch members details like name , email address and so on from the mainframes on the oracle database. Then on the oracle database i need to check if they have a email address or not. If yes then i need to generate a notice and mail it to them. If they don't have an email address, i'll have to print that out in a some centralized location.
    By the way, the notice was developed using oracle reports 10g.
    Now i am developing a pl/sql package which will do the address validation but i didn't know how to call a oracle report to generate the notice in pl/sql procedure.
    As suggested i will try with dbms scheduler and see if that works for me.

  • Calling RDF or REP from JDeveloper (Its Urgent Plzzzzzz....)

    Hi all
    How can i call Oracle Report Builder Report (.RDF or .REP) from JDeveloper. Pl. name the BuitIn that is used to call .
    bye
    Touseef

    JDeveloper and ADF

  • Oracle form: how to retrieve data from database to pop list

    I have problem in retrieving data from database to item list in
    oracle forms.
    Can anyone help me.
    thanks.

    The next is an example but you can find this information in
    Forms Help:
    DECLARE
         G_DESCS RECORDGROUP;
         ERRCODE NUMBER;
         rg_id RECORDGROUP;
         rg_name VARCHAR2(40) := 'Descripciones';
    BEGIN
         rg_id := FIND_GROUP(rg_name);
         IF Id_Null(rg_id) THEN
         G_DESCS := Create_Group_From_Query (rg_name, 'SELECT
    DESCRIPCION DESCRIPCION, DESCRIPCION DESC2 FROM FORMAS_PAGO);
         ERRCODE := POPULATE_GROUP(G_DESCS);
         POPULATE_LIST('FORMAS_PAGO.CMBDESCRIPCION',G_DESCS);
         END IF;
    END;
    Saludos.
    Mauricio.

  • Invoke Report From Database trigger

    Hi,
    Is it possible to invoke a report from a database trigger?
    The requirement is to start a report after a record was inserted in a table.
    Thank you,
    Alex.

    Hi
    I was looking for exactly the same thing. I need to invoke a report in response to an update in the database. To make things even more complicated, I want to send the report to an email add. Is that something anyone has already taken a look at? Any help appreciated.
    _*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Forms 9i: How get image from database?

    Hi!
    I want to get a image (GIF,JPG, TIFF, etc.) that is stored in database table (as blob) in Image_Item (No Database Block) by Trigger (PL/SQL) way.
    In a Block that is database=yes It's OK, the Query do this in automatic.
    I know that "select column into block_item from db_table" is not possible.
    Thanks!

    I have a multi-row block for entry data, so was thinking in a image item (No Database) in the same block for show a GIF when the user entry one code; then I will not need any thing more for show the correct GIF in each row when the user scroll them.
    The other way, if I create one block-image_item for each row that is displaying; then I need create a Procedure por Syncronize the data row with the GIF; this mean a lot re-quering when the user is scrolling the rows. This is the reason I searching one Instruccion equivalent to read_image_file (but in place Operating System from database) or dbms_lob.read( ... ) but the target must be a block image item.
    Thanks.

  • Re: send message from the database trigger(URGENT)

    Hi,
    I am using forms 6.0 and oracle 8.0. My question is I am calling a stored procedure in the BEFORE UPDATE TRIGGER on database. This trigger will be fired and update another table(table B) when user update any record in the forms based on different table (table A).
    I want to pass the message to the forms from the database trigger when records gets updated in the database e.g. (10 records are updated). Since I am not calling my database procedure from the forms, rather it is being called from the database trigger, How can i display message to the forms.
    Thanks all your help in advance.

    Thanks Parker for ur reply but that subprogram raise_application_error only works if there is an error in the store procedure. But in my case there is no error, I just need to pass a message saying that e.g. "12 rows updated". How can I pass this message from the database trigger to the forms application.
    Thanks

  • How can I create a pdf-report in a database trigger

    Hi,
    how can I create a pdf-file with Reports 9i in a database trigger ?
    Where can I find informations about it?
    Thanks
    Friedhold

    Here would be the place to start.
    If you have existing reports to call, take a look at the JRC

  • Call a Package in another schema  from a Trigger?

    Is there a method to call a package procedure from a trigger when the package exists within a different schema than the trigger (table)?
    Do you need a dblink to execute a procedure in a different schema within the same database?

    Hello,
    you need execute prvilege given to target schema on source package and you can create synonym in target schema as well. And you don't need dblink if the procedure resides in same schema or different schema in same database
    CREATE OR REPLACE TRIGGER myschema.test_trg
       BEFORE INSERT OR DELETE OR UPDATE
       ON test_table
       REFERENCING NEW AS new OLD AS old
       FOR EACH ROW
    DECLARE
    BEGIN
       -- How to pass parameters
       otherschema.mypkg.myproc (:new.id, :new.code);
    END;
    /Regards

  • Call bpel process as Web service from database

    Hi!
    i'm trying tocall bpel process as web service from Oracle database. When i try the same pl sql function, i can successfully call regular j2ee web service without any problem. When i instantiate process from bpel console - everything is ok .. but when i call process from plsql function, i get this error:
    ORA-20000: soapenv:Server.generalException - Missing BPEL archive file.
    The process domain cannot locate the BPEL archive for process
    "AuthorizeKeyCode", revision "AuthorizeKeyCode".
    If you have deployed the process please check that it is located in the
    directory "/ora/bpelpm/integration/orabpel/domains/vinves/deploy".
    ; nested exception is:
    ORABPEL-05205
    Missing BPEL archive file.
    The process domain cannot locate the BPEL archive for process
    "AuthorizeKeyCode", revision "AuthorizeKeyCode".
    If you have deployed the process please check that it is located in the
    directory "/ora/bpelpm/integration/orabpel/domains/vinves/deploy".
    i tried undeploy and deploy the process again, i tried to restart the server - still the same problem...
    anyone can help, please?
    thanks ...
    Tomas

    Hi,
    I am trying to invoke the HelloWorld BPEL process from Oracle DB using the demo_soap package downloaded from oracle.com.
    Find the PL/SQL block below:
    DECLARE
    req Demo_Soap.request;
    resp Demo_Soap.response;
         zipcode VARCHAR2(100) := 'Suresh';
    BEGIN
    req := Demo_Soap.new_request('initiate',
    'xmlns="http://xmlns.oracle.com/HelloWorld"');
    Demo_Soap.add_parameter(req, 'HelloWorldProcessRequest', 'xsd:string', zipcode);
    resp := Demo_Soap.invoke(req,
    'http://nooslux037t.gl.2wglobal.com:7777/BPELConsole/Dev/displayProcess.jsp?processId=HelloWorld',
    'http://xmlns.oracle.com/HelloWorld');
    END;
    Please help me in knowing what value i should pass for the
    1. New_request procedure
    2. Add_parameter procedure
    3. Invoke procedure.
    The HelloWorld is same as the example in the BPEL Tutorial Session 1.
    Thanks for your time.

  • Form is not Pulling records from database table.

    Hi all,
    it seems very simple question for you, but i got stuck here.
    I have created one table and insert some records in it from SQL.
    then i create one form and create a data block and pull all the fields form the table, now when i run this form it will not show the records... why ?
    is anything wrong am i doing ?
    Thanks for any help.
    Abid

    Yes when i press Execute Query it shows the records.
    can i add this on form level, i mean when form will load i can execute this query.
    how will this work.
    on_form_load
    execute_query;
    is that right ?
    Thanks for giving me clue, you soloved my problem.
    Abid

  • Email to hotmail or yahoo from Database trigger

    Hi all.
    I m working on Oracle Developer 6i with Oracle 9i.
    OS is Windows XP. My Oracle database is on Samba Server.
    I m using Exchange Server as my mail server.
    I want to send emails to hotmail, yahoor or any other mail server from my company.
    I have already create a database procedure to send mails within my company.
    I m using following procedure.
    PROCEDURE send_mail(p_to IN VARCHAR2,
    p_subject IN VARCHAR2,
    p_body IN VARCHAR2,
    p_from IN VARCHAR2)
    IS
    con utl_smtp.connection;
    l_log_err varchar2(4000);
    PROCEDURE send_header(name IN VARCHAR2, header IN VARCHAR2) is
    BEGIN
    utl_smtp.write_data(con,name||': '||header||chr(13)||chr(10));
    END;
    BEGIN
    con := utl_smtp.open_connection(hd_parameter.setting('MAILSVR'));
    utl_smtp.helo(con,hd_parameter.setting('DOMAIN'));
    utl_smtp.mail(con, p_from);
    utl_smtp.rcpt(con, p_to);
    utl_smtp.open_data(con);
    send_header('From', 'Help Desk System');
    send_header('To', p_to);
    send_header('Subject', p_subject);
    utl_smtp.write_data(con,chr(13)||chr(10)||p_body);
    utl_smtp.close_data(con);
    utl_smtp.quit(con);
    EXCEPTION
    WHEN utl_smtp.transient_error or utl_smtp.permanent_error THEN
    BEGIN
    utl_smtp.quit(con);
    EXCEPTION
    WHEN utl_smtp.transient_error or utl_smtp.permanent_error THEN
    Null;
    END;
    /* Create the error log file if send mail fails
    Added: June 03, 2004 by Hassan Raza*/
    l_log_err := sqlerrm;
    insert into mail_log_error
    values(sysdate, 'Failed to send mail due to the following error:'||l_log_err);
    END;
    Best Regards
    Hassan

    Hi Justin
    I got the following error
    Failed to send mail due to the following error:ORA-29279: SMTP permanent error: 550 5.7.1 Unable to relay for [email protected]
    Failed to send mail due to the following error:ORA-29279: SMTP permanent error: 550 5.7.1 Unable to relay for [email protected]
    Can you help me what should i do in this case?
    Best Regards
    Hassan Raza

Maybe you are looking for

  • Query Help (Kind of Analytical query)

    Hi, I have a requirement in which i want to get the following output. I have taken DEPT & EMP as the example tables. DEPT EMPLOYEES 10 1,2,3,4,5,6 20 7,8,9,10 30 11,12,13,14 Your help will be highly appreciated. Regards, Sunil.

  • Project file location...an issue?

    I used to be warned by a supervisor to place FCP project files on the internal drive because it was worse to run the project directly from the ext. drive, even the one with the same media. (So the project file is on the computer and the media on an e

  • Got my first kernel panic last night...

    Last night, I got my first kernel panic on my mbp c2d. I've had it for about 3 months. At the time, I was downloading a file and surfing the web. I clicked on a youtuble link and all of the sudden i got that grey screen where it says to restart. Righ

  • HOW TO GET A SALES COMMISSION (CASH BASIS) REPORT

    Hello Folks! How can I get a report of COMMISSION (CASH BASIS) using SAP B1? Thanks

  • No workflow displayed to start in T.Code ME23n

    Hi, In ME23n Transaction for EBP Purchase Orders, No workflows are displayed when I select 'Start Workflow'. I have checked the task and it is general task. Regards, Raj