How to use DDE package in form 10g module

Hi All,
I am using DDE.package in form 10g for uploading excels data in oracle database at windows platform but it is showing non-oracle exception.
Thanks

hi
mehwish............just do for attachment.......
u can also use something like this...
Execute send_mail;and also.
try something like this..
example:
begin
mahi.mail('email address','subject','message','attachment');
end;Edited by: Sarah on Apr 18, 2011 10:25 AM

Similar Messages

  • How to use LDAP with Oracle forms 10g on Oracle application server

    Hi,
    I need some help on this. I have developed oracle forms 10g on application server 9iAS. The client want to use the existing LDAP authentication to the software we wrote. I do not know how I could configure to use the existing LDAP authentication . If anyone know how would I use the existing LDAP on different server to use when they logon to our menu in 10g to validate the user. Do I need to add any varibales in formweb.cfg or any other method. Please help.
    Thanks
    Luksh

    I am not quite sure if this works out of the box. According to an Oracle FAQ:
    4.2 Can I use LDAP to authenticate Forms Services?
    Not directly. However, Oracle Login Server is able to authenticate against a LDAP directory and thus a Forms application can take advantage of this in a SSO environment. But you cannot use access control information stored in a LDAP directory with Forms.

  • How to import java package in form 10g

    hello
    i have make a java package but its not looking so far possible to include it in java import list, how i can import it in form 10 g

    hi,
    if classpath does not work you can try to add your jar file at this registry key :
    HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_DevSuiteHome\FORMS_BUILDER_CLASSPATH
    Engin.

  • How to use BLOB in Oracle Forms 10g?

    Hi
    I defined a column in a table with the type BLOB,
    then I used it at the form with a data block.
    Now how can I let the user to insert his photo in this column?
    If you don't know the answer please put any web links that may helps me

    Hi Omkar,
    Please check the following code.
    DECLARE
      repid REPORT_OBJECT;
      v_rep VARCHAR2(100);
      rep_status VARCHAR2(20);
      plid ParamList;
    BEGIN
      plid := Get_parameter_List('tmp');
      IF NOT Id_Null(plid) THEN
      Destroy_parameter_List( plid );
      END IF;
      plid := Create_parameter_List('tmp');
      add_parameter(plid,'p_parameter',text_parameter,to_char(:POLICY.POLICY_NO));
      Add_parameter(plid, 'PARAMFORM', TEXT_parameter, 'NO');
      repid := FIND_REPORT_OBJECT('POL_REP');
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
      v_rep := RUN_REPORT_OBJECT(repid,plid);
      rep_status := REPORT_OBJECT_STATUS(v_rep);
      WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
      LOOP
      rep_status := report_object_status(v_rep);
      END LOOP;
      WEB.SHOW_DOCUMENT('http://'||'LENOVO-428E9E41'||'8889'||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?
      '||'server=prod_report_server&P_parameter='||:POLICY.POLICY_NO||
      '&paramform=no');
    END;
    I am used to Start the Report sever   'Rwserver Server=prod_Report_Server Start'
    OracleAS Report Services
    Version :-   10.1.2.0.2
    Name    :-   prod_report_server
    Status  :-   Server is Shutting down
    Jobs in Queue  0
    Active Engines  0
    I got the Following Error when I trying to run the Report
    FRM-41211: Integration error:SSL failure running another product
    Thanks and Regards,
    Faziludeen

  • How to use stored package in form.

    hi
    i created the following package but now i want to use the following code in form
    how could i use?.
    create or replace package body mahi
    is
    -- Write a MIME header
    procedure write_mime_header (
    p_conn in out nocopy utl_smtp.connection
    , p_name in varchar2
    , p_value in varchar2
    is
    begin
    utl_smtp.write_data ( p_conn
    , p_name || ': ' || p_value || utl_tcp.crlf
    end;
    procedure mail (
    p_sender in varchar2
    , p_recipient in varchar2
    , p_subject in varchar2
    , p_message in varchar2
    is
    v_nls_charset VARCHAR2(50);
    /*LOB operation related varriables */
    v_src_loc BFILE := BFILENAME('BACKUP', 'Logon.jpg');
    l_buffer RAW(54);
    l_amount BINARY_INTEGER := 54;
    l_pos INTEGER := 1;
    l_blob BLOB := EMPTY_BLOB;
    l_blob_len INTEGER;
    v_amount INTEGER;
    /*UTL_SMTP related varriavles. */
    v_connection_handle UTL_SMTP.CONNECTION;
    v_from_email_address VARCHAR2(30) := [email protected]';
    v_to_email_address VARCHAR2(30) := '[email protected]';
    I have used stunnel to send mail using smtp.gmail.com
    To get stunnel see http://stunnel.org/.
    The ORIGINAL idea is here :
    http://monkeyonoracle.blogspot.com/2009/11/plsql-and-gmail-or-utlsmtp-with-ssl.html
    v_smtp_host VARCHAR2(30) := 'localhost.localdomain';
    v_subject VARCHAR2(30) := 'Your Test Mail';
    l_message VARCHAR2(200) := 'This is test mail using UTL_SMTP';
    /* This send_header procedure is written in the documentation */
    PROCEDURE send_header(pi_name IN VARCHAR2, pi_header IN VARCHAR2) AS
    BEGIN
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    pi_name || ': ' || pi_header || UTL_TCP.CRLF);
    END;
    BEGIN
    SELECT value
    INTO v_nls_charset
    FROM nls_database_parameters
    WHERE parameter = 'NLS_CHARACTERSET';
    /*Preparing the LOB from file for attachment. */
    DBMS_LOB.OPEN(v_src_loc, DBMS_LOB.LOB_READONLY); --Read the file
    DBMS_LOB.CREATETEMPORARY(l_blob, TRUE); --Create temporary LOB to store the file.
    v_amount := DBMS_LOB.GETLENGTH(v_src_loc); --Amount to store.
    DBMS_LOB.LOADFROMFILE(l_blob, v_src_loc, v_amount); -- Loading from file into temporary LOB
    l_blob_len := DBMS_LOB.getlength(l_blob);
    /*UTL_SMTP related coding. */
    v_connection_handle := UTL_SMTP.OPEN_CONNECTION(host => v_smtp_host,
    port => 1925);
    UTL_SMTP.EHLO(v_connection_handle, 'gmail.com');
    UTL_SMTP.COMMAND(v_connection_handle, 'auth login');
    UTL_SMTP.COMMAND(v_connection_handle,
    UTL_ENCODE.TEXT_ENCODE('[email protected]',
    v_nls_charset,
    1));
    UTL_SMTP.COMMAND(v_connection_handle,
    UTL_ENCODE.TEXT_ENCODE('xxxxx', v_nls_charset, 1));
    --UTL_SMTP.MAIL(v_connection_handle, v_from_email_address);
    --UTL_SMTP.RCPT(v_connection_handle, v_to_email_address);
    UTL_SMTP.COMMAND(v_connection_handle,
    'MAIL FROM: <'>');
    UTL_SMTP.COMMAND(v_connection_handle,
    'RCPT TO: <'>');
    UTL_SMTP.OPEN_DATA(v_connection_handle);
    send_header('From', '"Sender" <'>');
    send_header('To', '"Recipient" <'>');
    send_header('Subject', v_subject);
    --MIME header.
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'MIME-Version: 1.0' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Type: multipart/mixed; ' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    ' boundary= "' || 'BACKUP.SECBOUND' || '"' ||
    UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    -- Mail Body
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    '--' || 'BACKUP.SECBOUND' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Type: text/plain;' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    ' charset=US-ASCII' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, l_message || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    -- Mail Attachment
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    '--' || 'BACKUP.SECBOUND' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Type: application/octet-stream' ||
    UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Disposition: attachment; ' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    ' filename="' || 'Logon.jpg' || '"' || --My filename
    UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Transfer-Encoding: base64' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    /* Writing the BLOL in chunks */
    WHILE l_pos < l_blob_len LOOP
    DBMS_LOB.READ(l_blob, l_amount, l_pos, l_buffer);
    UTL_SMTP.write_raw_data(v_connection_handle,
    UTL_ENCODE.BASE64_ENCODE(l_buffer));
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    l_buffer := NULL;
    l_pos := l_pos + l_amount;
    END LOOP;
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    -- Close Email
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    '--' || 'BACKUP.SECBOUND' || '--' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    UTL_TCP.CRLF || '.' || UTL_TCP.CRLF);
    UTL_SMTP.CLOSE_DATA(v_connection_handle);
    UTL_SMTP.QUIT(v_connection_handle);
    DBMS_LOB.FREETEMPORARY(l_blob);
    DBMS_LOB.FILECLOSE(v_src_loc);
    EXCEPTION
    WHEN OTHERS THEN
    UTL_SMTP.QUIT(v_connection_handle);
    DBMS_LOB.FREETEMPORARY(l_blob);
    DBMS_LOB.FILECLOSE(v_src_loc);
    RAISE;
    END;
    end;
    sarah helped me to create the above package but i am not able to use in form
    i sent email to her but no reply.

    hi
    mehwish............just do for attachment.......
    u can also use something like this...
    Execute send_mail;and also.
    try something like this..
    example:
    begin
    mahi.mail('email address','subject','message','attachment');
    end;Edited by: Sarah on Apr 18, 2011 10:25 AM

  • How to used attached pll in form 10g

    I have install 10g form server & report server in redhat.and now I migrated my appl from win2k to redhat.
    I found a form which used attached plx, can't complited.
    Compiling WHEN-BUTTON-PRESSED trigger on ORG_UNIT_COST_BY_EMPLOYEE item in CONTROLS data block...
    No compilation errors.
    Compiling WHEN-BUTTON-PRESSED trigger on ORG_UNIT_MONTH_COST_BY_EMPLOYE item in CONTROLS data block...
    Compilation error on WHEN-BUTTON-PRESSED trigger on ORG_UNIT_MONTH_COST_BY_EMPLOYE item in CONTROLS data block:
    PL/SQL ERROR 201 at line 27, column 3
    identifier 'HR_SYS_F.CALL_DATE_SET' must be declared
    PL/SQL ERROR 0 at line 27, column 3
    Statement ignored
    Compiling WHEN-BUTTON-PRESSED trigger on ORG_JOB_ASSIGN_BY_UNIT item in CONTROLS data block...
    No compilation errors.
    Compiling WHEN-BUTTON-PRESSED trigger on ORG_JOB_MONTH_BY_UNIT item in CONTROLS data block...
    Compilation error on WHEN-BUTTON-PRESSED trigger on ORG_JOB_MONTH_BY_UNIT item in CONTROLS data block:
    PL/SQL ERROR 201 at line 11, column 3
    identifier 'HR_SYS_F.CALL_DATE_SET' must be declared
    PL/SQL ERROR 0 at line 11, column 3
    Statement ignored
    I complited attanched HR_SYS_F.pll to HR_SYS_F.plx at FORMS_PATH.
    I set FORMS_PATH in .bash_profile, frmcmp_batch.sh,default.env.But all no to work.
    It still error of : can't find the attached pll: HR_SYS_F.CALL_DATE_SET.
    but this form ,I can complited it normal in win.
    how can I skip this error?

    Have you double-checked the one Form to ensure the Library is still attached? Also, when the Library was attached - was it attached in such a way that it recorded the path to the library (typically, when you attach a library - Forms will ask if you want to record the path (Y/N))?
    Hope this helps.
    Craig...
    Edited by: CraigB on Apr 2, 2010 3:49 PM
    I forgot to add, sometimes, just simply deleting the attached library and re-attaching it will fix the issue.

  • Using DDE package in report builder 10g

    Hi,
    I use this code in form 10g to edit a ms word and its work properly:
    DECLARE
    APPID PLS_INTEGER;
    CONVID PLS_INTEGER;
    DOCID PLS_INTEGER;
    SYS_DATE CHAR(8);
    BEGIN
    SELECT TO_CHAR(SYSDATE,'MM/DD/YY') INTO SYS_DATE FROM DUAL;
    APPID := DDE.APP_BEGIN('C:\Program Files\Microsoft Office\Office12\WINWORD.EXE',
    DDE.APP_MODE_MINIMIZED);
    CONVID := DDE.INITIATE('WINWORD','SYSTEM');
    DDE.EXECUTE(CONVID,'[FileOpen "c:\bin_test\exp.dotx"]', 10000);
    DOCID := DDE.INITIATE('WINWORD','c:\bin_test\exp.dotx');
    DDE.POKE(DOCID,'BOOKMARK1', SYS_DATE,DDE.CF_TEXT,10000);
    DDE.EXECUTE(DOCID,'[FileSaveAs "c:\bin_test\output.doc"]', 10000);
    DDE.TERMINATE(CONVID);
    END;
    when I put this code in the afterreport trigger in report builder 10g and call the report from form;
    a blank document word is opened withoud any changes as well as the report result in pdf format.
    what can i do to let this code work in report builder??
    best regards,
    Ahmad

    I use this code in form 10g to edit a ms word and its work properlyI very much doubt that. Calling DDE from Forms this way would result in trying to open Word on the <b>server</b>.
    the report result in pdf formatThe report result format is determined by how it is called. Looks like you call it with desformat=pdf.

  • How can i use jpg extension with forms 10g and webutil

    I have a form with webutil and i want to open imege jpg extension but thier are Bmp but my
    image jpg and image item has no jpg extension .
    How can i use jpg extension with forms 10g and webutil ?

    You can use the JFIF image format for jpg files.

  • How to call Reports in oracle forms 10g

    Dear All,
    How to call Reports in oracle forms 10g.
    I am using Oracle Forms 10g Reports 10g and Database 10 and and Operating system Windows XP.
    Please give me the Solution.
    Thanks and Regards,
    Faziludeen

    Hi Omkar,
    Please check the following code.
    DECLARE
      repid REPORT_OBJECT;
      v_rep VARCHAR2(100);
      rep_status VARCHAR2(20);
      plid ParamList;
    BEGIN
      plid := Get_parameter_List('tmp');
      IF NOT Id_Null(plid) THEN
      Destroy_parameter_List( plid );
      END IF;
      plid := Create_parameter_List('tmp');
      add_parameter(plid,'p_parameter',text_parameter,to_char(:POLICY.POLICY_NO));
      Add_parameter(plid, 'PARAMFORM', TEXT_parameter, 'NO');
      repid := FIND_REPORT_OBJECT('POL_REP');
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
      v_rep := RUN_REPORT_OBJECT(repid,plid);
      rep_status := REPORT_OBJECT_STATUS(v_rep);
      WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
      LOOP
      rep_status := report_object_status(v_rep);
      END LOOP;
      WEB.SHOW_DOCUMENT('http://'||'LENOVO-428E9E41'||'8889'||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?
      '||'server=prod_report_server&P_parameter='||:POLICY.POLICY_NO||
      '&paramform=no');
    END;
    I am used to Start the Report sever   'Rwserver Server=prod_Report_Server Start'
    OracleAS Report Services
    Version :-   10.1.2.0.2
    Name    :-   prod_report_server
    Status  :-   Server is Shutting down
    Jobs in Queue  0
    Active Engines  0
    I got the Following Error when I trying to run the Report
    FRM-41211: Integration error:SSL failure running another product
    Thanks and Regards,
    Faziludeen

  • How to enable tracing in Oracle Forms 10g

    Hi Friends,
    I am interested to trace my running oracle forms application. When I googled it, I got below useful information. But theory and practical has mismatch somewhere, I am not able to create the trace file(s).
    **************************** Some Notes ****************************************************
    How to Enable Tracing in Oracle Forms 10g
    Enable Tracing from the url by adding the following to your forms url:
    &record=forms&tracegroup=0-98,100-199 (note: item 99 causes some issues, so we are skipping it here. See the Oracle documenation for a description of what is being traced for each item.)
    for example
    [http://machine:port/forms/frmservlet?config=myConfig&record=forms&tracegroup=0-98,100-199]
    You will get a trace file in the following location:
    %ORACLE_HOME%\forms\trace\forms_xxx.trc where xxx is the forms session ID.
    Open dos window and do the following:
    set ORACLE_HOME=
    set PATH=%ORACLE_HOME%\jdk\bin;%PATH%
    set CLASSPATH=%ORACLE_HOME%\jdbc\lib\classes12.zip;%ORACLE_HOME%\forms\java\frmxlate.jar
    java oracle.forms.diagnostics.Xlate datafile=%ORACLE_HOME%\forms\trace\forms_xxx.trc outputfile=%ORACLE_HOME%\forms\trace\html_xxx.html outputclass=WriteOutHTML
    you will get a file html_xxx.html in your %ORACLE_HOME%\forms\trace directory.
    I need information beyond this to make this practically successful.
    Thanks in advance,
    Amol Naik

    Hello,
    <p>Did you read this paper ?</p>
    Francois

  • How to run a report in form 10g

    How to run a report in form 10g;

    RUN_REPORT_OBJECT - check the on line help and there is a great paper on otn.oracle.com/products/forms and click on 9i papers (it will be relevant for 10g as well)>
    Regards
    Grant Ronald
    Forms Product Management

  • How to use css in oracle forms

    Hello,       I am using oracle forms 11g with weblogic server 10.3.5 at windows 7.I have to use CSS in oracle forms.i have tried to search it but no profit.please some one else tell me that how can use css in oracle forms. Thnak You regards aaditya

    Hi
    As Francois pointed out Oracle forms has nothing to do with html based technology. The way you can get the equivalent effect of creating consistancy in the way your objects are displayed is by creating a set of items you want and alter their apperance and behaviour and place them into object libraries (one library should do the trick).  From there you subclass all of you forms items off these libraries.
    Regards
    Quintin

  • How to invoke ole conatainer in forms 10g

    how to invoke ole conatainer in forms 10g
    is there any optional area for ole container

    you can chaech webutil demo on oracle web site
    Or serch google for Webutil demo

  • How to use utl_ftp package to transfer files from one system to another

    Hi all,
    How to use utl_ftp package to transfer files from one system to another using plsql procedure .
    I failed to find the appropriate document ,kindly help me .
    Thanks,
    P Prakash

    prakash wrote:
    I am sorry tell you, this blog is not enough to for me.It's not a blog, it's Chris' website where you download the package from. Once you download the package and unrar it, then the package spec gives instructions (and I think there's instructions on how to install it too).
    Kindly let me know if there is any oracle documentation for this .It's not an Oracle created package, it was created by Chris. It's based around the UTL_TCP package if you really want to get into the nitty gritty of how it works, but I don't think you do.

  • How to use (dll , ocx) in forms 9i or forms 10g ?

    Can i use the (dll or ocx) file in forms 10g, if not what's the other replacement for these files in javabean.

    Mohammed,
    as long as these can operate on teh server you should be able to use them as before. If they are for desktop integration and operate with the user client, then you can't use them.
    WebUtil has a C-API that allows you to access c classes on teh client. For the OCX it depends what it is doing. Some solutions already exist as beans, other still need to be custom developments.
    Frank

Maybe you are looking for

  • Making Tooltips appear on pictures that aren't links...

    I own a doggie daycare and am designing my own website on IWeb 09. I have lots of pictures of my client's dogs playing throughout my site and thought it would be neat if when my clients put their mouse over a particular picture I could have something

  • Which Thermalright chipset cooler for X58 Pro?

    I'm looking to replace the terrible stock IOH heatsink for a Thermalright one but I don't want to impede the placement of graphics cards.  Should I go with the Thermalright HR-05 IFX or the HR-05-SLI IFX?  Does anyone have any experience with this? 

  • Is this a bug or did I craft this incorrectly?

    Is this a bug? It seems as if when I have installed adobe with IE7 it renders the text in this file in such a way that it is truncated? Image here -- click on me --- If it is not a bug can someone educate me how this should be fixed? and also why it

  • Use of iTunes Mandatory for iPods?

    A relative is thinking about buying an iPod. Do you have to use iTunes to load music onto the iPod? Can you use standard Windows Explorer (not Internet Explorer) to drag MP3 files onto the iPod like it was an external disk / memory stick? Thanks.

  • Captivate 8 advanced actions not saving

    I just upgraded to Captivate 8 today and was attempting to create a conditional advanced action.  However when I save the action, it doesn't save so the action remains blank.  The advanced action was on click, image disappears, and user jumps to a di