How to connect to an Oracle database using acrobat form field java script actions

I have a PDF template with buttons and form fields. One requirement is that when a key is pressed, I want to connect to an Oracle database to change the data of the table inside the DB.

I wrote "Mouse Up" event and set a Java script to run on this event. Java script I am trying to connect to the DB and Transact on the DB.

Any ideas how to achieve this.

Thank you.

Assuming you are using Acrobat (or reader) XI or newer, it is no longer possible.

There used to be a way to connect to a PDF file using a script and ADBC, a DB defined locally, but Adobe removed in favour of this option progressively and now it is completely obsolete.

The only type of PDF files that can still do are those created using LiveCycle Designer.

Tags: Acrobat

Similar Questions

  • To connect to an Oracle database using oracle.jdbc.OracleDriver: error

    Hello

    I am trying to connect to an Oracle database so that we can extract information on tables, views, and packages.

    Using the Data Modeler (transformation script) API, we will add these notes to the corresponding objects in the Data Modeler.

    I'll start with this:

    importPackage (java.lang);

    importPackage (java.awt);

    importPackage (java.sql);

    java.lang.Class.forName ("oracle.jdbc.OracleDriver");

    An error occurs when I run this code:

    test.png

    It must be something of Java...

    Someone at - it a suggestion?

    Problem solved! A colleague of mine referred to in this post: import def properties from Oracle Designer

    More in detail: it's this couple of lines:

    Copy the file ojdbc6.jar for... Directory of \datamodeler-home\jlib

    Add this line to datamodeler.conf

    AddJavaLibFile... /... /jlib/ojdbc6.jar

    I changed my file datamodeler.conf, DM rebooted and now is no longer an error when I try to use the Oracle JDBC drive.

  • Connect to the Oracle database fails when you use Microsoft ODBC or OLE DB Driver

    There was a problem when you apply the KB3126587 hotfix where connections to an Oracle database using the Microsoft ODBC driver fails if run from automated processes. Running the same process manually would succeed. The update issued KB3147071 solved the problem successfully.

    Yesterday, several patched have been applied and the problem came back. The patches are: KB2862152, KB2868626, KB3163244, KB3168965, KB3170455, KB3163251.

    I saw yet no acknowledgement or difficulty of Microsoft. I prefer not to uninstall security patches, but it is a problem of production.

    Any ideas what specific patch maybe breaking it again?

    Thank you

    Josh

    Server: Windows 2008 R2

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • Connection to the remote database using Oracle 11 g Builder

    Hi all

    This could me stupid question, but I have installed Oracle Forms and reports 11g on Win 7 machine. I copied the file "tnsnames.ora' on the record ' ORACLE_HOME/Network/Admin". We use Oracle EBS R12 and I want to create a new report using 11 g.

    Using the report wizard after providing a simple query, we need to connect to the database. And even after the entry of TNS, I am getting error connecting to the database, following
    "REP-0501: the specified database can be connected.
    "ORA-12154: TNS: could not resolve the connect identifier specified.

    I am able to connect to the same database using the Report Builder (10.1.2.0). Is there another place where I need to set the TNS entry? How can I solve this error? Please guide...

    Kind regards
    Priyanka

    Hello

    In forms and reports 11g, default defined in tnsnames.ora is: ORACLE_INSTANCE\config.
    Please note that the ORACLE_INSTANCE is not the same as ORACLE_HOME.
    Example:
    ORACLE_HOME = D:\Oracle\Middleware\as_1
    ORACLE_INSTANCE = D:\Oracle\Middleware\instances\asinst_1

    If you set the admin TNS_ADMIN variable in the registry, you can point to a new location for tnsnames.ora

    Kind regards
    Alex

    If someone useful or appropriate please mark accordingly.

  • Inserting a new record in the database using a form empty ADF

    Hello

    I'm trying to insert a new record into the database using a form.

    I have an Employee table and its corresponding entity object and the view object. The table has an id that is used as the primary key and is filled using a sequence in the comic book.

    Data controls, I dragged and dropped at the sight of the employee as a form of ADF and checked the submit button include. Then I dragged and dropped the validation on submit button operation.

    When I connect to the app and go to the page used to create, I have 2 problems:
    1 - the form is filled with the logged in user info.
    2. If I try to change the news and validation, the user info is changed in the database and no new record is created.

    It makes a little sense to me, but I would like to know if there is a way around it (get an empty form and insert a new record).
    NB: the employee id is not part of the form, I want to be filled using the sequence.

    Kind regards
    MB

    User, please tell us your jdev version!

    To do this, you must create a new record before going to the display of the form page. In a stubborn workflow (btf), you drag the operation createInsert of the VO on the btf and it will generate a link method, add a view to the btf and put a navigation of the binding of the method of the page. Mark the method as 'Activity by default'. Now, ren, you call the workflow, you create a new record that will show your blank form.

    Timo

  • can I use waiting fuction in java script with qml

    HII guyzz... How to use the wait in java script with QML function as if it takes 20 minutes to perform a specific operation or a process after that battery is 100%

    You are better off using QTimer for something like that.

  • How can I get rid of the follow-up? {Attribute Java Script] = not in XMI. Now I have to click ok which is a nuisance

    How can I get rid of the follow-up? {Attribute Java Script] = not in XMI. Now I have to click ok so he can disappear, that is a montage of nuisance. How can I get the missing part?

    Thank you. Then I disabled all extensions one both enabled and found that productivity Community Toolbar 3 seems to be the culprit. I will be a while before I close the file. Thank you.

  • Is it possible to create a new file using the XML via java Script?

    Hello everyone,

    Is it possible to create a new file using the XML via java Script

    • I have xml information that need to use for file name, size.
    • Based on xml file we can create a new file in InDesign with java script?
    • Kindly help me if anyone has an idea about this.

    I use InDesign CS4 on windows 7

    Sample file is attached below.

    Kind regards

    Siva

    <UpdateAd>
    <AdId>3403699</AdId>
    <Width type="mm">91,79</Width>
    <Height type="mm">80,00</Height>
    <ProductionCategory>4</ProductionCategory>
    <BookedCCIColors>sw</BookedCCIColors>
    <WorkFlowType>PDF</WorkFlowType>
    <CustomerNumber>652224</CustomerNumber>
    <CustName1>Erich Prang</CustName1>
    <Description/>
    <Description2>R</Description2>
    <UpdateIns>
    <Titel>RHZ</Titel>
    <Publication>B2</Publication>
    <RunDate>26-07-2011</RunDate>
    <Zone>H30</Zone>
    <KDDATEN>nein</KDDATEN>
    </UpdateIns>
    <WorkflowStep>IR</WorkflowStep>
    <Proof>No</Proof>
    </UpdateAd>
    
    

    xml.png

    Try this:

    var f =File.openDialog ();
    f.open('r');
    var xml = new XML(f.read());
    f.close();
    
    var myDocument = app.documents.add();
    myDocument.documentPreferences.pageHeight = xml..Height+"mm";
    myDocument.documentPreferences.pageWidth = xml..Width+"mm";
    var rect = myDocument.pages[0].rectangles,add();
    rect.geometricBounds = myDocument.pages[0].bounds;
    rect.strokeAlignment = StrokeAlignment.INSIDE_ALIGNMENT;
    rect.strokeColor = myDocument.swatches.item("Black");
    rect.strokeWeight = 1;
    myDocument.save(File(f.path + "/" + xml..AdId + ".indd"))
    

    Substances

  • How to connect to the Oracle on VM1 VM2 of database with 11gClient

    Hi all

    I have a virtual machine running Windows7 x64bit, I loaded x64bit oracle server and created a database.  The thin database functions and the listener is running for the database.  I created a different VM running Windows7 x64bit, I loaded x64bit oracle client. I want to connect to the server (VM1) using pl/sql developer VM2.  I thought I could just use the tnsname connection string and connect, but not yet!

    Can someone point me to get instructions on how best to achieve this.  Thanks in advance!

    D.

    Could the firewall Windows on dbserver block 1521 maybe? If it's on, it might be useful to turn it off at least rule out it.

  • Task Oracle database using stored procedure adapter connection

    Hello
    I found the bottom of things in console design guide:
    For Installations of Oracle Identity Manager using the Oracle database, copy it
    file ojdbc14.jar is of the OIM_HOME/xellerate/ext/directory of the
    OIM_DC_HOME/xlclient/ext directory.

    This must be done before to create a task of adapter of stored procedure with the target system being the oracle database. So this means that no connector is necessary and the ojdbc14.jar is itself establishes the link taking the resource data... Please answer my question. If I'm wrong guide me in the same.

    This is urgent.

    Help, please

    Thank you
    SK

    Hello

    ojdbc14.jar is contains the necessary drivers to talk to the database and retrieve information from the DB schema.
    It reads information from the resource connectivity and will fetch from the database stored procs.

    As Olga said, you don't need to write a connector for this.

    http://download.Oracle.com/docs/CD/E10391_01/doc.910/e10366/creadp.htm#BHAHJAAB

    Let me know if you have any questions

    Thank you
    Suren

    Published by: Suren.Singh on August 26, 2010 02:08

  • How to import in different Oracle schemas using the same model? Physical schema is different every time, so, how is this a handles that?

    Experts of the ODI,

    I use ODI 11.1.1.7.0 and transfer data to an Oracle database. So far, everything is OK, but...

    I want to reuse my current interfaces for import into different schemas in the same database.

    At the moment all the table data were imported into a single scheme under topology/Physical Architecture / Oracle / Data Server / physical schema I chose the pattern and check the "default."

    If I import now to other patterns (300 different ones), how should I configure the physical schema values for:

    Schema (schema)

    Scheme (scheme of work)

    Default checkbox? (I assume must be deselected)

    On a quick test, I left schema & schema of blank and disabled by default check box. Two interfaces work (one per table), but the third failed (my guess is the way in which the model was reverse engineering has to do with it, but don't know how to fight against it) I know how to debone a model, but if I use a pattern to do the other schemes do not work because ODI will give me a table not found. How do I work around this problem. Here is an example of the error I get after removing the default schema of the physical schema definition.

    ODI-1226: step CON_TY fails after 1 attempt.

    ODI-1240: Flow CON_TY fails during an operation of integration. This flow of charge table target CON_TY.

    ODI-1228: task failed CON_TY (integration) on the ORACLE connection signal target.

    Caused by: java.sql.BatchUpdateException: ORA-00942: table or view does not exist

    Your help is appreciated. Thank you.

    Here's how, to work around the problem of schema change the mask object Local of the physical schema on the server target %SCHEMA.%O OBJECT to % OBJECT in this way the schema is not part of the SQL at all.

    And these are the values that I use in the physical schema definition

    Schema (schema) - undefined

    Scheme (scheme of work) - undefined

    Check box default - select

    Given each user has permissions for objects it is clean and it doesn't have the schema name to reference the object, it works very well.

  • Connect to the Oracle database - does not connect

    I am new to JAVA and for the first time that I am trying to connect to an Oracle using JAVA data. Well, I get an error when you try to connect to the database. I can see that the error doesn't that make strings passed to make the databases of connection are NULL. Thus, an error (see error below).

    Question
    How is the 'connection' varriable is NULL?
    It seems that the hold 'try' session was not executed. This session is broken?

    ERROR

    The database connection is not found: null
    Database connection before call: null
    Exception in thread "main" java.lang.NullPointerException
    at TestOCIApp.main (TestOCIApp.java:39)


    = JAVA START program =.

    import java.sql. *;
    import java.sql.Connection;
    to import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;

    public class TestOCIApp {}

    Public Shared Sub main (string args []) throws ClassNotFoundException,
    SQLException {}

    Fitting out = null;
    try {}
    Load the JDBC driver
    String driverName = "oracle.jdbc.driver.OracleDriver";
    Class.forName (driverName);

    Create a connection to the CCM PROD database
    String serverName = "192.168.2.144";
    String portNumber = "1521;
    String sid = "op01ccdb01";
    String url = "JDBC: thin: @" + serverName + ":" + portNumber + ":" + sid;
    String username = 'user id ';
    String password = "password";
    connection = DriverManager.getConnection (url, username, password);
    System.out.println ("connection value:" + connection);

    } catch (ClassNotFoundException e) {}
    The database driver is not found
    System.out.println ("could not find the connection to database:" + connection);
    } catch (SQLException e) {}
    Could not connect to the database
    System.out.println ("could not connect to the database connection:" + connection);
    }

    System.out.println ("connection to the base before the call:" + connection);
    Statement stmt = connection.createStatement ();
    ResultSet rset = stmt.executeQuery ("select" driver Tester Hello OIC ' |) THE USER: '! ("' result from double ');
    While (rset.next ())
    System.out.println (RSet.GetString (1));
    RSet.Close ();
    stmt. Close();
    Connection.Close;
    }
    }


    = END of JAVA program =.

    The try section runs very well but only partially because you get the exception "ClassNotFoundException", which means that it is impossible to load the Oracle driver class (so it does not reach the line where it says):

    Class.forName(driverName);
    

    You intercept this exception and then simply print a line "could not find the database connection: null". Then you let the code continue, obviously without you still initialize your variables.

    I would recommend rewriting those catch blocks throw new RuntimeException so that the code will not continue any further when an error is detected in the try or don't catch not all of them if you donot want to manage them appropriately.

    As for your problem, you probably have not added the ojdbc14.jar is to your project, and this is why it cannot find the class OracleDriver.

    Finally, try adding {noformat}

    {noformat} around your code when you post code.  It makes it a lot more readable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    
  • Unable to connect to remote oracle database!  Help, please!

    Hi all-

    I am a new user Oracle and you are allowed to access a remote Oracle database, however I have problems with the installation/configuration program! I downloaded the driver Oracle and the Instant Client (11.2.0.2.0) because I need to use Microsoft Access for the data access (the Access database is already configured to the correct Oracle database). I'm under the impression that, to do this, I need to be able to use the ODBC Administrator to get all set up. Note: Im working on Windows XP.

    I have questions:

    -I don't seem to have installed Netca (which seems to be the recommended method to configure a connection). I have manually adjusted the TNSNAMES file. ORA file so it matches the database, but I'm not sure what would be my next step.

    -When I open SqlPlus it wants a username and password, and I tried the default settings and got an error each time. I must first use SqlPlus, or establish a connection via ODBC first?

    -Also: ODBC requires a TNS Service name, and I'm not sure, where this is established; something that would give the database manager?

    I really just do not know how to configure this remote connection! I continue to run with obstacles and really want a reference "step by step" on the way to do it, if there is such a thing. Any help or additional reference material would be appreciated! I ran by the content of the forum, but have not been able to decode the jargon! Thank you very much in advance.

    Marilyn

    MsMonroe wrote:
    Hi Ed-

    I use the Oracle's ODBC driver. I think there may be a problem with the TNSnames file because I tried to add this file as a"Data Source", and he also said that a connection could not be established. What do you mean by the MS implemented? A configuration of Data Source?

    By MS implemented, I was referring to the MS ODBC for Oracle driver, against the Oracle ODBC for Oracle driver.

    The "source of data file' has nothing to do with the tnsnames file. The ODBC Manager retains its DSN definitions in one of three places. "User DSN" is stored in the HKEY_LOCAL_USER registry, the "System DSN" definitions are stored in the HKEY_LOCAL_MACHINE registry and 'FILE DSN"definitions is stored in a file... I don't remember exactly where or what it's name is as I have (when he is forced to deal with odbc) just keep things simple and use "system dsn". But these aren't all the definitions of ODBC, Oracle tnsnames file.

    The link between the ODBC DSN and the tnsnames.ora presents itself as a property of the ODBC definition. Suppose you have this for a tnsnames.ora entry:

    houston =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = vmlnx01)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SERVICE_NAME = orcl)
        )
      )
    

    Then
    -When you set up your odbc dsn, if you use the MS for Oracle driver, you must specify 'houston' as the 'server '.
    -When you set up your odbc dsn, if you use the Oracle odbc driver, you must specify "houston" as "the TNS Service name".

    >

    Im going to try to post a modified version of the content of my TNSnames.ora file (for some reason any the "content is not allowed ' by the forum), but I would like to get some comments on whether the structure of the content may be the problem.

  • How to track user stop oracle database on unix OS?

    our Organization is to have 10 DBA with sysdba priviladge. We use the UNIX operating system. In the morning, say for example if some one (SYSDBA user) stop the oracle database how the other user sysdba to trace the user stop the database? the only required information is Terminal where oracle got shutdown and user name? Help, please...

    Sorry, but this has also incorrect

    SYSDBA connections are always checked, regardless of the setting of audit_trail and check any option.

    -----------
    Sybrand Bakker
    Senior Oracle DBA

  • Create the connection to the Oracle database

    How do I create oracle database connection using flex.

    Please mention all necessary codewise and sage (for flex as well as Oracle9i) configuration

    Thanks in advance.

    VjFlex,

    looking at your line of code

    url="DataConn.php?lal='sds'"
    

    I would not have thought you need them ' brands around sds. Unless your php code is something dindane special to manipulate, you would put normally just lal = sds and everything would be fine.

    You also say "Please pass the asp.net code, you did to do the same thing. Of course, I can't at the moment past on the actual code but the principles are the following (I use c# in ASP.NET as language server-side in this case and SQL server in the database and did not show the string for connection etc - you already know how to do as your database)

    sql_call = "select top 10 t1.a, t2.b, t2.c from t1, t2 where t1.id=t2.id order by a";sql_server_command = new SqlCommand(sql_call, sql_server_connection);sql_server_command.CommandType = CommandType.Text;sql_server_data_adapter = new SqlDataAdapter(sql_server_command);dataset = new DataSet();sql_server_data_adapter.Fill(dataset);datatable = dataset.Tables[0];call_encoded = "";for (int i = 0; i < datatable.Rows.Count; i++)  {    data_record = "" +      "" + datatable.Rows[i][0].ToString() + "" +      "" + datatable.Rows[i][1].ToString() + "" +      "" + datatable.Rows[i][2].ToString() + "" +      "";    call_encoded += data_record;  } // for icall_encoded += "";return call_encoded;
    

    Hope that helps. You can see that the returned table is converted into XML so that once back in Flex, it can be easily managed.

    Richard

Maybe you are looking for

  • How to remove several photos library icloud?

    I use icloud photos with multiple devices, including an iPhone 4, iPad, Macbook pro and two PC. My icloud library is too large, with many duplicates (same photo taken several times) and many photos, I don't want to keep. Deleting photos in the librar

  • readabilityO

    On xp it with spell check and thesaurus, there is a section with the number of words that shows the readability of a written section: However, under windows 7 I can't find something like. Can help you because it is a great and useful tool.

  • Z240 HP SFF: HP SFF Z240 random crashes, blue screens and crashes

    Hello My work machine is a Mini PC Z240 from HP. Last month, the machine began to hang randomly and display blue screen errors. There is not much in the way perceptible models, but it tends to happen when the machine is in use, rather than the idling

  • How to understand the reference trigger as a trigger to stop?

    Hello I tried to use an external signal how the trigger works / stop for analog data entry. I had looked for solutions and above all that they suggest to use a reference trigger. But I don't really understand how it is applied. For example, why it sh

  • An app to replace the net send function

    Hello, you are looking for an application that will replace net send, I could use Ping on a specific area of the position in my company.