Parameters passing from java to oracle forms

How can i pass parameters out of a java environment, and into an
oracle forms(6i) environment?
we run on db 9i
on windows xp.
thanks
yair

Dipankar,
There's a separate example of how to map Oracle OBJECTs to JDBC STRUCTs.
Study that one and combine the two. Not difficult (in my opinion :-)
Or search the JDBC forum for the words "STRUCT" and "ARRAY".
(What, you want me to do your coding for you?)
Good Luck,
Avi.

Similar Messages

  • Passing Nested table or Vararray  from Java to Oracle store procedure

    I have some CSV file with arround 50,000 lines. I need to pass read those lines from Java to Oracle as a collection object.
    Pro & cons of both the options.
    Need some suggestions...
    Regards,
    Lokanath

    Hi,
    why not using External tables. Then you can in Oracle work it out by just using it as a normal table with all the profits.
    Herald ten Dam
    http://htendam.wordpress.com

  • Return data from Java servlet in form of JSON encoded parameters in Javascr

    How to return data from Java servlet in form of JSON encoded parameters in Javascript handler function call?
    The same is implemented in php as the following
    echo "sT.handleAjaxResponse(";
    echo json_encode($response);
    echo ");";
    How to do the same in Java servlet?
    Thanks.

    With the rising popularity of JSON (especially with Ajax), support for it has started to appear in the Java community. I am not aware of any standardized approach yet, but expect it is likely we'll see that eventually. For now, you probably want to look at a third-party library such as the [JSON in Java Library|http://www.json.org/java/], Jettison, or [Java Tools for the JSON Format|http://jsontools.berlios.de/].

  • Unable to detect any parameter in html (webresource) when value is passed from onload method of form

    Unable to detect any parameter in html (webresource) when value is passed from onload method of form
    I am trying out some stuff. For which I created a simple Entity. In the form of the entity I have added a simple web resource (html). And for the onload of the form I am calling the following function
    function HelpDeskActivityOnLoadhandler()
     var customParameters = encodeURIComponent("first=First Value&second=Second Value&third=Third Value");
        Xrm.Utility.openWebResource("tsi_scriptzz",customParameters);
    Here is the code for the  tsi_scriptzz.html
    <html>
     <body>
      <script type="text/javascript">
        var vals = new Array();
        if (location.search != "") {
         vals = location.search.substr(1).split("&");
         for (var i in vals) {
          vals[i] = vals[i].replace(/\+/g, " ").split("=");
      </script>
     </body>
    </html>
    MY PROBLEM IS -> location.search is always coming back with empty string. So, it not getting the parametrs I am passing from the load method of the form.
    Could someone kindly help me.
    Thanks,
    Hasib

    Hello, I tried it myself. I got a new_test.htm file and a new_test.js file. The loadWebResource function is called on the OnLoad event of an Entity.
    function loadWebResource()
    var params = encodeURIComponent('param1=value one&param2=value two&param3=value three');
    Xrm.Utility.openWebResource('new_test.htm', params);
    <html>
    <head>
    <title>Web Resource Parameter Example</title>
    <!-- Use ../ClientGlobalContext.js.aspx if your webresource is in a deeper folder on CRM -->
    <script src="ClientGlobalContext.js.aspx" type="text/javascript"></script>
    <script type="text/javascript">
    document.onreadystatechange = function () {
    if (document.readyState == 'complete') {
    var params = getParams();
    for(var i=0; i<params.length; i++)
    log(params[i].name + ' ' + params[i].value);
    // this functions puts the params in a 'dictionary format'
    // f.e params[0].name = param1 & params[0].value = 'value one'
    // You could customize this function or find some on the internet to retrieve a param fe by name...
    // This is just an example how to get the name and values
    function getParams(){
    var params = [];
    var querystring = Xrm.Page.context.getQueryStringParameters().Data;
    var querystringparts = querystring.split('&');
    for(var i=0; i<querystringparts.length;i++)
    var split = querystringparts[i].split('=');
    params.push({
    name: split[0],
    value: split[1]
    </script>
    </head>
    <body>
    </body>
    </html>
    Hope it helps now. Kind Regards

  • Query regarding passing parameters from HTML to oracle forms 9i

    I am currently trying to design an application which is called from the web but the application is on forms 9i.
    Once the URL is called the user id needs to be entered and then this needs to be passed on to the main form . As I understand it this user id needs to be passed form HTML into the first form on 9i.
    Can anyone help me with the way this can be done
    Thanks in anticipation
    Surojeet

    You can do that using PSP ( PL/SQL Server Pages ) using basic autentication. If you want to get information about you can install Oracle 8.1.7 or higher and invoke the following URL : http://localhost and make click in mod_plsql.
    [email protected]
    Joel P�rez

  • Trying to pass Login username and password from a non-Oracle Form

    I have a form that I am trying to use to pass a login username and password to an Oracle form. The problem is I know Oracle 10g web reports can take login parameters in a URL, but I can't seem to figure out how to encode/hide it and have Oracle read it. I want to be able to hide the username and password (obviously for security) and I also want to be able to pass special characters... does anyone have suggestions? It seems even in Oracle forms there are some issues passing login info because I have built in parameter forms... I have given myself quite a headache either way! We are trying to upgrade from an old, old version of forms and reports and are trying to use as much orginal code as possible. It all works if I pass plain text user name and password... any help would be sooooo appreciated. By the way on the Oracle side I am still pretty much an infant developer... please talk slow and use simple words... ;-p
    Thanks again for any help!
    Va

    ...asking me to enter username and password on a non-secured website, or else thy will destroy my account. Is it legit ?
    It is definitely a scam.  Delete it immediately.
    For more information, see this document:
    Identifying fraudulent "phishing" email

  • Pass parameter from HTML to Oracle Forms

    I have an application that connects to a third party company to process credit card transactions. They require a Sucess URL and a Fail URL depending on whether or not the credit card transaction is approved.
    How can I, using Oracle forms, "catch" the parameters that will be sent back to me by the third party? I need to update some tables depending on the creadit card transaction being approved.
    Thanks,
    Rose

    You can do that using PSP ( PL/SQL Server Pages ) using basic autentication. If you want to get information about you can install Oracle 8.1.7 or higher and invoke the following URL : http://localhost and make click in mod_plsql.
    [email protected]
    Joel P�rez

  • Copy/Paste more than 64K from Excel to Oracle Forms

    We need to copy from Excel more than 64K of data into Oracle Forms 10g. After the copy/paste action. The data will be split and saved in the database. The data contains 6000 fields of each 14 characters.
    What we tried: Create a Long field in forms (maximum size 64K) and process the data which is in this field. But by using PLSQL the maximum size is only 32K. So currently we can only copy and process 32K at a time.
    Is there a way to process over 64K from an excelsheet via Oracle Forms 10g R2?
    Can it be done via Java and how?
    Is it possible to read the clipboard in parts of 30K blocks and paste it in the Long field block with multirecords?
    Restrictions:
    We are not allowed to do file upload and process it on the server side.
    Thanks for your help!

    Hello,
    In the form, you can use Text Items that have datatype as long, so you can strore 64K.
    I do not understand the problem with the PL/SQL, because you can pass 32Ko chunks as many as needed.
    <p>Also, see this article</p>
    Francois

  • Mixing Java with Oracle Forms 11g

    What's going on is I wrote a program for work that allows the user to upload a document from their computer onto the database and then download it back later. Now I have to take that and integrate it into a button in Oracle Forms because our actual program runs from Forms. I imported the jar into the form and wrote a button with code I found online (modified slightly for my own use of course):
    DECLARE
         jo ora_java.jobject;
         rv varchar(100);
         ex ora_java.jobject;
    BEGIN
         JO := Upload.new;
         RV := Upload.startUploadPage(JO);
    EXCEPTION
         WHEN ORA_JAVA.JAVA_ERROR then
              message('Unable to load Upload page, ' || ORA_JAVA.LAST_ERROR);
         WHEN ORA_JAVA.EXCEPTION_THROWN then
              ex := ORA_JAVA.LAST_EXCEPTION;
              message('Java Error');
    END;
    but when I tried to compile it I got:
    Error 306 at line 8, column 8
    wrong number or types of arguments in call to 'STARTUPLOADPAGE'
    the java method that is supposed to be called here is:
    public static String StartUploadPage() {
    new Upload();
    return Upload.StartUploadPage();
    I did get from someone that apparently as written my code wont work anyway because apparently the jar importer in Forms doesnt transfer UI (ie Java Swing) and that in order to get the UI to transfer I would have to write a JavaBean on top of my code... but 1 I have no clue what a JavaBean is and the research I have done so far about it has just confused me more... and 2 I'm not sure what that has to do with the error considering that the method that is supposed to be being called by the line that threw the error doesn't have any JFrames or Java Swing of any kind connected to it... there is a tiny bit of Swing in the class to open up the first form that has the buttons for upload and download in it but that is all. I have 4 classes in that jar... 3 are the various Java Swing pages and have the absolute minimum logic in them possible... and the 4th one is the one that starts everything going, has the main class, and any serious logic that needs to be done the needed values are passed to that class and that class does all the work... that 4th class is the one that is being called in the PL/SQL. If it isnt any trouble could I maybe get a little help from someone on:
    1. How to write a JavaBean to allow my program to work the way it is supposed to in Forms and
    2. Why I am getting this error and how to make it go away

    Simplemente deberias utilizar la webutil, no hace falta programar nada nuevo, con la webutil puede transferir de un puesto cliente a la database, o viceversa.

  • Display BLOB File (pdf format) from database inside Oracle Form (6i)

    hi all.
    Apologies for a primitive question owing to the fact that i m new to development. I have a requirement to display a pdf document with in an oracle form. i want to know is there any such control for that? or any hint how to go about it?
    thanks in advance

    Here I have found my jsp script...
    How I get the PDF?
    I call my script from pl/sql with
    web.show_document('http://my_server/getblob.jsp?id=' || id_from_my_blob_table || '&baza=myhost:1521:sid','_blank');
    <%@ page contentType="text/html;charset=windows-1250"%>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.util.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="java.text.*" %>
    <%@ page import="oracle.jdbc.driver.OracleDriver" %>
    <%@ page import="oracle.jdbc.driver.OracleResultSet" %>
    <%
    Connection con = null;
    Statement stmt = null;
    ResultSet rs= null;
    oracle.sql.CLOB clob = null;
    oracle.sql.BLOB blob = null;
    String datoteka = "";
    String host = "http://" + request.getHeader("host") + "/";
    %>
    <!--Peter Valencic 2003 -->
    <html>
    <head>
    <title></title>
    </head>
    <%
       String tip ="";
       String id ="";
       String baza ="";
       String shema ="";
    try
       id = request.getParameter("id");
       baza = request.getParameter("baza");
       shema = request.getParameter("shema");
       if (request.getParameter("id")== null)
          throw new Exception("id= null");
       else if(request.getParameter("id").equals(""))
          throw new Exception("id= null");
       if (request.getParameter("baza")== null)
          throw new Exception("baza= null");
       else if(request.getParameter("baza").equals(""))
          throw new Exception("baza= null");
       if (request.getParameter("shema") == null)
         shema ="";
       else if (request.getParameter("shema").equalsIgnoreCase(""))
         shema="";
       else
         shema =shema + ".";
    catch(Exception e)
       out.println("Priąlo je do napake: " + e.toString());
       return;
          try
                Class.forName("oracle.jdbc.driver.OracleDriver");
                con = DriverManager.getConnection("jdbc:oracle:thin:@"+baza,"your_user","your_password");
                stmt =con.createStatement();
                rs = stmt.executeQuery ("Select * from "+shema+"DOK_VSEBINA_DOKUMENTA_BLOB where ID="+id);
                boolean podatkib = rs.next();
                if (!podatkib)
                   out.print("<li>Ni podatkov za  ID="+id);
                   return;
                blob = ((oracle.jdbc.OracleResultSet)rs).getBLOB("VSEBINA");
                datoteka = rs.getString("NAZIV_DATOTEKE").toUpperCase();
                   File blobFile = new File(application.getRealPath("/uploads/blob")+"/"+datoteka);
                blobFile.createNewFile();
                InputStream podatki = blob.getBinaryStream();
                FileOutputStream strBlob= new FileOutputStream(blobFile);
                int size = blob.getBufferSize();
                byte[] buffer = new byte[size];
                int length = -1;
                while ((length = podatki.read(buffer)) != -1)
                   strBlob.write(buffer,0,length);
                podatki.close();
                strBlob.close();
                con.close();
                out.print("<li>"+host+"in2/uploads/blob/"+datoteka);
                   response.sendRedirect(host+"in2/uploads/blob/"+datoteka);
                //odpremo z jsp-stranjo datoteko..
                //response.sendRedirect("");
          catch(Exception blobException)
             out.print("<li>(BLOB)Napaka pri prebiranju podatkov:</li>"+blobException.toString());
             return;
    out.println("konec..");
    %>
    <body>
    <form method="post">
    Vnesi ID
    <input type=text name="id">
    <li> <input type=submit name="potrdi" >
    </form>
    </body>
    </html>If you look my "old" script..
    first it get 2 parameters baza= database (ip:port:sid), id= id from my table (PK)
    at the end of my script I have:
    response.sendRedirect(host+"in2/uploads/blob/"+datoteka);
    this redirect will redirect you to your file stored on server side..
    Because IE knows what file it must open it will open it with PDF reader...
    hope this help you..
    Edited by: peterv6i.blogspot.com on May 14, 2012 11:14 AM

  • Reports from Java and Oracle database

    Hi
    I need to generate couple of reports from my application, with Java as front end and oracle 11.2.0.3.0.  database . Reports are  having very simple select statements, using the criteria users enter from GUI. we don't need to execute a  direct select statement from Java, with the where clauses . I did some research and found out about Pipelined functions. I tested for a small set of records and it worked fine. Will this work for large data set? any drawbacks of using this method?  Any other methods for this requirement?
    Thanks in advance
    JP

    Pipeline table functions do not sound like the appropriate approach. It is designed to primarily deal with data transformations. Using it as a rendering engine for report writing? There are fundamental problems with such an approach.
    As Dave and Andre commented - the CORRECT means for PL/SQL to pass "data" to Java (or other client languages) is via reference cursors (pointers that the client can use for referencing SQL cursor programs on the server). And Java as a report writer does not really compare with the ease and flexibility that Oracle Apex (Application Express) provides as a reporting framework.

  • How to display the report output from a customized Oracle Form button

    Hi Gurus
    I developed a customized oracle form and one customized report. I want to run report from oracle customized form, for this i use one button to submit concurrent request for request.
    its successfully submitted and i can view output by using View ----> Request --------> Find -------------> Output...
    But problem is that how can i view output by using button not doing all steps to view output.
    Regards,

    Hi Haq Nawaz,
    Refer Here
    Regrads,
    Guru

  • Invoking bpel process from java in oracle soa/bpm 11g

    Hi,
    We have some java code to invoke bpel process in oracle BPM 10g following the instructions in http://download-east.oracle.com/docs/cd/B14099_19/integrate.1012/b14448/invoke.htm.
    Basically the steps are:
    1) get a Locator (com.oracle.bpel.client.Locator)
    2) get IDeliveryService (com.oracle.bpel.client.delivery.IDeliveryService) reference from locator
    3) call IDeliveryService method request or post with input message and get the response back.
    Recently we want to migrated from oracle bpm 10g to oracle soa/bpm 11g. But I can not find the similar API in 11g. It seems now some adapter/binding need to be added in exposed service lane in soa composite view, for example, ADF-BC, direct binding etc, in order to allow java to invoke a bpel process. Here are two very useful links from Edwin about the detail how this is implemented.
    http://biemond.blogspot.com/2009/11/invoking-soa-suite-11g-service-from.html
    http://biemond.blogspot.com/2009/11/calling-soa-suite-direct-binding.html?showComment=1285198033913#comment-c1055322845511794252
    My question is:
    1) what are the choices and the official/best way to invoke a bpel process in oracle soa/bpm 11g from java?
    2) does user need to add an adapter/binding in exposed service lane in order to let the bpel service be called in java?
    3) what is the real difference between a bpm application and soa application in 11g?
    I will really appreciate any expert's opinion.
    Thanks,
    Bin

    Thanks for your reply and confirmation, really appreciate it.
    Yes, I found the difference of the invoking process API and was able to invoke bpel process using direct and ADF-BC binding by following Edwin's blog. But I have not found any official reference to compare this API difference between 10g and 11g ( I will mark this question as answered if anyone can find an official source from oracle, need to prove it to the team). The API to work with human task workflow seems pretty much the same between 10g and 11g.

  • Parameter passing from java applet

    Hi all.
    currently i'm trying to create online testing applet (like TOEFL exam) for fun.
    i've create basic testing rutine, but i got stuck on showing the results.
    i want to show the results on the HTML so that users can print it out easily. but i donw know how to pass parameter from Java to some other language.
    I've searched for JavaScript, but it seems that it's only possible when using NetScape. Also, I searched for PHP, but it's just not possible. HTML seems that it's only possible from "HTML to Java"...
    if anyone knows how i can do it, and which language i should use, please let me know.
    thanx!

    i want to print out the questions that user have mistaken. print out the question, wrong answer, and right answer.
    all the answers are created by radiobutton so i want to get the only the Strig values, which wouldn' be so difficult.
    I've searched about JSObject, but could u tell me where can i install the package (or SDK)?
    And do users need to install the package as well?
    thanks for your time.

  • Printing a Oracle PDF Report from within a Oracle Form on Linux

    Is there a command I can use in Oracle Forms to invoke a shell script to open a PDF output report stored on a physical location on the Linux server and print it to the printer?
    What I'm currently trying to do is send a Report called within Oracle Forms 10g to "DESTYPE=FILE DESFORMAT=PDF DESNAME=directory/filename.pdf". I'm storing all the information about the file and printer information prior to it being run with the RUN_REPORT_OBJECT. What I want to happen is as soon as it finishes generating the file, I want (behind the scenes) is it to locate the file, open, and print it automatically, but never show the output to the user on the screen.
    I know with the "DESTYPE=cache DESNAME=filename DESFORMAT=PDF" that it puts the info in the Reports Server / Cache directory, but also opens it in a separate browser window of which you can select the printer at that point. I don't want to do that in this option.
    I previously tried to use the "DESTYPE=printer" option but, the issue with it has to deal with fonts. I do not want to store fonts on every printer, given the different types of printers our users have. I can print to the printer but the fonts are all messed up so, not an option.
    So, basically I'm trying to replace that option with generating to a PDF, then I don't have to worry about fonts, since I have them all working, then I can just open the PDF file on the server and send to the printer. I was wondering if that is an option available in Oracle Forms when calling reports. I figured that when someone sends the option of "DESTYPE=printer" that it must be calling some shell script on Linux that handles this. I'm just not seeing it.
    Any help is appreciated.
    Chris

    Ok, one final question because I want to see how far this can go.
    Can I issue this command via the HOST inside the form? Basically I'm telling it to open and send the file to the printer. The vFileName is the directory/filename stored on the Linux Server. I can execute this command on the command line of Linux and it works
    HOST( 'lpr -P gt-ybs-ps /u11/app/as10g/tools/web/html/pc_rp00120100210035258.pdf');
    I promise this is my last quesion.
    Chris

Maybe you are looking for

  • Noise on SCXI 1300 but not 1303

    I have been having an intermittent noise issue isolated to my SCXI 1300 and specifically to one input signal (CO2 Analyzer).  The erractic behavior goes away when I connect the signals to the SCXI 1303.  The signal that is giving me a problem on the

  • Line out audio through dock connection

    Does the nano have line out audio through the dock connector? The threads I've read here have conflicting information. The tech specs at http://www.apple.com/ipodnano/specs.html do not list this for the nano so I'm assuming NOT...and that my Sik Imp

  • Re: Error Starting In Integrated WLS 11.1.1.3

    I was creating a pick list while some internal IDE Level appeared. I ignored & was doing my job but it started continuously to appear. I thought this as IntegratedWLS domain problem & removed the instance from local directory. But again Integrated WL

  • E75 - Maps - BUG REPORT - Contact Search by Compan...

    Finally, a Nokia Business Phone allows direct search from Contacts by typing the Company name, thanks for that. However, when I tried to use Maps to navigate to a client company, it turned impossible to find the destination by entering the company na

  • Fireworks CS6 crash when opening color palette

    Fireworks CS6 has got to be the buggiest program I have used on my Mac. The bug that is especially irritating is when I attempt to open a Color Palette, Fireworks immediately crashes ( this is before I even begin to navigate or select a color palette