Connect database using ext javascript or applescipt in indesign

Hi,
I need to connect oracle database using extended javascript or apple script in indesign. Can somebody help by giving any suggestion. Or is there any possibility to connect database using the two scripting methods.
It  is really urgent.
Thanks
Karthik B

ExtendScript has a Socket object prototype you can use to e.g. connect to the internet. Calling a web service would probably be more elegant than addressing the database directly. Socket is fairly low-level, though. If you need something easier, you could always try out http://extendables.org/docs/packages/http/doc/readme.html
I seem to recall some InDesign plug-ins you could buy that allow you to connect to a database directly, but you'd have to google that yourself.

Similar Messages

  • How to connect database using coding in trigger in forms

    Oracle forms6i
    Hai All
    Is there any possiblity to connect database using coding.
    For example when we open a form and we use some button and write some coding and when we execute a small will appear and we give username,connection identifier and database name.
    Is it any possible there when we create a button and in that button we write coding our database name,connectionid and user and when we exe it will internally connect database Pls tell me..
    Regards
    Srikkanth.M

    use LOGON Procedure
    PROCEDURE LOGON
      (username  VARCHAR2,
       password  VARCHAR2);
    logon('scott','tiger@orcl');Mr.Srikkanth.M if u dont close ur old questions dont expect others to answer ur question everytime......so plz remember if u think the person's answer is helpful or correct mark it accordingly
    Thanks :)
    Baig
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • Is it possible to connect database using session bean

    Dear all,
    Is it possible to connect database using session bean without using entity beans like cmp,bmp.
    if ur answer is yes, then pls tell me where to put the select statement and transaction attribute like(6 types).
    if u have sample code, then it is good for me.
    Hope I will get answer.

    Sure it is.
    Try something like this (and maybe get a book on JDBC):
    String name;
    try {
         InitialContext ic = new InitialContext();
         DataSource ds = (DataSource) ic.lookup(Constants.MY_DATASOURCE);
         Connection connection = ds.getConnection();
         String sql = "SELECT * FROM TABLE";
         PreparedStatement statement = connection.prepareStatement(sql);
         ResultSet rs = statement.executeQuery();
         while (rs.next()) {
              name = rs.getString("NAME");
         if (rs != null)
              rs.close();
         if (statement != null)
              statement.close();
         if (connection != null)
              connection.close();
    catch (NamingException e) {
         // Can't get JDBC datasource
         // ... do something with this exception
    catch (SQLException e) {
         // SQL exception from getter
         // .... do seomthing with this one too
    }

  • How to Connect Database Using Script?

    Hi all,
                    Am using Adobe InDesign CS3. Is there any way to connect database from Adobe InDesign CS3 Scripting (Javascript)? Thanks in advance.
    Regards,
    Mohan

    I don't know javascript so I can't help with that part.
    The system plug in you need is from Actual Technologies : http://www.actualtechnologies.com/ The setup for that is detailed in their instructions. You will probably want to set it up for system-wide access, not by user. I found system-wide access more reliable, fwiw.
    For Applescript I send a command through the Terminal/command line that returns the data from the query.
    Here is Applescript:
    set query to "YOUR DB QUERY"
    set results to (do shell script "echo \"" & query & "\" | iodbctest \"dsn=" & dsn & ";uid=" & uid & ";pwd=" & pwd & "\" | awk '{ if (match($0,\"SQL>\")) {k++; if (k==1) next; if (k==2) exit; } if (k==1) print; }'")
    You can probably do something similar in Javascript. You'll have to parse out the text data returned then. I think there may be plug-ins for InDesign that can directly connect to a database (?). Or some plug-ins like inData can take their data passed from a script as well.
    Chris

  • Connecting database from extended javascript

    Is there a possibility of connecting database directly from scripting (i.e using a jsx file alone.)?
    do indesign provide some api to connect to the database?
    or the only way XML to get thorugh?
    every suggestion and ideas is highly appreciable.
    Ton thanks in advance
    Raja

    Is there a possibility of connecting database directly from scripting (i.e using a jsx file alone.)?
    do indesign provide some api to connect to the database?
    or the only way XML to get thorugh?
    every suggestion and ideas is highly appreciable.
    Ton thanks in advance
    Raja

  • Problem in connect database using applet

    hi
    please
    i want open database in page html with use Applet
    i use this code but database not work in the my page
    if this code have problem
    please correct this code to open database in page html
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con = DriverManager.getConnection(
    "jdbc:odbc:DRIVER=Microsoft Access Driver (*.mdb);DBQ=C:\\hwzyfa.mdb ");
    sta = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_UPDATABLE);
    res = sta.executeQuery("select * from aha");
    this is my code
    package orcle;
    import java.sql.*;
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    <applet code="test.class" width=200 height=200>
    </applet>
    public class Applora extends Applet implements ActionListener
    Connection con = null;
    Statement stmt = null;
    ResultSet rs = null;
    String str=null;
    TextArea ta;
    public void init()
    ta= new TextArea(10,30);
    add(ta);
    Button b1 = new Button(">>");
    add(b1);
    b1.addActionListener(this);
    ta.setText("Initialization...\n");
    public void start() {java.applet.AudioClip a=  Applet.newAudioClip(Applora.class.getResource("a.mid"));
       a.play();
    public void actionPerformed(ActionEvent ae)
    ta.appendText("Inside actionPerformed\n");
    try
    ta.appendText("Inside try block\n");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    ta.appendText("Class loaded\n");
    /********** upto this point it works fine **************/
    con=DriverManager.getConnection("jdbc:odbc:DRIVER=Microsoft Access Driver (*.mdb);DBQ=C:\\hwzyfa.mdb ");
    ta.appendText("Connection created\n");
    stmt=con.createStatement();
    ta.appendText("Statement created\n");
    rs=stmt.executeQuery("select * from aha");
    ta.appendText("Resultset created\n");
    while(rs.next())
    str=str+rs.getString(2)+" "+"\n";
    //str=str+rs.getString(2)+" "+"\n";
    ta.appendText(str);
    con.close();
    stmt.close();
    rs.close();
    }catch(ClassNotFoundException cnfe){System.out.println("Class Not found "+cnfe.getMessage());}
    catch(SQLException sqle){System.out.println("SQL Exception "+sqle.getMessage());ta.setText(sqle.getMessage());}
    catch(Exception e){ta.setText(e.getMessage());e.getMessage();}
    }

    i want access to database in page html with use AppletFirst of all, that doesn't make any sence, if it's a single user application make it a java
    application.
    If it's a multu user application make it a client server where the web server connects to
    the database when the client requests a connection.
    When the applet connects to the database any client running the applet needs a
    connection to your database server, the client needs the jdbc drivers and the client's
    jre needs to find them (set classpath with runtime parameters or set the classes in
    javadir lib). After that the client needs to change thiere java.policy or you need to sign
    the applet.
    Needless to say that's a lot of trouble. And if you go through all that trouble the client
    can de-compile your applet and see the connection to the database server and the
    server name. Now the client can destroy your database or worse see date it is not
    supposed to see.
    Since you are a brainless ... who needed to post this question 6 times did not respond to any of my post in your other threads I can just say good luck with your problem.

  • How to connect database using JDBc?

    Hi All,
    I developed one Microsoft Access Database named "Test.mdb" in my "C" drive,
    i used
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String url = "jdbc:odbc:C:\Test";
    Connection con=DriverManager.getConnection(url);
    While executing the above code, I m getting the following error
    Error occurs java.sql.SQLException : No suitable driver
    please help me what is the problem..i did code in proper try catch block ... so dont worry but let me know what is exactly reson behibd getting this querry....
    my email id is : [email protected]
    waiting for ur reply.. its urgent

    While executing the above code, I m getting the following error
    Error occurs java.sql.SQLException : No suitable driverDon't post your e-mail.
    This error always means that the URL you gave to connect to the database is incorrect. Yours is indeed wrong:
    String url = "jdbc:odbc:C:\Test";You can correct it in either one of two ways:
    (1) Create a DNS in Windows that points to your database (call it "Test") and change the URL so it says
    String url = "jdbc:odbc:Test";(2) You can skip creating a DNS and use a connection String that looks like this:
    "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=<database-path>";In your case, <database-path> is "C:\\Test"
    Better read a tutorial:
    http://java.sun.com/docs/books/tutorial/jdbc/
    %

  • How to connect database using oracle SQL developer

    Hello
    I am newbie in EBS R12
    I downloaded Oracle SQL Developer
    and create new database conenction
    Connection name: ebs demo db connection
    username:
    password:
    Role: Default
    Connection type: Basic
    Hostname: ebstailin.demo.com
    Port: 1521
    SID: clone
    when i try this there is an error
    Status: Failure-Test failed: lo exception: The Network Adapter could not establish the connection
    no idea about this
    but i used the apps/apps as username and password
    please help
    thanks
    Edited by: cheesewizz on Jul 16, 2010 11:35 PM

    Hello
    Thanks for your reply
    I tried to connect and here is the result: see below
    [oracle@ebstailin 11.1.0]$ sqlplus / as sysdba
    SQL*Plus: Release 11.1.0.7.0 - Production on Sat Jul 17 15:35:31 2010
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> CONNECT apps/apps
    Connected.
    SQL>
    But still cannot connect using ORACLE SQL Developer
    thanks

  • Fail to connect database using UNC path

    I have encoutered problem to connect sample database which is located at share drive such as J: drive.
    I setup up the environment at follow:
    The database is save at J: drive such as J:\xtreme.mdb
    I use crystal report 2008 to create report template and the database location is J:\xtreme.mdb
    [http://i105.photobucket.com/albums/m229/kenkit/diagram1.jpg]
    Then, I published the report into CRS2008. While I preview the report. I got the error message
    "The database logon information for this report is either incomplete or incorrect. "
    The report database configuration is at below:

    crosspost

  • Fail to connect database using network drive

    I have encoutered problem to connect sample database which is located at share drive such as J: drive.
    I setup up the environment at follow:
    The database is save at J: drive such as J:\xtreme.mdb
    I use crystal report 2008 to create report template with sample database which is location at J:\xtreme.mdb
    [http://i105.photobucket.com/albums/m229/kenkit/diagram1.jpg]
    Then, I published the report into CRS2008. While I preview the report. I got the error message
    "The database logon information for this report is either incomplete or incorrect. "
    I am successful to map the network drive and open it.
    [http://i105.photobucket.com/albums/m229/kenkit/picture5.jpg]
    The report database configuration at CRS2008 is at below:
    [http://i105.photobucket.com/albums/m229/kenkit/picture2.jpg]
    [http://i105.photobucket.com/albums/m229/kenkit/picture3.jpg]
    In addition, I had already started SIA service with domain administrator account.
    [http://i105.photobucket.com/albums/m229/kenkit/picture4.jpg]
    So, anybody can give idea or suggestion to solve this problem?
    Edited by: Ken Hui on Apr 21, 2011 5:37 AM
    Edited by: Ken Hui on Apr 21, 2011 5:50 AM

    crosspost

  • How to connect database using JSF??

    When I deployed a JSF war file which was connected to MySql on Sun Application Server, then lanuched it, why there was an error message like "HTTP Status 503 - This application is not currently available". Can anyone tell me why? thanks.

    Thanks pringi~~!!
    I still have problems about the database connection. I had tried many examples which were provided by some books. However, once I deployed the application, it still got problems. Can anyone help me and provide a example about the database connection. Thanks a lot.

  • How to connect database using type4 driver(dsn or dsnless connection)

    please send any one reply answer

    One reply - not possible.
    DSN/DSNless refers to a specific driver. And that driver is not a type 4 driver. So it is not possible.

  • Connecting to Remote Database using Debian w/Oracle XE

    Hello.
    I have managed to install Oracle XE on a Debian box.
    I am trying to connect to a remote server located on my network.
    I am using the following connection string:
    # sqlplus <User>/<Password>@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<IP>)(PORT=1521)))(CONNECT_DATA=(SID=<SID>)))'
    However, I was given both a SID and a Service_name.
    I tried connecting with both.
    Is it possible to parametrize both? I checked and the remote server is up, and that is the existing port.
    Thanks a lot!

    user603592 wrote:
    Hello.
    I have managed to install Oracle XE on a Debian box.
    I am trying to connect to a remote server located on my network.
    I am using the following connection string:
    # sqlplus <User>/<Password>@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<IP>)(PORT=1521)))(CONNECT_DATA=(SID=<SID>)))'
    However, I was given both a SID and a Service_name.
    I tried connecting with both.
    Is it possible to parametrize both? yes, see below
    bcm@bcm-laptop:~$ sqlplus -h
    SQL*Plus: Release 11.2.0.1.0 Production
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Use SQL*Plus to execute SQL, PL/SQL and SQL*Plus statements.
    Usage 1: sqlplus -H | -V
        -H             Displays the SQL*Plus version and the
                 usage help.
        -V             Displays the SQL*Plus version.
    Usage 2: sqlplus [ [<option>] [{logon | /nolog}] [<start>] ]
      <option> is: [-C <version>] [-L] [-M "<options>"] [-R <level>] [-S]
        -C <version>   Sets the compatibility of affected commands to the
                 version specified by <version>.  The version has
                 the form "x.y[.z]".     For example, -C 10.2.0
        -L             Attempts to log on just once, instead of
                 reprompting on error.
        -M "<options>" Sets automatic HTML markup of output.  The options
                 have the form:
                 HTML [ON|OFF] [HEAD text] [BODY text] [TABLE text]
                 [ENTMAP {ON|OFF}] [SPOOL {ON|OFF}] [PRE[FORMAT] {ON|OFF}]
        -R <level>        Sets restricted mode to disable SQL*Plus commands
                 that interact with the file system.     The level can
                 be 1, 2 or 3.  The most restrictive is -R 3 which
                 disables all user commands interacting with the
                 file system.
        -S             Sets silent mode which suppresses the display of
                 the SQL*Plus banner, prompts, and echoing of
                 commands.
      <logon> is: {<username>[/<password>][@<connect_identifier>] | / }
               [AS {SYSDBA | SYSOPER | SYSASM}] [EDITION=value]
        Specifies the database account username, password and connect
        identifier for the database connection.  Without a connect
        identifier, SQL*Plus connects to the default database.
        The AS SYSDBA, AS SYSOPER and AS SYSASM  options are database
        administration privileges.
        <connect_identifier> can be in the form of Net Service Name
        or Easy Connect.
          @[<net_service_name> | [//]Host[:Port]/<service_name>]
         <net_service_name> is a simple name for a service that resolves
         to a connect descriptor.
         Example: Connect to database using Net Service Name and the
               database net service name is ORCL.
            sqlplus myusername/mypassword@ORCL
         Host specifies the host name or IP address of the database
         server computer.
         Port specifies the listening port on the database server.
         <service_name> specifies the service name of the database you
         want to access.
         Example: Connect to database using Easy Connect and the
               Service name is ORCL.
            sqlplus myusername/mypassword@Host/ORCL
        The /NOLOG option starts SQL*Plus without connecting to a
        database.
        The EDITION specifies the value for Session Edition.
      <start> is: @<URL>|<filename>[.<ext>] [<parameter> ...]
        Runs the specified SQL*Plus script from a web server (URL) or the
        local file system (filename.ext) with specified parameters that
        will be assigned to substitution variables in the script.
    When SQL*Plus starts, and after CONNECT commands, the site profile
    (e.g. $ORACLE_HOME/sqlplus/admin/glogin.sql) and the user profile
    (e.g. login.sql in the working directory) are run.  The files may
    contain SQL*Plus commands.
    Refer to the SQL*Plus User's Guide and Reference for more information.
    bcm@bcm-laptop:~$

  • Unable to connect to Oracle Database using Oracle Sql developer 2.1.1.64

    Hi Everyone,
    I am searching for some help regarding my problem with Oracle connectivity. I have installed Oracle 11g release 2 on my Windows XP Professional Laptop. For a few days after installation i could connect to the Oracle database with the SYSTEM account using Oracle SQL developer ( installed on the same Laptop) but now i am unable to do so.It gives me this annoying message:
    An error was encountered performing the required operation  Got a minus one from read call .Vendor code 0
    However i am able to connect using Sql Plus by supplying the username SYSTEM and the corresponding password.
    My TNSNAMES .ora file is as follows:
    ORACLE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST =localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORACLE)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    My Listener.ora file is as follows:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:D:\app\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    (SID_DESC =
    (GLOBAL_DBNAME = Oracle)
    (ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
    (SID_NAME = Oracle)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (PROTOCOL_STACK =
    (PRESENTATION = GIOP)
    (SESSION = RAW)
    ADR_BASE_LISTENER = D:\app
    My Sqlnet.ora file is as follows:
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    I am new to Oracle and so i need someone in this forum who can help me resolve this problem. Also i even tried connecting to the database using Toad 10.5.0.41. It give me the following error:
    ORA 12537 : TNS Connection closed
    Thanks for your patience and help in advance.
    ---Prashant

    Hello Irian and Sue,
    I can connect to the Oracle database using SQL Plus. Now when i TNSPING ORACLE from command line i get the following message :
    Used parameter files:
    D:\app\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =localhost
    *)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ORACLE)))*
    TNS-12537: TNS:connection closed
    Thanks for your response to my initial post.Do u have any other methods to resolve this?

  • How can I connect to the database using ODBC within excel.

    Hi,
    How can I connect to the database using ODBC within excel and just refresh the data when needed.
    Thanks,
    Priyanka
    Edited by: user554934 on Jun 9, 2009 2:53 AM

    This is NOT an APEX relevant question, try posting it in the SQL/PL/SQL Forum..
    Thank you,
    Tony Miller
    Webster, TX

Maybe you are looking for

  • How to use quarter format in "to_date()" function?

    Hi, I'm trying to use to_date() function with quarter format. How do I specify the format? For example to convert '2002 quarter 1' using the to_date function. I tried to_date('20021', 'YYYYQ'), and I got ORA-01820 cannot appear in date input format.

  • How to determine the path of the jar file cache of javawebstart?

    Hello, I need to know how to determine where the java web start application file jar cache is stored on windows system hard drive. I would have launch of the inner processes I have need to know the path of file jar . example if my application is myAp

  • Trying to view a linux based dvr system on my mac

    Im trying to remote view a linux based dvr system on my mac, I can log into the system, and use the controls, however I cannot view the video on any of the cameras, in windows it requires an active x control installed anyone know what the mac equival

  • Highlighti​ng different plots

    I have an application where I generate10-20 different plots on one graph.  I know how to use the legend, but it's still tough to see which plot goes with which data set.  Is there a way have the individual plot names show up when I mouse over a plot?

  • I upgraded to itunes 10.7.0.21 and now every time itunes starts it crashes within a few seconds!

    I upgraded to itunes 10.7.0.21 and now every time itunes starts it crashes within a few seconds! I have uninstalled and re-installed and I get the same! I am running windows 7 64bit. The error window sais the fault is " KERNELBASE.dll". I also instal