Oracle Forms 4.5 API

Does anybody know if there is an API available for Oracle Forms
4.5 that allows you to open FMB files and read the contents
(e.g. the blocks, items defined and the properties)?
If so, how do I get hold of it and any appropriate
documentation?
Please reply via email to: [email protected]
Thanks
Bruce
null

U can open fmb using an editor like msword. It will have lots of
junk character but will also have all trigger,select statements
etc in text.
Bruce Crosgrove (guest) wrote:
: Does anybody know if there is an API available for Oracle
Forms
: 4.5 that allows you to open FMB files and read the contents
: (e.g. the blocks, items defined and the properties)?
: If so, how do I get hold of it and any appropriate
: documentation?
: Please reply via email to: [email protected]
: Thanks
: Bruce
null

Similar Messages

  • Oracle Forms C/C++  API

    hi all,
    from where I can get Oracle Forms(6i/9i/10g) C/C++ API reference
    With regards
    Satheesh Kumar

    For C API, you can download Oracle technical white paper
    "Using the Oracle Forms Application Programming Interface (API)"
    http://www.oracle.com/technology//products/forms/pdf/274326.pdf
    The tree examples in the Form Builder online help contained errors.
    The programs have been corrected and presented in white paper.
    Note that you can also use JDAPI (Java Development API) for Oracle Forms 6i/9i/10g.
    Regards,
    Zlatko Sirotic

  • Is there an Oracle forms services trace java api

    Hi All,
    Is there a java api to use Oracle Trace on a running oracle form. I see that when I run the Oracle trace here it gets the correct item names. I want to be able to custom make my own trace files useing the oracle trace mechanism as a base. Is there a java api to develop our own forms trace?
    Thanks,
    Mia

    Erik wrote:
    Hi.
    Jdeveloper 11.1.1.2
    Is there a way in ADF to populate extra read-only text-columns in an af:table (based on a ViewObject) as was possible in Oracle Forms with a Post-Query-Trigger:
    Post-Query
    Perform an action after fetching a record, such as looking up values in other tables based on a value in the current record.
    Fires once for each record fetched into the block.
    Best regards
    ErikHi,
    http://docs.oracle.com/cd/E15523_01/web.1111/b31974/appendix_formstriggers.htm#sm0350

  • Oracle.forms api

    I need the oracle.forms api for javabeans development, but i am unable to find it.
    I have the JDAPI api, thats not what i want.
    ( I have searched oracle.forms api & documentation on google but i am unable to find them.
    the link : http://www.oracle.com/technology/documentation/oracle9i_arch_901.html
    contains a lot of documentation files, but i am not sure these are the ones that i need.
    some of the files there are over 200 mb. before dowloading such heavy files, i want to be sure that they are the ones i need!!!)
    I want to use the following packages / classes :-
    oracle.forms.handler.IHandler
    oracle.forms.ui.*
    oracle.forms.properties.ID
    I want to find out more about the above mentioned packages, and i thought that javadocs / api would be the most comprehensive help that i can get.
    I have downloaded a few javabeans that were close to my requirement, and was going through the java source codes, thats where i encountered these classes / packages.
    I amd using forms 9i. and Jdeveloper 9i

    You should ask the experts in the forms forum (Forms
    Timo

  • Where's the Oracle Forms Java API documentation for 11g?

    Hi,
    Can anyone point me in the direction of the Oracle Forms Java API documentation?
    The only thing I can find is this: http://www.oratransplant.nl/1012jdapiDoc/oracle/forms/jdapi/JdapiModule.html but this seems to be for 10.1.2 and it doesn’t correspond to the version I’m using (11.1.1.3).
    Help appreciated,
    Donal.

    i couldn't find the api either however if you implement the class you will simply get compiler errors explaining what you left out.

  • Integrate XMLP APIs with Oracle Forms

    Hi,
    I want to integrate XML Publisher's APIs with Oracle Forms. I have done the following to achieve this.
    1. Built a Java class to
    a.Handle the Data extraction from Database using the data template
    b.Convert the RTF to XSL-FO format
    c.Render the report by merging the xsl and the data xml files
    2.Created a jar file of the java class file
    3.Imported these classes into Oracle Form, using Jimporter
    All works fine, when I execute the form in a client-server architecture.
    But am getting the 105101 non-ORACLE exception if I run the form, when the form is deployed in an Application Server. I have set the classpath to all the xmlp APIs (xdocore.jar, xmlparserv2-904.jar, and the jar of my java class) in the .env file and also in the system's classpath.
    Could someone please clarify what else has to be done to set this right. Also, as I am relatively new to Java, can anyone clarify, the java class what I have used should be a servlet in case my Form is accessed via an Application Server or just the java class would serve the purpose.
    Thanks,
    Suresh

    Hi,
    I was able to resolve this, after I went through few threads in the same forum. I set the classpath to i18nAPI_v3.jar, collections.jar, versioninfo.jar files in the .env file apart from the xdocore.jar and xmlparserv2-904.jar.
    Now am able to execute the form and everything works fine!!
    Thanks,
    Suresh

  • API Doc for oracle.forms.ui and oracle.ewt available (Forms 9.0 PJC)?

    Hi there,
    where can I get the Java Docs for the oracle.forms.ui and oracle.ewt Packages for implementing Forms 9.0 PJC?
    Where can I get more docu about building PJCs? Found already some samples and
    Thanks, Markus

    At this time, the JavaDoc for these classes is not available.
    As a general rule you will find that the Methods and properties of the underlying oracle.ewt.* classes closely mirror the equivilent java.awt.* classes, so you should be able to gain a bit more information that way.
    And yes setDropDownVisible does pop the combo list down, but it's a protected method which might be why you're having problems with it?
    - Assuming you are having a problem with it...

  • How to print BIP reports from Oracle Forms?

    Hi all,
    I have a question in regards to printing BIP reports from Oracle Forms... We are aiming for a server installation of BIP with integration to Oracle Forms using SSO to handle security. We use Forms built-in web.show_document to render and view the report in PDF/Excel etc... We would like to by pass the viewing and print some of these reports directly to the printer.
    Any idea/suggestions how we can go about this?
    Thanks in advance for your time.
    Yahya

    Yahya,
    via HTTP it's not possible to send a report directly to the printer. You had to go via the Scheduler, which is able to do that. With the WebService API you can call a report with the Scheduler and Execute Immediate.
    Regards
    Rainer

  • How to create and modify an XML file from an Oracle Form

    I would like to build an Oracle Form to maintain a small XML file in the file system (i.e. Not in Oracle database but in the operating system).
    I would like the Form to display existing values from the XML file and the user can update and save content back to the XML file.
    Can any one tell me how this can be done? Thanks.

    Does Forms 9i provide any XML Parser Functions?
    Can I insert the XML file into a table column by inserting XML using the XSU Front End rather than using TEXT_IO to maintain the XML file directly?
    Can I use XSU PL/SQL API in Forms to retrieve and modify XML values?
    Any help is appreciated.

  • Error at Creat asinstance When installing oracle forms 11g on linux

    Hello all experts!!!,
    i am installing oracle weblogic forms 11g on linux platform and i am getting error at Create as instance step.
    components selected :--
    forms ,reports,form builder report builder enterprise manager
    OS Platform :-- Oracle Enterprise Linux 5.3 and also same error on Fedora Core 13
    i have also Oracle Database 11g R2 installed on same machine.
    the log says :---
    [2010-09-13T12:55:38.831+05:30] [as] [ERROR] [] [oracle.as.provisioning] [tid: 55] [ecid: 0000Ig9xHTOFw000jzwkno1CZRTb00000i,0] [[
    oracle.as.config.ProvisionException: Unable to validate NonJ2EEManagement Application deployment on admin server.
    at oracle.as.config.impl.RuntimeServiceConnection.validateNonj2eeApplication(RuntimeServiceConnection.java:678)
    at oracle.as.config.impl.RuntimeServiceConnection.deployIfNecessary(RuntimeServiceConnection.java:192)
    at oracle.as.config.impl.OracleASInstanceImpl.create(OracleASInstanceImpl.java:92)
    at oracle.as.provisioning.fmwadmin.ASInstanceProv._createInstance(ASInstanceProv.java:249)
    at oracle.as.provisioning.fmwadmin.ASInstanceProv.createInstance(ASInstanceProv.java:166)
    at oracle.as.provisioning.fmwadmin.ASInstanceProv.createInstanceAndComponents(ASInstanceProv.java:116)
    at oracle.as.provisioning.engine.WorkFlowExecutor._createASInstancesAndComponents(WorkFlowExecutor.java:525)
    at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:441)
    at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)
    at oracle.as.install.classic.ca.standard.InstanceProvisioningTask.doExecute(InstanceProvisioningTask.java:215)
    at oracle.as.install.classic.ca.standard.StandaloneTool.execute(StandaloneTool.java:50)
    at oracle.as.install.classic.ca.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
    at oracle.as.install.classic.ca.ClassicConfigMain.doExecute(ClassicConfigMain.java:124)
    at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:335)
    at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:87)
    at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:104)
    at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
    at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:63)
    at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:158)
    at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
    at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:83)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: oracle.as.config.utl.DeployerException: NonJ2EEManagement Applicationdeployment failed.
    at oracle.as.config.utl.Deployer.deployApplication(Deployer.java:95)
    at oracle.as.config.utl.Deployer.deploy(Deployer.java:52)
    at oracle.as.config.impl.RuntimeServiceConnection.deployNonj2eeApplication(RuntimeServiceConnection.java:219)
    at oracle.as.config.impl.RuntimeServiceConnection.validateNonj2eeApplication(RuntimeServiceConnection.java:670)
    ... 21 more
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.as.config.utl.Deployer.deployApplication(Deployer.java:93)
    ... 24 more
    Caused by: weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerException: Task 0 failed: [Deployer:149026]deploy application NonJ2EEManagement [Version=11.1.1] on AdminServer.
    Target state: deploy failed on Server AdminServer
    java.lang.NoSuchMethodError: getDeploymentOperation
    at weblogic.Deployer.run(Deployer.java:72)
    ... 29 more
    Caused by: weblogic.deploy.api.tools.deployer.DeployerException: Task 0 failed: [Deployer:149026]deploy application NonJ2EEManagement [Version=11.1.1] on AdminServer.
    Target state: deploy failed on Server AdminServer
    java.lang.NoSuchMethodError: getDeploymentOperation
    at weblogic.deploy.api.tools.deployer.Jsr88Operation.report(Jsr88Operation.java:541)
    at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:140)
    at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
    at weblogic.utils.compiler.Tool.run(Tool.java:158)
    at weblogic.utils.compiler.Tool.run(Tool.java:115)
    at weblogic.Deployer.run(Deployer.java:70)
    ... 29 more
    [2010-09-13T12:55:38.838+05:30] [as] [NOTIFICATION] [] [oracle.as.provisioning] [tid: 55] [ecid: 0000Ig9xHTOFw000jzwkno1CZRTb00000i,0] Exit code from OPMNAdmin : 0
    [2010-09-13T12:55:38.844+05:30] [as] [ERROR] [] [oracle.as.provisioning] [tid: 55] [ecid: 0000Ig9xHTOFw000jzwkno1CZRTb00000i,0] [[
    oracle.as.provisioning.engine.CfgWorkflowException
    at oracle.as.provisioning.engine.Engine.processEventResponse(Engine.java:596)
    at oracle.as.provisioning.fmwadmin.ASInstanceProv.createInstance(ASInstanceProv.java:178)
    at oracle.as.provisioning.fmwadmin.ASInstanceProv.createInstanceAndComponents(ASInstanceProv.java:116)
    at oracle.as.provisioning.engine.WorkFlowExecutor._createASInstancesAndComponents(WorkFlowExecutor.java:525)
    at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:441)
    at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)
    at oracle.as.install.classic.ca.standard.InstanceProvisioningTask.doExecute(InstanceProvisioningTask.java:215)
    at oracle.as.install.classic.ca.standard.StandaloneTool.execute(StandaloneTool.java:50)
    at oracle.as.install.classic.ca.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
    at oracle.as.install.classic.ca.ClassicConfigMain.doExecute(ClassicConfigMain.java:124)
    at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:335)
    at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:87)
    at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:104)
    at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
    at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:63)
    at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:158)
    at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
    at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:83)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: oracle.as.provisioning.util.ConfigException:
    Error creating ASInstance asinst_1.
    Cause:
    An internal operation has failed: Unable to validate NonJ2EEManagement Application deployment on admin server.
    Action:
    See logs for more details.
    at oracle.as.provisioning.util.ConfigException.createConfigException(ConfigException.java:123)
    at oracle.as.provisioning.fmwadmin.ASInstanceProv._createInstance(ASInstanceProv.java:317)
    at oracle.as.provisioning.fmwadmin.ASInstanceProv.createInstance(ASInstanceProv.java:166)
    ... 17 more
    Caused by: oracle.as.config.ProvisionException: Unable to validate NonJ2EEManagement Application deployment on admin server.
    at oracle.as.config.impl.RuntimeServiceConnection.validateNonj2eeApplication(RuntimeServiceConnection.java:678)
    at oracle.as.config.impl.RuntimeServiceConnection.deployIfNecessary(RuntimeServiceConnection.java:192)
    at oracle.as.config.impl.OracleASInstanceImpl.create(OracleASInstanceImpl.java:92)
    at oracle.as.provisioning.fmwadmin.ASInstanceProv._createInstance(ASInstanceProv.java:249)
    ... 18 more
    Caused by: oracle.as.config.utl.DeployerException: NonJ2EEManagement Applicationdeployment failed.
    at oracle.as.config.utl.Deployer.deployApplication(Deployer.java:95)
    at oracle.as.config.utl.Deployer.deploy(Deployer.java:52)
    at oracle.as.config.impl.RuntimeServiceConnection.deployNonj2eeApplication(RuntimeServiceConnection.java:219)
    at oracle.as.config.impl.RuntimeServiceConnection.validateNonj2eeApplication(RuntimeServiceConnection.java:670)
    ... 21 more
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.as.config.utl.Deployer.deployApplication(Deployer.java:93)
    ... 24 more
    Caused by: weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerException: Task 0 failed: [Deployer:149026]deploy application NonJ2EEManagement [Version=11.1.1] on AdminServer.
    Target state: deploy failed on Server AdminServer
    java.lang.NoSuchMethodError: getDeploymentOperation
    at weblogic.Deployer.run(Deployer.java:72)
    ... 29 more
    Caused by: weblogic.deploy.api.tools.deployer.DeployerException: Task 0 failed: [Deployer:149026]deploy application NonJ2EEManagement [Version=11.1.1] on AdminServer.
    Target state: deploy failed on Server AdminServer
    java.lang.NoSuchMethodError: getDeploymentOperation
    at weblogic.deploy.api.tools.deployer.Jsr88Operation.report(Jsr88Operation.java:541)
    at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:140)
    at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
    at weblogic.utils.compiler.Tool.run(Tool.java:158)
    at weblogic.utils.compiler.Tool.run(Tool.java:115)
    at weblogic.Deployer.run(Deployer.java:70)
    ... 29 more
    weblogic server installation is perfect no errors at all.
    i also got the errors i got during installation ( im_emagent.mk and while running command gcc) . but thanks to OTN Forums i had managed to find out a fix. but on this error only solution i got is
    TRY WINDOWS . but what about linux then? is there any solution on this error?
    i am not much used to front-end ( java i mean). i am Oracle DBA Actually n want to install n try Weblogic
    Kindly Help...

    You can just copy the relevant parts (the ones marked with error). You can also look at the timing
    when it happened the reports environment did not start.
    From what i remember this could be a memory issue, standard every managed server (WLS_FORMS and WLS_REPORTS) instance
    is configured with 1024m bytes of memory.
    What we did is first install a forms instance and after that a reports instance. After the forms installation we adjusted the
    memory parameters in setWLSEnv (<middleware-home>/user_projects/domains/<domain-name>/bin). Look in this file
    for references to WLS_FORMS (something similar to: if [ "${SERVER_NAME}" = "WLS_FORMS" ] ; then).
    Another thing which springs to my mind is, which products did you select. If you just want Forms and Reports
    you can select just the following:
    - Oracle Forms
    - Oracle Reports
    - Developer Tools aan.
    - Management Components
    - Oracle HTTP Server
    and deselect the other options:
    - Oracle Portal
    - Oracle Discoverer
    - Oracle WebCache
    - Clustered (if you are not using clustering)
    We also had to fix the following files (i do not think that you have to do this since your Forms did not show any problems):
    - (On Windows) Copy the file msvcr71.dll (FMW/windows/extra) to WINDOWS/system32.
    - Copy the file mod_wl_ohs.so (FMW/<operating-system>/extra) to <middleware-home>/as_1/ohs/modules.

  • Problem with Image IO jre on Oracle Form

    I'm using PJC to run my Text Editor program from Oracle Form. The Editor has an Image drag & drop option and I have to upgrade the jre with Image I/O API for this functionality. To upgrade jre the tool 'jai_imageio_1_0_01-lib-windows-i586-jre' needs to be installed. When I upgrade jre with this tool and run my program independently from Oracle Form, it runs well but when I run this right there from Oracle Form it doesn't run and exception is thrown on javax.imageio and other packages that are part of that tool even though the Oracle Developer's jdk is upgraded with this tool. Could anyone help me resolve this problem?

    Hi,
    This is a JDeveloper help forum, the Formsforum can be found at Forms Now you might think that Forms developers don't understand Java well enough, they do however understand teh Forms context and this is important to answr the question.
    a) Which Java version does your ben require?
    b) Are you using JInitiator or JavaPlugin (Jinitiator only supports Java 1.3)
    c) Is your PJC signed? Note that running an app stand alone as a Java app does not require special grants. Running it within a JavaApplet - as Forms is - does execute teh bean in a security sandbox, for which reasons the jar file must be signed and the public key be available in the Forms certdb.txt file (assuming Jinitiator)
    d) An exception stack trace gives more information than "Oracle Form it doesn't run and exception is thrown on javax.imageio and other packages", which is meanlingless to me and others. Teh stack trace canbe copied from teh JInitiator console
    I recommend resending this question to the Forms forum
    Frank

  • Java swing/visual components in an Oracle Form

    Hello,
    Has someone used visual javabeans embedded in Oracle Forms ?
    is there a special api or componente to use?
    I want to embed a jclass javabean in an Oracle Form (oracle forms client)
    any help will be welcome, thanks

    There are examples of white papers on OTN which show how you can integrate Java Beans into the Forms UI.
    You may have some success with Swing but forms is based on AWT/EWT of which there was only and old (and not
    very good) Swing version.
    As I said - check out the white papers and you can try the demos which are on the Sample Code page.
    Regards
    Grant Ronald
    Forms Product Management

  • Calling Web Service passing xml from Oracle Forms

    Hello,
    I need to call a .net web service from Oracle Forms that passes in xml data and returns xml data.
    I have seen several examples of how to create a wrapper in jdev and then to import the code
    into forms. I just have not seen any examples that are passing parmameters especially not xml
    as a parameter and that have an active wsdl that I can see how it relates to the code created.
    I have a wrapper but cannot figure out where and what notation to use to include passing in
    an xml object.
    Does anyone have an example passing in xml where the wsdl is still available to see?'
    Forms version 10.1.2.0.2. Jdev 10.1.3.4
    Thanks,
    Linda
    Edited by: lboyce on Jan 5, 2009 2:30 PM

    Also here you have several options...
    1. you can make a PJC (bean) which include a webservice stub generated with axis (you can make a stub and also test a webservice with this tool: www.soapui.org)..
    2. you can make a database webservice with JPublisher and then just call a pl/sql wrapper for this webservice
    4. you can call a webservice with java api (HttpsURLConnection, HttpURLConnection or with apache HTTPClient api) from your PJC for example:
    the code below is used as java stored procedure to call a .net webservice on https
    ====================================
    public static int getPStopnja(String polica, String reg_oznaka,
    String ime_osiguranika,
    String naziv_osiguranika,
    String leasing,
    String[] doc) {
    String l_polica="";
    String l_reg_oznaka="";
    String l_ime_osiguranika="";
    String l_naziv_osiguranika="";
    String l_leasing ="";
    URL url = null;
    HttpsURLConnection conn = null;
    BufferedReader br = null;
    String lineIn = null;
    StringBuffer sb = new StringBuffer();
    OutputStream os = null;
    int rc = 0;
    //kontrole
    l_polica = polica==null ? "":polica;
    l_reg_oznaka = reg_oznaka==null ? "": reg_oznaka;
    l_ime_osiguranika = ime_osiguranika==null ? "": ime_osiguranika;
    l_naziv_osiguranika = naziv_osiguranika==null ? "": naziv_osiguranika;
    l_leasing = leasing==null ? "": leasing;
    String body = "&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;";
    body += "&lt;soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:web=\"https://services.huo.hr/web_ao/\"&gt;";
    body += "&lt;soapenv:Header/&gt;";
    body += "&lt;soapenv:Body&gt;";
    body += "&lt;web:get_pstupanj&gt;";
    body += "&lt;web:param_in&gt;";
    body += "&lt;web:polica&gt;"+l_polica+"&lt;/web:polica&gt;";
    body += "&lt;web:reg_oznaka&gt;"+l_reg_oznaka+"&lt;/web:reg_oznaka&gt;";
    body += "&lt;web:ime_osiguranika&gt;"+l_ime_osiguranika+"&lt;/web:ime_osiguranika&gt;";
    body += "&lt;web:naziv_osiguranika&gt;"+l_naziv_osiguranika+"&lt;/web:naziv_osiguranika&gt;";
    body += "&lt;web:leasing&gt;"+l_leasing+"&lt;/web:leasing&gt;";
    body += "&lt;/web:param_in&gt;";
    body += "&lt;/web:get_pstupanj&gt;";
    body += "&lt;/soapenv:Body&gt;";
    body += "&lt;/soapenv:Envelope&gt;";
    SSLContext sslContext = null;
    try {
    sslContext = SSLContext.getInstance("TLS");
    X509TrustManager[] xtmArray = new X509TrustManager[|http://forums.oracle.com/forums/] { xtm };
    sslContext.init(null, xtmArray, new java.security.SecureRandom());
    } catch (GeneralSecurityException gse) {
    doc[0] = gse.toString();
    return -1;
    if (sslContext != null) {
    conn.setDefaultSSLSocketFactory(sslContext.getSocketFactory());
    try {
    conn.setDefaultHostnameVerifier(hnv);
    } catch (Exception ex) {
    doc[0] = ex.toString();
    return -1;
    try {
    URL st = new URL("https://services.huo.hr/web_ao/web_ao.asmx");
    conn = (HttpsURLConnection)st.openConnection();
    conn.setRequestMethod("POST");
    conn.setRequestProperty("Host", "services.huo.hr");
    conn.setRequestProperty("Content-Length", "" + body.length());
    conn.setRequestProperty("SOAPAction",
    "\"https://services.huo.hr/web_ao/get_pstupanj\"");
    conn.setRequestProperty("Content-Type", "text/xml;charset=UTF-8");
    conn.setDoOutput(true);
    OutputStreamWriter wr =
    new OutputStreamWriter(conn.getOutputStream());
    wr.write(body);
    wr.flush();
    BufferedReader in =
    new BufferedReader(new InputStreamReader(conn.getInputStream()));
    String inputLine;
    while ((inputLine = in.readLine()) != null) {
    sb.append(new String(inputLine.getBytes(),"UTF-8"));
    in.close();
    //System.out.println(new String(sb.toString().getBytes(),"ISO8559_2"));
    doc[0] = sb.toString();
    return 0;
    } catch (Exception e) {
    doc[0] = e.toString() + " ===&gt; " + body + " ==&gt;length= " + body.length();
    return -1;
    ====================================
    best regards
    Edited by: Peterv6i on Jan 6, 2009 8:34 AM
    Edited by: Peterv6i on Jan 6, 2009 8:40 AM

  • How to Use Com ports on oracle forms

    Hai,
    how we can use com port to communicate to the device like Pole Display(output device) or fixed scaneer (input device) having serial port(Input device) in oracle forms.
    Thanks & regards

    For web forms you will probably need to create a PJC and/or use webutil and make calls to the device's API.

  • Sending E-mail Through Oracle Forms

    Hi all
    what i want is as the following:
    1- i would like to convert the report to the PDF file internally using code.
    2- open the outlook.
    3- attcah the PDF automatically to the e-mail.
    4- finally sending the e-mail though outlook
    could i do that in Oracle forms 6i if i could do that can anyone instruct me to do it step by step

    Oh...it's now called ["My Oracle Support"|https://metalink.oracle.com/] .
    There's a note on "My Oracle Support" on this item.
    This is the note:
    Subject:      OLE AUTOMATION: Example Sending a Mail From Forms to Outlook
           Doc ID:      119828.1      Type:      BULLETIN
           Modified Date :      02-SEP-2008      Status:      PUBLISHED
    PURPOSE
    This document contains a sample code how to send an e-mail from Forms to Outlook
    (97-2000). 
    SCOPE & APPLICATION
    It can be used in addition of the whitepaper "Cracking Outlook!", which explains
    the object model of Outlook in detail.
    (Have a look in the Technical Libaries Folder Forms Whitepaper, their you can
    find it)
    OLE: Forms to Outlook
    Object Model
    "Cracking outlook!" explains the Object Model, you can find additional
    information in the Visual Basic Help of Outlook, which must be installed from
    your Office CD-Rom.  Once installed, you can access the help
    by choosing Tools->Macro->Visual Basic Editor and then go to the Help or
    Object Browser (view -> Object Browser)
    Now you can retrieve the Objects, their Methods and Properties. 
    Eg: the 'Application' Object has the Method 'CreateItem'.
    Note this information is also available in MSDN library or if you require more
    information on this Microsoft has to be contacted.
    OLE2, CLIENT_OLE2 Package
    Once you know the Objects, Methods and Properties you can access them with the
    OLE2 package.  This package provides a PL/SQL API for creating, manipulating,
    and accessing attributes of OLE2 automation objects.  When using OLE2 with
    WebForms every call will be executed on the midtier and not on the client. 
    So alternatively, the CLIENT_OLE2 package can be used, that is delivered by
    Webutil, to execute the OLE code on the client.
    Examples
    Once you know the Outlook Object model and you know the functions of the OLE2
    or CLIENT_OLE2 package you can write your own OLE2/CLIENT_OLE2 code to send a
    mail via Outlook.
    Here below are 2 different ways of sending an email using Outlook. 
    Sample 1:
    OLE2 sample: Here a MailItem is created, then the Recepient is explicitely
    added and resolved.  The mailItem is saved before being sent.
    Declare
    /*declaration of the Outlook Object Variables*/
    application ole2.OBJ_TYPE;     
    hMailItem ole2.OBJ_TYPE;
    hRecipients ole2.OBJ_TYPE;
    recipient ole2.OBJ_TYPE;
    nameSpace OLE2.OBJ_TYPE;
    /*declaration of the argument list*/ 
    args OLE2.LIST_TYPE;          
    begin
    /*create the Application Instance*/
    application:=ole2.create_obj('Outlook.Application');          
    /* create namespace and login */
    args:=ole2.create_arglist;
    ole2.add_arg(args,'MAPI');
    nameSpace:=ole2.invoke_obj(application,'getNameSpace',args);
    ole2.destroy_arglist(args);
    ole2.invoke(nameSpace,'Logon');
    /*create a Mail Instance by calling CreateItem Method and giving argument 0 with
    it,
    you can find the item types in the explanation of the CreateItem Method
    (0=olMailItem,1=olAppointmentItem, ?)*/
    args:=ole2.create_arglist;                         
    ole2.add_arg(args,0);
    hMailItem:=ole2.invoke_obj(application,'CreateItem',args);
    ole2.destroy_arglist(args);
    /*Get the Recipients property of the MailItem object: 
    Returns a Recipients collection that represents all the Recipients for the
    Outlook item*/
    args:=ole2.create_arglist;
    hRecipients:=ole2.get_obj_property(hMailItem,'Recipients',args);
    ole2.destroy_arglist(args);
    /*Use the Add method to create a recipients Instance and add it to the
    Recipients collection*/
    args:=ole2.create_arglist;
    ole2.add_arg(args,'[email protected]');
    recipient:=ole2.invoke_obj(hRecipients,'Add',args);
      /* put the property Type of the recipient Instance  to value needed
    (0=Originator,1=To,2=CC,3=BCC)*/
    ole2.set_property(recipient,'Type',1);
    ole2.destroy_arglist(args);
    /*Resolve the Recipients collection*/
    args:=ole2.create_arglist;
    ole2.invoke(hRecipients,'ResolveAll',args);
    /*set the Subject and Body properties*/
    ole2.set_property(hMailItem,'Subject','Test OLE2 to Outlook');
    ole2.set_property(hMailItem,'Body','this is body text');
    /*Save the mail*/
    ole2.invoke(hMailItem,'Save',args);
    ole2.destroy_arglist(args);
    /*Send the mail*/
    args:=ole2.create_arglist;
    ole2.invoke(hMailItem,'Send',args);
    ole2.destroy_arglist(args);
    /*Release all your Instances*/
    release_obj(hMailItem);
    release_obj(recipient);
    release_obj(hRecipients);
    release_obj(nameSpace);
    release_obj(application);
    end;
    Sample 2
    CLIENT_OLE2 sample.  Here a MailItem is created with an attachment and directly
    sent.
    Declare
    objOutlook CLIENT_OLE2.OBJ_TYPE;
    objMail CLIENT_OLE2.OBJ_TYPE;
    objArg CLIENT_OLE2.LIST_TYPE;
    objAttach CLIENT_OLE2.OBJ_TYPE;
    nameSpace CLIENT_OLE2.OBJ_TYPE;
    BEGIN
    objOutlook := CLIENT_OLE2.CREATE_OBJ('Outlook.Application');
    /* create namespace and login */
    args:=client_ole2.create_arglist;
    client_ole2.add_arg(args,'MAPI');
    nameSpace:=ole2.invoke_obj(objOutlook,'getNameSpace',args);
    client_ole2.destroy_arglist(args);
    client_ole2.invoke(nameSpace,'Logon');
    -- Previous example usually used 'mapi.session' but this doesn't work correctly
    --anymore.
    objarg := CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(objarg,0);
    objMail := CLIENT_OLE2.INVOKE_OBJ(objOutlook,'CreateItem', objarg);
    CLIENT_OLE2.DESTROY_ARGLIST(objarg);
    objAttach := CLIENT_OLE2.GET_OBJ_PROPERTY(objmail, 'Attachments');
    objarg := CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(objarg,'c:\temp\test.txt'); -- filename
    CLIENT_OLE2.SET_PROPERTY(objmail,'To','[email protected]');
    CLIENT_OLE2.SET_PROPERTY(objmail,'Subject','Email sent from Oracle Forms 9i');
    CLIENT_OLE2.SET_PROPERTY(objmail,'Body','This is an email that was sent using
    CLIENT_OLE2 from Oracle forms 9i');
    CLIENT_OLE2.INVOKE(objattach, 'Add', objarg);
    CLIENT_OLE2.INVOKE(objmail,'Send');
    CLIENT_OLE2.RELEASE_OBJ(objmail);
    CLIENT_OLE2.RELEASE_OBJ(nameSpace);
    CLIENT_OLE2.RELEASE_OBJ(objOutlook);
    CLIENT_OLE2.DESTROY_ARGLIST(objarg);
    END;
    Notes:
    These are just 2 different ways of sending a mail by Outlook and using the
    Outlook Object Model.
    The first example can also be used with CLIENT_OLE2, and the second example can
    also be used with OLE2.
    (just replace every OLE2 to CLIENT_OLE2 or every CLIENT_OLE2 call to OLE2).

Maybe you are looking for