Adobe Air connection to SQL

Hello,
I have to create a desktop Adobe Air Javascript application to connect to the SQL Server and fetch the data based on the user input. Say when the user enters a customer code all the customer details would show up on the screen (Adobe Air window). Can sombody please help me with this? I'm stuck with this issue for long time.
Thanks,
Amol

Hi Amol,
This will give you an idea:
Adobe LiveCycle ES3 * About data connections

Similar Messages

  • Adobe Air Problem with SQL Lite

    Hi
    I am facing a strange, weired error.. and i am hating it
    SQLError: 'Error #3132: Data type mismatch.', details:'could not convert text value to numeric value.', operation:'execute', detailID:'2300'
    here is my code:
    stmt = new SQLStatement();
    stmt.text = "UPDATE PracticeTable SET UserAnswer=:userAnswer, TimeTaken=:timeTaken WHERE Primarykey=:primaryKey";
    stmt.parameters[":userAnswer"] = "C";
    stmt.parameters[":timeTaken"] = "10";
    stmt.parameters[":primaryKey"] = 141;
    stmt.sqlConnection = MySQLConnection.Instance.Connection;
    stmt.execute();
    following is my table
    CREATE TABLE "PracticeTable" ("PrimaryKey" INTEGER PRIMARY KEY  AUTOINCREMENT  NOT NULL  , "CategoryName" VARCHAR NOT NULL , "QuestionHTMLName" VARCHAR NOT NULL , "AnswerHTMLName" VARCHAR, "AnswerCorrectOption" VARCHAR, "NoOfOptions" INTEGER, "UserAnswer" VARCHAR, "TimeTaken" VARCHAR, "StatusOfAnswer" VARCHAR, "BookMark" VARCHAR, "RCJoin" VARCHAR DEFAULT 0, "SyncFlage" INTEGER NOT NULL  DEFAULT 0)
    I really can't figure out what's wrong, please someone helppppp !!!!
    Best regards,
    Ahmed.

    I'd try simplyfying my statement a bit and see if you still have the issue.  Perhaps your parameters are just not being interpreted as the right datatype before being executed
    stmt = new SQLStatement();
    var myParams = {userAnswer: "C", timeTaken: "10", primaryKey:141};
    stmt.text = "UPDATE PracticeTable SET UserAnswer='" + myParams.userAnswer + "', TimeTaken='" + myParams.timeTaken + "' WHERE Primarykey=" + myParams.primaryKey;
    stmt.sqlConnection = MySQLConnection.Instance.Connection;
    stmt.execute();

  • Programs using adobe air platform

    Hello everybody, I have downloaded a bunch of programs that use the adobe air platform. Programs like tweetdeck, twhirl, seesmic, spaz and some other. The thing is that, none of them work for me and I don't know if it's because there is some problem with adobe air not letting them connect properly. They are all programs which allow users to connect to their twitter account, but they just try to log in, and they stay there but nothing happens. Some of them say that they can't connect to twitter, or they just keep logging forever.
    The reason why I'm here is because I downloaded like 7 similar programs and not one of them work. So I don't think every single one of them has problems. That's why I'm wondering if the problem could be Adobe AIR? Can anyone please share their opinions on this? Because if Adobe AIR is not the problem I have to start looking somewhere else.
    I've already requested support from every single program, to see if they have some solution. I'm just here because I wanna know if the reason why none of them connect could be because of Adobe AIR?
    Thank you so much.

    Oh, sorry, my OS is windows vista home premium, and I use mozilla firefox 3.0.10 as my browser. Thank you. I've seen a forum on get satisfaction where people are having the same problem and apparently it's an adobe air problem because it doesn't connect to the internet. The link to that discussion is here.
    Is there a solution to this problem? Like what can we do to make adobe air connect to the internet?
    Thank you again so much.

  • Adobe Air & Windows ACL

    Hi all,
    Can Adobe Air (or Flex) get Windows XP ACL (authorization
    systems) and exploit it? or Could Adobe Air connect to LDAP Active
    Directory and get some information?
    best regards,
    ZK

    Hi,
    There's no direct support for that in AIR. You could try
    coding it in AS3 yourself.
    If you want to make a feature request concerning this, you
    can do that at:
    http://www.adobe.com/go/wish/

  • Connecting between two Adobe air mobile applications (On Android)

    Hi There,
    Does an Adobe AIR application can connect and pass parameters somehow (Directly or by http) with another android application?
    Can Adobe AIR mobile application open a listening socket?

    Um, I'm pretty sure this is wrong. You cannot use SocketServer on a mobile app platform for some stupid reason.
    From the doc
    "AIR profile support: This feature is supported on all desktop operating systems, but is not supported on mobile devices or AIR for TV devices"

  • Possible for AIR app connecting to SQL 2005 server

    Is it possible using Flex AIR to connection to SQL 2005
    server and fetch data ?
    If YES, whats step / process we need to follow please.
    We have the DB in sql 2005 and we want to develop desktop
    client and fetch the records from DB to AIR app.

    "kamaljeetsinghsaini" <[email protected]>
    wrote in message
    news:gmsmnc$non$[email protected]..
    > As we know that AIR supports SQlite only but in our case
    we want to fetch
    > data
    > from server that is using SQL 2005 as DB. So are you
    saying we can
    > directly
    > send the HTTP service to that server and fetch data from
    it ?
    You can send the HTTPService request to whatever back end
    technology you are
    currently using to access it. For example, if you are using
    ASP.net, you
    would still use ASP.net, but you would send back something
    that Flex
    understands, such as XML, instead of the HTML that the
    browser client
    understands.

  • Adobe LiveCycle Connection to  MS SQL Server

    Hello All,
    I'm new to Adobe Livecycle. I want to create a form in Adobe LiveCycle that will connect to SQL server database and pull data from it. The user will be running the form on MAC. Can this be achieved? Any inputs on this will be greatly appreciated. Can somebody guide me to tutorials/documentation on this?
    Thanks,
    Amol

    Hi Amol,
    This will give you an idea:
    Adobe LiveCycle ES3 * About data connections

  • Adobe AIR - Not connected to the internet

    I was sent anvery urgent, important document that when I tried to open it, said I needed Adobe Air to read it.  I downloaded the Air but when I tried to read my document, I got an error message that said i was not connected to the Internet. I was, of course!!!!!! I have tried everything including uninstalling and reinstalling several times but it still doesn't work and I get the same message. I am extrememly frustrated with being unable to find any support on the Adobe web site. This is the only post I see. i do not understand all the gobbledegook I see here. Anybody out there that can help? I need this document. Thanks

    Hi, ggmnat. Welcome to the Adobe user-to-user forums!
    The question you are asking about is related to Adobe AIR, but you have posted it in the Kuler forum.
    You may be able to use one of these documents to help you with your issue:
    http://kb2.adobe.com/cps/403/kb403150.html
    http://kb2.adobe.com/cps/902/cpsid_90205.html
    http://kb2.adobe.com/cps/902/cpsid_90202.html
    I would also recommend that you post your concern in the Adobe AIR forum: http://forums.adobe.com/community/air/installation

  • Adobe AIR HTTP Connection Limit

    Hello,
    I'm working on an Adobe AIR 2.7 application which can upload files to a web server, which is running Apache and PHP. Several files can be uploaded at the same time and the application also calls the web server for various API requests.
    The problem I'm having is that if I start two file uploads, while they are in progress any other HTTP requests will time out, which is causing a problem for the application and from a user point of view.
    Are Adobe AIR applications limited to 2 HTTP connections, or is something else probably the issue? From searching about this issue I've not found much.
    The file uploads are performed by calling the File classes upload method, and the API calls are done using the HTTPService class. The development web server I am using is a WAMP server, however when the application is released it will be talking to a LAMP server.
    Thanks,
    Grant
    Here is the code I'm using to upload the file:
    protected function btnAddFile_clickHandler(event:MouseEvent):void
        // Create a new File object and display the browse file dialog
        var uploadFile:File = new File();
        uploadFile.browseForOpen("Select File to Upload");
        uploadFile.addEventListener(Event.SELECT, uploadFile_SelectedHandler);
    private function uploadFile_SelectedHandler(event:Event):void
        // Get the File object which was used to select the file
        var uploadFile:File = event.target as File;
        uploadFile.addEventListener(ProgressEvent.PROGRESS, file_progressHandler);
        uploadFile.addEventListener(IOErrorEvent.IO_ERROR, file_ioErrorHandler);
        uploadFile.addEventListener(Event.COMPLETE, file_completeHandler);
        // Create the request URL based on the download URL
        var requestURL:URLRequest = new URLRequest(AppEnvironment.instance.serverHostname + "upload.php");
        requestURL.method = URLRequestMethod.POST;
        // Set the post parameters
        var params:URLVariables = new URLVariables();
        params.name = "filename.ext";
        requestURL.data = params;
        // Start uploading the file to the server
        uploadFile.upload(requestURL, "file");
    Here is the code for the API calls:
    private function sendHTTPPost(apiFile:String, postParams:Object, resultCallback:Function, initialCallerResultCallback:Function):void
        var httpService:mx.rpc.http.HTTPService = new mx.rpc.http.HTTPService();
        httpService.url = AppEnvironment.instance.serverHostname + apiFile;
        httpService.method = "POST";
        httpService.requestTimeout = 10;
        httpService.resultFormat = HTTPService.RESULT_FORMAT_TEXT;
        httpService.addEventListener("result", resultCallback);
        httpService.addEventListener("fault", httpFault);
        var token:AsyncToken = httpService.send(postParams);
        // Add the initial caller's result callback function to the token
        token.initialCallerResultCallback = initialCallerResultCallback;

    Could you please open a new bug report on this over at bugbase.adobe.com? Please include sample media, code, project or app to help us reproduce the problem. Did this occur on the desktop or mobile device? Finally, once the bug has been added would you mind posting back with the URL so that others affected can add their votes and comments? Thanks!

  • Excessive connection latency... Does Adobe Air support connection pooling on mobile?

    Hello,
    I am developing a mobile app which loads thumbnail images from a remote server. During testing on the Android platform, however, I have discovered that images are very slow to load. By monitoring server logs I have determined that the poor performance is caused by the lack of connection pooling, meaning that each request builds a new connection. Running the sample code below on a mobile device produces 20 requests and 20 connection attempts. By comparison, the same web or desktop app creates 2 connections and reuses those connections for subsequent requests. The substantial overhead and latency associated with generating new connections has a substantial affect on performance, with 20 thumbnails taking approximately 4-5 seconds to load on mobile versus 0.5 - 1 second on a desktop.
    I have included a sample app below to emphasis the performance issue. The image itself is very small (290 bytes) to focus the issue on connection latency. I have confirmed this behavior on numerous Android devices, running 4.1, 4.0, and 2.3. I have also attempted using Loader v. URLLoader v. URLStream and sequential v. simultaneous loading with no change in connection behavior. Attempting to set the connection to 'keep-alive' in the URLRequest also has no affect.
    package
              import flash.display.Loader;
              import flash.display.Sprite;
              import flash.display.StageAlign;
              import flash.display.StageScaleMode;
              import flash.events.Event;
              import flash.net.URLRequest;
              import flash.utils.getTimer;
              public class Main extends Sprite
                        private var _count:int = 0;
                        public function Main()
                                  super();
                                  stage.align = StageAlign.TOP_LEFT;
                                  stage.scaleMode = StageScaleMode.NO_SCALE;
                                  trace("Start time " + getTimer() + " ms");
                                  var loader:Loader;
                                  var url:String = "http://fbcdn-profile-a.akamaihd.net/static-ak/rsrc.php/v2/yo/r/UlIqmHJn-SK.gif";  // 290 bytes
                                  for (var i:int = 0; i < 20; i++) {
                                            loader = this.addChild(new Loader()) as Loader;
                                            loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
                                            loader.load(new URLRequest(url));
                        private function complete(event:Event):void
                                  _count++
                                  trace("Finished " + _count + " at " + getTimer() + " ms");
    So, I have a couple questions:
    1) Is there something that I can do to enable connection reuse?
    2) Is this an inherent limitation with Adobe Air for mobile?
    3) Can someone confirm whether this limitation exists on other mobile platforms (iOS or Blackberry)?
    Any help that you can provide would be greatly appreciated. I am really hoping that this isn't a fundamental limitation of Adobe Air as it causes my app to feel very sluggish.
    Thanks,
    Adam

    Hmm. You were absolutely correct, that's a bit disappointing!
    This is Android recompiled for 3.4 rather than 3.1.
    null
    COMPLETED 50 with 8 loaders in 11327 milliseconds or 226.54 per load.   50           8              11327    226.54
    COMPLETED 50 with 50 loaders in 8899 milliseconds or 177.98 per load.   50           50           8899       177.98
    COMPLETED 50 with 50 loaders in 9280 milliseconds or 185.6 per load.     50           50           9280       185.6
    COMPLETED 50 with 50 loaders in 9513 milliseconds or 190.26 per load.   50           50           9513       190.26
    COMPLETED 50 with 8 loaders in 9744 milliseconds or 194.88 per load.     50           8              9744       194.88
    COMPLETED 50 with 1 loaders in 16383 milliseconds or 327.66 per load.   50           1              16383    327.66
    Versus Apple iPad recompiled for 3.4 rather than 3.1.
    null
    COMPLETED 50 with 8 loaders in 502 milliseconds or 10.04 per load. 50      8        502    10.04
    COMPLETED 50 with 50 loaders in 100 milliseconds or 2 per load.     50      50      100    2
    COMPLETED 50 with 50 loaders in 117 milliseconds or 2.34 per load. 50      50      117    2.34
    COMPLETED 50 with 50 loaders in 93 milliseconds or 1.86 per load.  50      50      93      1.86
    COMPLETED 50 with 8 loaders in 270 milliseconds or 5.4 per load.    50      8        270    5.4
    COMPLETED 50 with 8 loaders in 307 milliseconds or 6.14 per load.  50      8        307    6.14
    COMPLETED 50 with 8 loaders in 316 milliseconds or 6.32 per load.  50      8        316    6.32
    COMPLETED 50 with 4 loaders in 555 milliseconds or 11.1 per load.  50      4        555    11.1
    COMPLETED 50 with 4 loaders in 547 milliseconds or 10.94 per load. 50      4        547    10.94
    COMPLETED 50 with 4 loaders in 535 milliseconds or 10.7 per load.  50      4        535    10.7
    COMPLETED 50 with 2 loaders in 1038 milliseconds or 20.76 per load.        50      2        1038          20.76
    COMPLETED 50 with 2 loaders in 1042 milliseconds or 20.84 per load.        50      2        1042          20.84
    COMPLETED 50 with 1 loaders in 2107 milliseconds or 42.14 per load.        50      1        2107          42.14
    COMPLETED 50 with 1 loaders in 2099 milliseconds or 41.98 per load.        50      1        2099          41.98
    Both are on release compile, which should take out all of the variability. So, yes, it looks as if the 3.4 AIR runtime has lost the connection pooling but ONLY for Android.
    PS: Code I used in my test (which was a conventional View based Mobile app) is below in case you want to include it when you submit a bug report.
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark" title="TestLLatency" xmlns:mx="library://ns.adobe.com/flex/mx">
    <fx:Script>
      <![CDATA[
       import mx.events.FlexEvent;
       protected function uicomponent1_creationCompleteHandler(event:FlexEvent):void
        startTest();
       public function startTest():void {
        if(queue) throw new Error("Please wait for previous test to end.");
        queue = new Array();
        _count = 0;
        var loader:Loader;
        var i:int;
        for (i = 0; i < numToQueue; i++) {
         loader = bob.addChild(new Loader()) as Loader;
         loader.x = (i%10)*50;
         loader.y = Math.floor(i/5)*50;
         loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
         queue.push(loader);
        startTime = getTimer();
        for(i=0;i<numLoaders;i++) {
         nextQueue();
       protected var startTime:int;
       protected var endTime:int;
       protected var numToQueue:int = 50;
       protected var numLoaders:int = 8;
       protected var queue:Array;
       private var _count:int;
       private function complete(event:Event):void
        _count++
        nextQueue();
       [Bindable] protected var results:String;
       protected function nextQueue():void {
        var url:String = "http://fbcdn-profile-a.akamaihd.net/static-ak/rsrc.php/v2/yo/r/UlIqmHJn-SK.gif";  // 290 bytes
        if(queue && queue.length) {
         var loader:Loader = queue.pop() as Loader;
         loader.load(new URLRequest(url));
        } else if(_count==numToQueue) {
         endTime = getTimer();
         var elapsed:int = endTime-startTime;
         results += "\n"+("COMPLETED "+numToQueue+" with "+numLoaders+" loaders in "+(elapsed)+" milliseconds or "+(elapsed/numToQueue)+" per load.\t"+[numToQueue,numLoaders,elapsed,elapsed/numToQueue].join("\t"));
         queue = null;
         while(bob.numChildren>5) {
          bob.removeChildAt(bob.numChildren-1);
         bob.getChildAt(0).addEventListener(MouseEvent.CLICK,repeatTest);
         bob.getChildAt(1).addEventListener(MouseEvent.CLICK,repeatTest);
         bob.getChildAt(2).addEventListener(MouseEvent.CLICK,repeatTest);
         bob.getChildAt(3).addEventListener(MouseEvent.CLICK,repeatTest);
         bob.getChildAt(4).addEventListener(MouseEvent.CLICK,repeatTest);
       protected function repeatTest(event:MouseEvent):void {
        var dob:DisplayObject = event.target as DisplayObject;
        var testBehaviour:int = dob.parent.getChildIndex(dob);
        try {
         switch(testBehaviour) {
          case 4 :
           this.numLoaders = this.numToQueue;
           break;
          case 3 :
           this.numLoaders = 8;
           break;
          case 2 :
           this.numLoaders = 4;
           break;
          case 1 :
           this.numLoaders = 2;
           break;
          case 0 :
           this.numLoaders = 1;
           break;
         startTest();
         dob.removeEventListener(MouseEvent.CLICK,repeatTest);
         for(var i:int=0;i<5;i++) bob.removeChildAt(0);
        } catch(e:Error) {
         trace(e.message); 
      ]]>
    </fx:Script>
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:HGroup width="100%" height="100%">
      <mx:UIComponent id="bob" width="100%" height="100%" creationComplete="uicomponent1_creationCompleteHandler(event)" />
      <s:TextArea text="{results}" width="100%" height="100%" />
    </s:HGroup>
    </s:View>

  • Cannot connect to stratus from adobe air 1.5???

    Hi,
    I have tried this code from flash actionscript 3 and it connected to stratus and the event netConnectionHandler was called .  When I cutted and pasted it to ADOBE  AIR 1.5 and tested it. Nothing happened.  Did I forget something to make it to work in Adobe Air 1.5?
    Thanks
    var netConnection:NetConnection;
    var ns:NetStream;
              netConnection = new NetConnection();
        netConnection.addEventListener(NetStatusEvent.NET_STATUS, netConnectionHandler);
        netConnection.connect("rtmfp://stratus.adobe.com/8a5434f1fe6ca34eb1b1cc79-d3498defa7ba");
    function netConnectionHandler(event:NetStatusEvent):void{
        trace(event.info.code);

    Following code can work well in AIR1.5.
    Perhaps you developer key is wrong,it is '8a5434f1fe6ca34eb1b1cc79-d3498defa7ba',not '8a5434f1fe6ca34eb1b1cc79-d3498 defa7ba'.
    Please check it.
    stratusPath="rtmfp://stratus.adobe.com/8a5434f1fe6ca34eb1b1cc79-d3498defa7ba/";
    myNC=new NetConnection();
    myNC.client=this;
    myNC.addEventListener(NetStatusEvent.NET_STATUS,stratusStatus);
    myNC.addEventListener(SecurityErrorEvent.SECURITY_ERROR,securityError);
    myNC.addEventListener(AsyncErrorEvent.ASYNC_ERROR,asyncError);
    myNC.connect(stratusPath);

  • Adobe Air Apps connection

    Forgive the amateur nature of this question if the answer is
    readily out there.
    As an Adobe AIR apps user, how do Adobe Air applications
    connect to the internet and how can this be configured...I don't
    seem to see a readily apparent shell application with settings that
    can be modified. I ask because here (in my workplace) I have
    internet capabilities, but because I function behind a firewall,
    the connection isn't open to any app on any port.
    (I'm running on XP, incidentally)
    Thoughts? Direction?

    AIR applications use the networking support provided by the
    underlying OS. On XP, any required configuration is done via the
    Internet Options control panel. Assuming your machine already
    configured to access the internet, no additional configuration
    should be necessary.
    Oliver Goldman | Adobe AIR Engineering

  • Help required : Adobe AIR to Teradata connectivity

    Hi,
    I would like to know if any one has connected to teradata database from Adobe AIR. If so, please let me know how you did that.
    Thanks,
    Sasi.

    Could you try manually deleting the following folder: /Library/Frameworks/Adobe AIR.framework ?  Once deleted, try installing again.
    Thanks,
    Chris

  • Is Adobe Connect Mobile built on Adobe Air?

    I want to know is adobe connect application built on adob air platform?
    Are there any native extions used if it is built on air?

    I believe it doe run on AIR.
    What do you mean by native extensions? Do you mean objects you can load in the Share pod and have it work in the mobile app?
    I know that you can load PPT(X), FLV, JPG, PNG, and MP3 file and they should display properly in the mobile app. MP4, F4V, and PDF may also work, but I'm not 100% sure on those.
    I do know that SWF content does not currently work in the mobile app.

  • It appears that Adobe Air does not support persistent HTTP connections?

    As far as we can tell, Adobe Air does not support persistent HTTP connections via KEEPALIVE
    Thus a new connection has to be established to the server, making certain types of network intensive applications slow.
    Can anyone confirm if this is correct - is there any way to get Adobe Air to support KEEPALIVE and maintain persistent server connections?
    a

    I am trying to get 3.3 Beta 2 with Flash Builder 4.6 on Windows 7 x64bit to work. But still no luck.
    I have Flash Builder 4.6 on Win7 to work no problem.
    I have updated the playerglobal.swc to 11.3 using http://labsdownload.adobe.com/pub/labs/flashplatformruntimes/flashplay er11-3/flashplayer11-3_p2_playerglobal_041812.swc
    but still run into the same problem below:
    I can't go through the steps to create a new Flex Mobile Project because of the following error "Air 3.3 Beta does not support mobile projects".
    However, I have no problem creating a Flex Project (Web & AIR) and ActionScript Mobile Project.

Maybe you are looking for

  • Is Photoshop Elements organizer 9 compatible with the most current version?

    I have a large photo collection organized with Photoshop Elements 9 organizer.  I am hoping that i can import the album data file (tags, names, folders, etc.) into the newest Photoshop Elements organizer, version 13. Thoughts or suggestions? I would

  • I tunes cannot be install on this computer powerbook g4

    i download itunes 10.7 because my ipad and my iphone wont connect with the old one went i try too install itune 10.7 they told cant be install on this computor why?

  • How to read Archive data??

    Hi, I am developing a program which requires me to retrive the <b>archive</b> data of table BSAK and then fill it into an itam then output the list. I use T-code 'SARA' to find the object name is 'FI_DOCUMNT'. There u can find that BSAK is contained

  • Asset acquisition and post acquir

    I have following question: I create asset master data in 2010.10.1, acquired using f-90 in 2011.1.04 with value 2000 USD, I have closed 2010 book. now I use post -capitalization abna n, input 2010.12.31 as posting date, it says "the date entered is n

  • Hey guys help me!! I lost XSkey..

    Today, I lost it.!! I don't have any idea to get new one... I must buy new Logic pro?? plz.. let me know what to do.. E-mail me... [email protected]