ExtendScript and SQLite

Hello,
I need to query a small SQLite Database from within Bridge. Does anyone know if that is possible.
Maybe via:
1. "Integrating External Libraries", which is too hardcore for me :(
2. Commandline, which is not that nice
3. A small AIR app connected via SwitchBoard
Has anyone coped with this task before?
Regards, Markus

thanks Bob,
this would be the easiest solution for me, but I forgot to mention, that the db should be local (thats why sqlite) on the users machine. There is an standalone air application that should be altered/ported to be running as SWF in a bridge tabbed palette. SWFs seem not to offer support for using sqlite directly and so I thought I could do the queries with extendscript. I will give the commandline approach a try, or maybe there is another solution?
Apart from this project, I find the idea of having a small database available in my Bridge Scripts very very promising. XML is fine for storing data, but searching, sorting, deleting, joining data is much work:(
Regards, Markus

Similar Messages

  • Berklay and sqlite syncronization.

    Dear all,
    Im planinig for some teting on sqlite and berklay clientdb. Here are my questions?
    1. Will the berklay or sqlite be coppied to client device same way as Olite client DB? Still i do not see berkley db in MDW and are those going to be changed
    2. Wll the dmagent, msync, and updates will work same way as Olite..
    ie... in olite we give user/password and url for dmagent setup url looks like http://hostname:1025/webtogo (will this be same for sqlite and berkley)
    3. Will the orace will be similar and the client db default to storage card?
    4. What will be the error messages .... we see POL etc in olite and where are the error manuals?
    5. what is the meaning web-to-go not available in new releases ?? Are you refering the oracle mobile server management part like what we use in http://hostname:1025/webtogo (if the admin part not availble what would be the mechanism of adding users/devices/manage applications etc... done..
    6. Will there be a release with new changes in oracle mobile server after 10.3...
    7. When vb .net is used in development what is the dlll available for win mobile 6.x device applications (System.Data.SQLite) or any other and from where can i download them.
    thanks.
    Paninie

    Hi Vino,
    I installed 10.3.0.3 on a windows xp with sp3 . It works as usual but when creating olite it worked as usual but i got a error when try to install sqlite client on a win mob 6.5 . it just said to restart the application thats all.
    WHen creating the publication still on this release i do not see bdb. its only lite and sqlite.
    Still with 10.3.0.3 webtogo works.
    I hope that 11. will have all these and we have to wait till that. It is unfortunate that mobile sever does not have a version for small scale people who has say less than 10 client devices. Is there any mechanism of licencing for people with 10 devices . because the current price of $23000 per processor will have an effect when there are fever people. (Sorry This is an out of the subject).
    Thanks.

  • Phonegap, iPhone and SQLite database

    Hi there,
    I'm trying to develop my first iPhone app using Phonegap and SQLite database. My app is simple but don't know how to get started. My app has 2 dropdown list. When the user selects one of them the other dropdown list will reset.  Then user will click on Submit button and I want to search the database and display the result.
    I've never used the SQLite database and I would like to know in which folder should I keep the database file. The database file is small and will be stored on the device. The database is already populated. User will not add,edit or delete data but only search based on what value was selected using dropdown list.
    Can someone tell me how to do this using JavaScript.
    Thanks,
    Joe Green

    PhoneGap is something that cross-platform developers use to avoid the native frameworks. The people on this forum are more familiar with the native frameworks. You would have to find a PhoneGap forum to ask about that product.

  • ExtendScript and CMS

    Is the FrameMaker CMS functionality exposed to ExtendScript? If so, is there any documentation or sample scripts available? Thanks in advance.
    Rick Quatro

    Rick,
    There are some blog posts and info on using the FDK with the DAY CMS for FM that might shed some light on how to adapt the FDK to use in Extendscript.  See:
    http://blogs.adobe.com/techcomm/2012/09/open-source-sample-connector-between-framemaker-11 -and-adobe-cq-now-available.html
    http://www.adobe.com/devnet/framemaker/crx.html
    http://blogs.adobe.com/techcomm/2011/07/framemaker-day-cms-sample-connector-released.html
    https://www.adobe.com/cfusion/event/index.cfm?event=register_no_session&id=2002873&loc=en_ us   <-- recording of Tom's webinar on the connector
    Otherwise, I don't think there's any specific info on Extendscript and the CMS connector available.
    I hope this helps,
    Arnis

  • Works in ExtendScript and not in Script Panel [JS, CS3]

    I've adapted the FindChangeByList script to work with a particular page.
    The trouble is a couple of text boxes need to be removed entirely.
    So I've included the lines:-
    var myDoc = app.activeDocument;
    var myPageItems = myDoc.allPageItems;
    for(var i=myPageItems.length-1;i>=0;i--)
        if(myPageItems[i].constructor.name.toString()=="TextFrame")
    if (myPageItems[i].contents == "WIN £50"||myPageItems[i].contents == "WIN £100") {
    myPageItems[i].select();
    myPageItems[i].remove();
    ... then the script gets down to doing the changes prescribed by the list
    myObject = app.documents.item(0);
    myFindChangeByList(myObject);
    When I run the script in ExtendScript the boxes vanish as intended.
    But when I run it from the InDesign scripts panel, the text frames stay where they are and their contents get changed along with the contents of the other text frames.
    I've alt clicked the script in the scripts panel to make sure I've got the right script. It's one of those head-scratchy-am-I-going-dafter affairs.

    After testing the box deletion part in the scripts panel and thus checking that it wasn't the culprit, I saved the box deleter script and the specialised FindChangeFromList script in the InDesign Scripts folder (so they don't appear in the Scripts Panel) and wrote an Applescript which does two "do scripts". When run from the scripts panel this script does the job. Inelegant, I know, but ours is not to reason why, ours is to get it working.

  • Flex Air App... and SQLite

    I was hoping someone can point me in the direction to learn the SQLite on Adobe Air... I need something simple to start out... Most of what i found is rather complicated, and get's kind of confusing...
    Do you have to create the database at run-time?

    http://www.peterelst.com/blog/2008/04/07/introduction-to-sqlite-in-adobe-air/
    http://work.rowanhick.com/2007/06/12/working-air-sqlite-datagrid-example/

  • Crystal Reports and SQLite

    Hello,
    I work with Crystal Reports 2008. We have a report connected to a Sybase database via ODBC. I tried to replace the Sybase database by a SQLite database 3.6.11 via ODBC. But it doesn't act up, even though the databases contain the same tables. Nothing happens, when I select the same table in both databases in the "data source path" dialog and then click "actualize".
    When I try to create a new report with the standard report creation tool using a SQLite database 3.6.11 as data source, the functionality is limited, too. For example I can't group fields like I can do using a Sybase database.
    Does anyone have experiences with this? Or is there any other possibility to connect to a SQLite database besides ODBC in Crystal Reports?
    Best wishes
    Christine

    Please re-post if this is still an issue to the Data Connectivity - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly
    It's likely a limitation of the ODBC driver. And unless they have an OLE DB driver ODBC is your only option.

  • Air and sqlite problem - cumulating results

    Hi,
    I got problem with sqlite in air.
    The problem is that sqlStmt.getResult().data is gathering data from separate Select statements, when  it should be separate results. As in this example, where I call "select" function once, and AFTER geting it's result I call it again with different query.
    public function select(q:String):void {
    conn.open(dbFile);
    sqlStmt.addEventListener(SQLEvent.RESULT,selectComplete);
    sqlStmt.text = q;
    sqlStmt.execute();
    private function selectComplete(e:SQLEvent):void {
    oSqlReturn = sqlStmt.getResult().data;          //this is where sqlStmt.getResult().data remembers previous results and adds current ones to the array.
    conn.close();                                                  //but here sqlStmt.getResult() is null
    sqlStmt.removeEventListener(SQLEvent.RESULT,selectComplete);
    So  after second Select returns I got sqlStmt.getResult().data with results from the first and the second statement.
    Maybe one of You had some simmilar problem and is able to help me with this.

    Thanks for help. It is recomended to use different instances of SQLStatement. But it wasn't the case.
    I changed to asynchronious connection and I added SQLMode and now it works.
    So instead of
    conn.open(dbFile)
    now I got this:
    conn.openAsync(dbFile,SQLMode.UPDATE);
    So I think that the problem was becouse I was listening to result events of synchronious connection.

  • ExtendScript and Socket Servers

    Question 1)
    I'm trying to run a stable socket server within After Effects. Could someone tell me if running the SocketServer in ExtendScript Toolkit and sending messages via BridgeTalk is the best way to do this? I was looking into the InDesign Server platform, and I'm curious if that might make a more stable SocketServer platform to send messages to AE via the BridgeTalk messaging API. Any thoughts?
    Question 2)
    Is there anyway to access the BridgeTalk messaging API or get an SDK to allow me to send messages with a different application, such as Luxology Modo, or node.js as a socket server? My good people of Adobe, might you provide us access to the BridgeTalk API? I'll send brownies.
    Question 3)
    Is running a script (such as the aforementioned socket server) from within ExtendScript IDE a bad idea? Seems like it is. I'm not sure how to launch it automatically (similar to the way you can put scripts in the Application startup items folder).
    Thanks so much!!!!
    -F

    Hello F,
    I am the engineer who currently knows the most about BridgeTalk.
    In regards to your questions: If you want to communicate with other Adobe products on the same machine then BridgeTalk would probably be my first choice. If you have to communicate over the network, or with non-Adobe products, or AIR applications then using your own socket server might be a better choice. You cannot use BridgeTalk with applications that haven't integrated the BridgeTalk client library (in other words Luxology Modo and node.js won't work).
    You'll find a lot of information about the Socket and BridgeTalk classes in the JavaScript Tools Guide CS4:
    http://www.adobe.com/devnet/scripting/pdfs/javascript_tools_guide_cs4.pdf
    Running scripts from the ExtendScript IDE is a great idea if you are developing your script and if you need to debug your code. You have to make sure that the target popup shows the application that the script is intended to run. Most Adobe applications allow you to hook up client scripts into the menu. For example, if you place an ExtendScript script "MyScript.js" in C:\Program Files\Adobe\Adobe Photoshop CS4\Presets\Scripts on Windows Photoshop will create a menu item under File/Scripts/MyScript. I am not sure whether After Effects supports the same feature. In general I would not add code to startup scripts, because startup scripts are being executed each time a script is being processed.
    Best regards,
    -          Bernd

  • ADF and SQLite

    Hi,
    Can I create ADF BC from Tables using SQLite database?
    I created connection to SQLite database but wizard for creating BC from Tables does not working ( i can only see first step and all fields are disabled- i can click on button next but nothing happens).
    I use jdeveloper 11.1.1.2.0.
    Andreja

    Everything can be found here :
    http://docs.oracle.com/cd/E35521_01/doc.111230/e24475/amxdatabase.htm
    Including sample code.

  • Help with ADF BC and SQLite

    Looking for sample tutorial to build/deploy ADF BC with SQLLite.  Please help.

    try this link
    http://fr.slideshare.net/stevendavelaar/adf-mobile-implementing-data-caching-and-sunching-using-adf-mobile-adf-mobile-persistenceandsyncing
    Fakhri

  • Can this be done with extendScript and ScriptUI ...

    Is there a way to programmatically stop execution of a script so that a user could make edits to a PSD then resume execution of the script at the point the script was halted?

    I’m not totally sure, but I suspect what you have in mind is not practicable.
    Why not just split the Script in two?
    It should certainly be possible to insert a confirm-dialog in a Script and have the Script continue only on confirm and stop on cancel.
    The Scripts could store the information that the Script has been cancelled in a txt-file and have it elaluate the txt-file and only run a certain part depending on that, but it seems cumbersome.
    What exactly is this about?

  • Universal Windows 8.1 & Phone App accessing on-premise SQL Server DB and offline SQLite DB

    I am new to Windows Mobile App development. I am creating a mobile app that I want to connect and get data/authentication from on-premise SQL Server database.  I then would like to have a local (on device) SQLite DB to hand offline situations.
    I am aware that Azure Mobile Services can work with on-premise, azure based and SQLite databases, but I am confused about the whole structure.  Do I need to host anything in Azure if I have an app on the device and the database is on-premise. 
    The samples for Hybrid connections (BizTalk) connects a Azure website to on-premise database, and there are plenty of samples for devices apps connecting to Azure databases, with the MobileService being hosted in Azure.  Am I able to create and host a
    mobile service on our on-premise server?  Should I ignore Azure altogether?
    Any advice would be greatly appreciated.

    Hi Lorettac242,
    Regarding your description, your question is more about Azure Mobile Services or Windows Mobile App development. I would suggest you post your question in the dedicated forums. It is appropriate and more experts will assist you.
    Azure Mobile Services forum
    Window Mobile App Development
    If you have any feedback on our support, please click
    here.
    Eric Zhang
    TechNet Community Support

  • How to connect to and communicate with an SQLite database in AIR/Flex

    Hey guys,
    I recently decided I would try programming a vocabulary-training program in AIR, so I could use it on Linux as well. I got stuck pretty soon. I am trying to connect to a local SQLite database and I obviously fail epically. Posting the source code of the application here:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
       <mx:Script>
          <![CDATA[  
               import flash.filesystem.File;
              import flash.data.*;
             import mx.controls.Alert; 
                      private var dbFile:File;
                   private var conn:SQLConnection;
                   // -- AUTO INIT FUNCTIONS --------------------------------------------------- /
                   private function init():void {
                        // Create a File Reference to the Included DB
                        dbFile = File.applicationDirectory.resolvePath( "../slovniky.db" );
                        // Create SQL Connection
                        conn = new SQLConnection();
                        // Event Listener that will tell us when the DB is opened
                        conn.addEventListener(SQLEvent.OPEN, openSuccess);
                        // Event Listener that will tell us if an error occurs
                        conn.addEventListener(SQLErrorEvent.ERROR, openFailure);
                   // -- EVENT HANDLERS -------------------------------------------------------- /
             private function starter() :void {
                  slovickoEn.enabled = true;
                  nazor.enabled = true;
                  odeslat.enabled = true;
                  zrusit.enabled = true;
                  start.enabled = false;
                  // Otevírám spojení s databází v asynchroním módu
                   conn.openAsync( dbFile );
             private function openSuccess( event:SQLEvent ):void {
                        // Pokud se spojení povede!
                        Alert.show("Spojení se zdařilo!");
               private function openFailure( event:SQLEvent ):void {
                        // Pokud spojení selže!
                        Alert.show("Spojení se nezdařilo!")
             private function kontrola() : void {
                  if (nazor.text != "") {
                       if (nazor.text == "Pes") {
                       Alert.show("Správně!");    
                       else {
                       Alert.show("Špatně!! " + "Napsané slovíčko bylo " + nazor.text);     
          ]]>   
       </mx:Script>
       <mx:VBox width="400" height="200"
                   horizontalCenter="0" verticalCenter="0" backgroundColor="#FFFFFF"
                   paddingBottom="20" paddingLeft="20" paddingRight="20" paddingTop="20"
       >
          <mx:HBox width="100%" verticalAlign="middle" horizontalAlign="center">
             <mx:Label text="Anglicky:"/>
             <mx:TextInput id="slovickoEn" editable="false" text="Dog" enabled="false"/>
          </mx:HBox>
          <mx:HBox width="100%" verticalAlign="middle" horizontalAlign="center">
             <mx:Label text="Česky:"/>
             <mx:TextInput id="nazor"  enter="kontrola()" enabled="false"/>
          </mx:HBox>
          <mx:HBox width="100%" horizontalAlign="center">
             <mx:Spacer width="50" height="10"/>
             <mx:Button id="odeslat" label="Odeslat" color="#0D8401" click="kontrola()" enabled="false"/>
             <mx:Button id="zrusit" label="Zrušit" color="#0D8401" enabled="false"/>
          </mx:HBox>
          <mx:HBox width="100%" horizontalAlign="center">
             <mx:Spacer width="50" height="10"/>
             <mx:Button id="start" label="Start" color="#0D8401" click="starter()" enabled="true"/>
          </mx:HBox>
       </mx:VBox>
    </mx:WindowedApplication>
    The Run of the program tells me this:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
         at pes/starter()[C:\air\projects\pes\src\pes.mxml:45]
         at pes/__start_click()[C:\air\projects\pes\src\pes.mxml:93]
    I would appreciate any help or a how-to. I am an absolute beginner with some experience from HTML, CSS, PHP and rarely JS. What am I doing wrong? File attached for easier manipulation as well.
    Erthy

    Hi,
    Here is the complete example for the same with the code.Let me know if you have any issue with this.
    http://shardulbartwal.wordpress.com/2008/04/14/adobe-air-and-sqlite-connectivity/
    with Regards,
    Shardul Singh Bartwal

  • This SQLite query takes ages in Flash but not in SQLite Administrator

    Hi
    Are there ever occasions when flash adds time to queries?
    I have a query that is taking almost 5 seconds on a database in Flash, yet when I put the same query into SQLite Administrator with that database loaded, it takes 15ms.
    I set up a flash timer, and start it just before...
    sqlStatement.execute(-1, new Responder( pass, fail ));
    ... and stop it and trace it as soon as Flash hits pass(); - so there's nothing else going on apart from the query to eat up time.
    The database has an index that is being used according to EXPLAIN QUERY PLAN in SQLite Administrator. Does Flash use the same SQL code? It's as if it's ignoring the index.
    Here's the query (I know there are a lot of COLLATE NOCASE statements - it's because my current table columns are not COLLATE NOCASE, and I'm not yet ready to set up a new table that has COLLATE NOCASE columns to copy the data into):
    SELECT * FROM  (SELECT * FROM table1 WHERE col1 !="" COLLATE NOCASE ORDER BY col1 COLLATE NOCASE , col2 COLLATE NOCASE ASC, col3 COLLATE NOCASE ASC, col4 COLLATE NOCASE ASC ) UNION ALL SELECT * FROM (SELECT * FROM table1 WHERE col1="" COLLATE NOCASE ORDER BY col2 COLLATE NOCASE ASC, col3COLLATE NOCASE ASC, col4 COLLATE NOCASE ASC) LIMIT 10
    Other queries on the same database are very fast, and seem to take the same time in Flash and SQLite Administrator.
    Thanks for your thoughts.

    You're limiting your results to 10, I'd also set the prefetch parameter of execute to 10 for posterity. Just a small thing.
    How many columns are we talking about here? The SQL statement is fairly expensive (as you know) but I don't know how much data we're really talking about here or what the quality of the index tables are for this particular query. AIR also still needs to read and parse the result before handing it to you.
    I'd go down the same route as you probably want to avoid. I'd trace every step of SQLConnection and SQLStatement to see exactly where the delay is occuring. I don't think you're going to get around this unless you just breakpoint from the connection and literally step through all the code yourself line by line until you notice the unusual delay and that isn't reliable because the delay could only occur when running the code full speed. I'd make sure you're running openAsync and trace every event and the timestamp on it (getTimer() - startTime). Something will show you the 4000-5000ms you're experiencing.

Maybe you are looking for

  • Locked ID3 Tags

    I recently added songs to my library and when I tried rewriting the song info on the ID3 Tag, I couldn't because the songs are locked or encoded. Some are encoded with iTunes v 7.5, others withe LAME3.97. I just want to organize and rewrite their tag

  • How to resolve price difference in case of Returning material through STO

    We are receiving material from our plant A to plant B. Material is manufactured in plant A and Standard price (3 S) is maintained for this material. In plant B, 2 V is maintained for this material and no excise credit is taken here. Now when i am ret

  • Sun Java System Directory Server 5.2

    Hi, We were informed by a third party that we can download Sun Java System Directory Server 5.2 SP 1 from the Sun downloads area. However, we couldn't find 5.2 Service Pack 1. We did find that Directory Server 5 2005Q4 (5.2 patch 4) is the only one a

  • Missing fonts - InDesign CS3

    I've read all I could find about mssing fonts, but continue to have problems with opening InDesign files and receiving a message about a missing font(Arial Narrow). Indesign CS3 v5.04 Two users(Administrator & a user(who has Local Administrator right

  • The screen has become all blue

    My PC is an HP Pavilion dv2000. A while ago all colours diappeared on the screen. Eeything is just blue. Have not found out what´s wrong.