Where is the database connection for a mobile site?

I have a Flash mobile site that I didn't create, but need to edit. On clicking the submit button it checks that the login & password are in a SQL database. The problem is, I can't find the method that runs a query on the database or where the database is even connected. I've tried searching through the code for words like "SQL", "database", and "connection" without success. I stepped through the code where I find a call to method "super", but then it goes back to the original method and then the user is logged in. Can someone explain where the call to the database is?
Other things I'd like to know are: Where is the SQL Connection? In the main (non-mobile site), there is a web.config with a line that says
<add name="TPConnectionString1"  connectionString="DataSource=xxx.xx.xxx.xx,xxxx\sqlexpress;Initial Catalog=TP;Persist Security  Info=True;User ID=xxxxx" providerName="System.Data.SqlClient"/>
Where (what file: ex. web.config, xyz.as, etc.) would a similar line in the mobile code be?
What does super(type, bubbles, cancelable) do?
Here's the method for the submit button: LoginView.mxml
        private function btnclicked():void{  techController.username = txtUsername.text;  techController.password = txtPassword.text;  var evt:TechEvent = new TechEvent(TechEvent.LOGIN_USER);  this.dispatchEvent(evt);  }
Here's the TechEvent function that is called: TechEvent.as
    public function TechEvent(type: String, bubbles:Boolean=true, cancelable:Boolean=false)  {  super(type, bubbles, cancelable);  }
Here's the dispatchEvent method: UIComponent.as
override public function dispatchEvent(event:Event):Boolean  {  if (dispatchEventHook != null)  dispatchEventHook(event, this);    return super.dispatchEvent(event);  }

You are looking for an event handler for the TechEvent.LOGIN_USER event.
Coding style looks similar to a SWIZ style framework, in which case, the event handlers could be defined using metadata [EventHandler] or [Mediate] tags, but could just be a plain simple .addEventListener(TectEvent.LOGIN_USER,fn); declaration earlier on.
Either way, this is what has happened:
1. User enters uname and password, then clicks button
2. Button click handler populates the techController with relevant values then dispatches an event to let the world know it has done so
3. The event handler checks the techController and makes the login call
4. Some time later, the server will respond and trigger another event that the app can respond to
G

Similar Messages

  • Where is the hardware connection for TTL 0 on the NI Camera Link Extension board?

    In the example project for the PCIe-1473, there is a TTL 0 I/O :
    Yet, the user manual only shows TTL 1-8 :
    Does this I/O pin exist?
    Solved!
    Go to Solution.

    I believe TTL 0 is the small SMB connector at the bottom of the card, below the two Camera Link connectors.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Has anyone tried using the app Telnames for their mobile sites/storage?

    Have been looking at EverWeb and lurking in the forums following the discussions regarding it. Downloaded the demo and it seems like more then I want to do. (Still using iWeb for my main site)
    While looking for alternatives I saw Telnames on App Store. I would like to know if anyone has tried using/buying it? I will be working on a 6+ and building a Bed and Breakfast mobile site. 
    Thanks in advance
    D

    Thanks for the info on symlinks. I pretty much already convinced the powers above me this was a bad idea because of the horrible performance and problems getting OS X to even recognize it as a home directory, but the symlink info is the nail in the coffin. We have had great success using windows file servers for our network home directories (we are a complete windows shop besides my macs) and I really didn't want to change anyways.

  • Where do I put the .jar file for the database connection?

    I am trying to connect to an Oracle 11g database. I see under the coldfusion settings summary that the java version is 1.7.0_55. So I downloaded the ojdbc7.jar file from Abode.com. Now the question is where do I put it so that coldfusion can access it?
    Of course I need to set up the database connection (which I still don't have the connection string for), but I still need to know where to put the ojdbc.jar file.
    Thanks.

    jasonwryan wrote:What does the man page say?
           The  program  has builtin defaults and temperature thresholds but users
           can   specify   their   own    settings    in    configuration    files
           /etc/default/i8kmon  and  ~/.i8kmon.   The daemon defines 4 states with
           different fan speeds ({0 0}, {1 0}, {1 1}, {2 2}) and  for  each  state
           are  defined  the temperature thresholds which cause the switching to a
           higher or lower  state.  Furthermore  each  state  can  have  different
           thresholds  for operation on ac power or battery.  For example the fol‐
           lowing configuration:
    I've put the following file in /etc/default/i8kmon:
    # Run as daemon, override with --daemon option
    set config(daemon) 0
    # Automatic fan control, override with --auto option
    set config(auto) 1
    # Report status on stdout, override with --verbose option
    set config(verbose) 1
    # Status check timeout (seconds), override with --timeout option
    set config(timeout) 1
    # Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
    set config(0) {{-1 0} -1 50 -1 50
    set config(1) {{-1 1} 50 70 50 70}
    set config(3) {{-1 2} 70 128 70 128}
    But it doesn't seem to do anything. I'm running a Dell Inspiron 3521 with no dedicated GPU, so it only has one fan. I was somehow able to get i8kmon to work in Ubuntu by putting this config in /etc/i8kmon, but can't get it to work in Arch. Putting it in /etc/i8kmon and /etc/default/i8kmon doesn't do anything.

  • Where is the Workflow Installation for 10g Database ?

    Hi ,
    Where is the Workflow Installation for 10g Database?
    Thanks!

    http://otn.oracle.com/software/products/workflow/index.html
    Pick your platform.

  • Try to connect oracle in portal 4.0 and cannot create database connection for the realm

    hello,
    i have try to use the method in configuring Weblogic Portal for Oracle Database.
    I have made all with no problems
    but when i stop and i start the weblogic portal i have this error
    java.lang.IllegalAccessError: Exception[com.bea.p13n.security.realm.RDBMSException
    : An error occured creating a database connection for the realm.]
    Any one have a solution? Thx!

    Jean-Philippe,
    This usually is due to a DB configuration issue. Check your RDBMS realm
    username, password and driver properties. Check your database is running and
    have enough Connection free.
    Sincererly,
    Daniel Selman
    "jpmeert" <[email protected]> wrote in message
    news:3c88e867$[email protected]..
    >
    hello,
    i have try to use the method in configuring Weblogic Portal for OracleDatabase.
    >
    I have made all with no problems
    but when i stop and i start the weblogic portal i have this error
    java.lang.IllegalAccessError:Exception[com.bea.p13n.security.realm.RDBMSException
    : An error occured creating a database connection for the realm.]
    Any one have a solution? Thx!

  • Monitoring/debug the database connection process

    Hi,
    I am trying to define a new database connection using the JDBC-ODBC Bridge (trying to connect to a legacy apps), and keep getting an error message from the ODBC driver manager, which work perfectly fine outside the JDev environment.
    Is there a way for me to monitor/debug the database connection process, prior to a successful test connection, in order for me to find out exactly where/what the problem is?
    Thanks for the help,
    Arie.

    Repost

  • Where are the sample files for dreamweaver cs 5.5 on Adobe TV?

    where are the sample files for Dreamweaver cs 5.5 on Adobe TV? video says there there, but there not! Video even shows where to find them, but there still not there! Were they just to big for Adobes servers to handle so the had to take them down to make space?  : )  Please help, could really use them. Thanks! : )

    CS5.5 is now 4 versions behind CS6, CC and CC2014.
    This tutorial was written for CS5 and it works with CS5.5. You'll find the supporting files for it under Sample Files on the right.
    Building your first dynamic website – Part 1: Setting up the site and database | Adobe Developer Connection
    Nancy O.

  • Closing the database connection after report in a server application

    I searched these forums and the internet for a definitive answer on asking the Crystal SDK for java to close the jdbc connection after it has generated a report.  We have been using the Crystal Report SDK to generate reports within our JEE application, built upon the Spring framework, for the past two years.  It works well, especially if you prepare views in the database for your reports.
    From what I can tell once you have used ReportClientDocument to create your report you all the close() method to release resources associated with report generation, but this does not close the jdbc database connection.
    Further research states that if you are using the CrystalReportViewer you can call the dispose method to close the database connection.  We are not using JSP nor this class, so that does us little good.
    Finally I found a post that one could call ((AdvancedReportDocument)reportClientDocument.getReportSource()).dispose().  This doesn't drop the connection either.
    Each report actually opens 3 connections according to SQL Server.  Each report will reuse the connections it has open, so for 50 reports, theoretically, we could have up to 150 connections.  We explained to our client those connections  remain inactive, however this is unacceptable to our client as they would like to minimize the number of connections left open to their database.
    If anyone can post any further information on this issue, it is much appreciated.

    Yes, another team member found the issue.  Quite embarrassing really I didn't see it.  I was looking for the answer within Crystal's libraries.  It had nothing to do with Crystal.
    The developer who wrote the helper code for using Crystal first opened a connection to the datasource for the live production database and read that connection information for the report. Next he set that connection information in the report template's PropertyBag, then ran the report. The developer however forgot to close the connection he used to look up the connection info, leaving a memory leak and using up all the connections.
    I'm glad you inquired.  I forgot to post the resolution here.

  • Error while applying a patch "Unable to get the database connection"

    Dear Experts,
    A patch which got successfully applied is failing Production and the error is kind of surprising to me.
    Apps version is 11.5.10.2
    db version is 10.2.0.4
    The worker log file shows
    Time when worker restarted job: Thu Nov 24 2011 22:14:52
    Start time for file is: Thu Nov 24 2011 22:14:52
    adjava -ms128m -mx256m -nojit oracle.apps.fnd.odf2.FndXdfCmp &un_apps &pw_apps &un_apps &pw_apps &jdbc_protocol &jdbc_db_addr table &fullpath_pa_patch/115
    Reading product information from file...
    Reading language and territory information from file...
    Reading language information from applUS.txt ...
      Temporarily resetting CLASSPATH to:
      "/erp/oracle/prodappl/ad/11.5.0/java/adjri.zip:/usr/java14/jre/lib/charsets.jar:/usr/java14/jre/lib/core.jar:/usr/java14/jre/lib/graphics.jar:/usr/java1
      Calling /usr/java14/bin/java ...
    Exception occured
                  Copyright (c) 2003 Oracle Corporation
                     Redwood Shores, California, USA
             XDF(XML Object Description File) Comparison Utility
                            Version 1
    NOTE: You may not use this utility for custom development
          unless you have written permission from Oracle Corporation.
    Unable to get the database connection using schema username/passwordIo exception: The Network Adapter could not establish the connection
    AD Run Java Command is complete.
                         Copyright (c) 2002 Oracle Corporation
                            Redwood Shores, California, USA
                                        AD Java
                                     Version 11.5.0
    NOTE: You may not use this utility for custom development
          unless you have written permission from Oracle Corporation.
    AD Worker error:
    The above program failed.  See the error messages listed
    above, if any, or see the log and output files for the program.
    Time when worker failed: Thu Nov 24 2011 22:14:53
    {code}
    The error says database connection error.  I am able to connect to the database using sqlplus.  I tried to restart the failed worker, but the same error is repeating. 
    Any help would be appreciated.
    Thanks
    qARS
    Edited by: user7640966 on Nov 24, 2011 9:07 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hussein,
    One thing which I noticed now is in the apps Tier the
    tnsnames.ora under $TNS_ADMIN
    shows entry like this:
    PROD=
            (DESCRIPTION=
                    (ADDRESS=(PROTOCOL=tcp)(HOST=<appsServerName>)(PORT=1521))
                    (ADDRESS=(PROTOCOL=tcp)(HOST=<dbServer>)(PORT=1521))
                (CONNECT_DATA=
                    (SID=PROD)
            )Actually *(ADDRESS=(PROTOCOL=tcp)(HOST=<appsIPaddress>)(PORT=1521))* this line in the tnsnames.ora is not correct. In fact the appsServerName should be replaced with dbServerName
    I deleted the tnsnames.ora and reran autoconfig but it is again recreating the same entry.
    Any clue how this can be fixed?
    Thanks
    qARS

  • Why do I get a class conflict between the Prepare SQL.vi and the Get Column Name.vi with the SQL Toolkit compatibility vis from the Database Connectivity Toolkit?

    I have done extensive programming with the SQL Toolkit with LabVIEW versions through 6.1. My customer now wants to upgrade to Windows 7, so I am trying to upgrade to LabVIEW 2009 (my latest purchased version) using the Database Connectivity Toolkit, and the SQL Toolkit Compatibility vis. Everything seemed to be going okay with the higher level SQL operations, but I ran into trouble with the Get Column Name.vi. 
    The pictures below show the problem. The original SQL Toolkit connected the Prepare SQL.vi with the Get Column Name.vi with a cluster of two references, one for connection, and one for sql. The new compatibility vis have a class conflict in the wire because the Prepare SQL.vi contains a cluster with connection, and command references, but the Get Column Name.vi expects a cluster with connection and recordset references. 
    How do I resolve this conflict?
    Thank You.
    Dan

    I've never worked with the old version of the toolkit, so I don't know how it did things, but looking inside the SQL prep VI, it only generates a command, and the the column name VI wants a recordset. I'm not super familiar with all the internals of ADO, but my understanding is that is standard - you only have the columns after you execute the command and get the recordset back. What you can apparently do here is insert the Execute Prepared SQL VI in the middle and that will return what you need.
    I'm not sure why it worked before. Maybe the execute was hidden inside the prep VI or maybe you can get the column names out of the command object before execution. In general, I would recommend considering switching to the newer VIs.
    Try to take over the world!

  • Problem in getting the database connection from a connection pool

    Hai All,
    I am facing a problem in getting the database connection from a connection pool created on weblogic server 8.1.
    I am using the Oracle database 8.1.7.
    I have configured my connection pool, datasource and JNDI in weblogic.
    In my java program i have the following code to retrieve the connection.
    import java.sql.*;    
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    class jdbcshp1 {
        public static void main(String[] args) {
         Connection connection = null;
         try {
               Hashtable ht = new Hashtable();
               ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");  // Wanna get rid of this.
               ht.put(Context.PROVIDER_URL,"t3://localhost:7001"); // wanna get rid of this.
               // Get a context for the JNDI look up
               Context ctx = new InitialContext(ht);
            javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("myjndi1");
              //Create a connection object
              connection = ds.getConnection();
         The above code is working fine but, the two ht.put statements are creating problem.
    The problem is, after converting the application into WAR file it can be deployed
    on any machine or different port on same machine. My application fails if its deployed on
    weglogicserver which is at different port.
    Is there any way that i can get rid of those ht.put statements or any other way to solve the problem.
    any help is appreciated.
    Thanks in advance
    Pooja.

    Hai All,
    Firstly, thanks for ur reply.
    Even i have seen some code which uses context constructor with out any parameter and works fine.
    i dont understand why its not working for my code.
    When i remove those ht.put code and use context constructor with out any parameter, it giving an error.
    Context ctx = new InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("ocjndi");
    connection = ds.getConnection();The error is as follows:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    the above error is forcing me to include those code but if the port number is changed the code will not work. Plz let meknow if some setting have to be made.
    I appreciate all ur valuable help.
    Thanks once again.
    Pooja.

  • When using the Database Connectivity Toolset, reads and writes with long binary fields are incompatible.

    I am trying to write LabVIEW Variants to long binary fields in a .mdb file using the Database Connectivity Toolset. I get errors when trying to convert the field back to a variant after reading it back from the database.
    I next tried flattening the variant before writing it and ultimately wound up doing the following experiments:
    1) If I use DB Tools Insert Data to write an ordinary string and read it back using a DB Tools Select Data, the string is converted from ASCII to Unicode.
    2) If I use DB Tools Create Parameterized Query to do an INSERT INTO or an UPDATE operation, specifying that the data is BINARY, then read it back using a DB Tools Select Data,
    the length of the string is prepended to the string itself as a big-endian four-byte integer.
    I can't think of any way to do a parameterized read, although the mechanism exists to return data via parameters.
    Presuming that this same problem affects Variants when they are written to the database and read back, I could see why I get an error. At least with flattened strings I have the option of discarding the length bytes from the beginning of the string.
    Am I missing something here?

    David,
    You've missed the point. When a data item is flattened to a string, the first four bytes of the string are expected to be the total length of the string in big-endian binary format. What is happening here is that preceding this four-byte length code is another copy of the same four bytes. If an ordinary string, "abcdefg" is used in place of the flattened data item, it will come back as <00><00><00><07>abcdefg. Here I've used to represent a byte in hexadecimal notation. This problem has nothing to do with flattening and unflattening data items. It has only to do with the data channel consisting of writing to and reading from the database.
    I am attaching three files that you can use to demonstrate the problem. The VI file c
    ontains an explanation of the problem and instructions for installing and operating the demonstration.
    Ron Martin
    Attachments:
    TestLongBinaryFields.vi ‏132 KB
    Sample.UDL ‏1 KB
    Sample.mdb ‏120 KB

  • I am using the database connectivity toolkit to retrieve data using a SQL query. The database has 1 million records, I am retrieving 4000 records from the database and the results are taking too long to get, is there any way of speeding it up?

    I am using the "fetch all" vi to do this, but it is retrieving one record at a time, (if you examine the block diagram) How can i retrieve all records in a faster more efficient manner?

    If this isn't faster than your previous method, then I think you found the wrong example. If you have the Database Connectivity Toolkit installed, then go to the LabVIEW Help menu and select "Find Examples". It defaults to searching for tasks, so open the "Communicating with External Applications" and "Databases" and open the Read All Data. The List Column names just gives the correct header to the resulting table and is a fast operation. That's not what you are supposed to be looking at ... it's the DBTools Select All Data subVI that is the important one. If you open it and look at its diagram, you'll see that it uses a completely different set of ADO methods and properties to retrieve all the data.

  • Where are the epson drivers for Mavericks for the artisan 835

    Where are the epson drivers for Mavericks for the artisan 835

    OMT8 wrote:
    Well, I have this printer too, and I get the following response from the System Prefs Printers and Scanners when I select to add this printer:
    "The software for this printer is currently unavailable. Please contact the printer’s manufacturer for the latest software."
    When you go to the Epson website for this particular printer it says:
    "The latest drivers for this product are available only via Apple's Software Update."
    And finally, when you go to Software Update it says: "No updates available"
    I second OMT8.
    Yes, the driver file at http://support.apple.com/kb/DL1398 allowed me to finally install my printer, but does Apple have _any idea_ how long it takes to download a 1.08GB file over a 1.5mbps DSL connection?
    Never mind how much of my pricey new SSD is being consumed by the resulting 1.80GB of driver files all for _one_ printer driver that should maybe occupy 200K?
    Or that the primary article on OS X printer drivers (http://support.apple.com/kb/HT3669) -- which does indicate that the Artisan 830 is supported -- does not mention or link to the driver file that's needed to make it work?
    Or what a complete violation of Apple's "it just works" gestalt it is to be confronted with the above Catch-22 and to have to search the web and then go through all of the above to make a new laptop talk to a two-year-old printer?
    Yes, my printer now works, and yes, Apple's Support Communities were instrumental in getting to this point. But spending all morning (plus download time) getting a printer driver installed tastes way too much like I paid for Apple and got Microsquish.
    -carl-

Maybe you are looking for

  • Premiere Elements 11 application fail

    Recently purchased Premiere Elements 11 as an upgrade to Elements 9 installed on my windows 7, core i5 PC. The application seemed to install OK but the desktop short cut failed as did trying to activate from c:/programs/adobe. I uninstalled and downl

  • Error in ME23N and MIGO

    My Company is using IS-Oil related Solution with standard MM module, while dealing with IS-Oil related cases in ME23n MIGO and in some other transactions in QA and PRD environment, SAP R/3 is giving a dump that “A conversion error occurred”. Error de

  • Publishing BW query to Enterprise Portal

    Hi Experts, I am BI Consultant , I created a 3 New BW Queries,thefront end report requirement is to published the report to the enterprise portal. I managed to create a iViews, role and folders for my bw queries. However I am difficulties in achievin

  • Why do all of my icons on my desktop get replaced with itunes icons?

    Seriously, this is annoying. every time i install itunes, every single program/shortcut on my desktop and start menu is replaced with an itunes icon. please help me?

  • CRM model nodes

    Hi I am new to weclient ui and i want to know how to use a model node. I have created a simple object in spro which is my ztable. so now, will i be able to acess the data in my ztable just by creating a model or do i need to any extra coding to get d