Tutorial Showing How to Use SQLite with Classes

I am writing a mobile app with Flex 4.5.1 and I will need to write and read to a SQLite database.  The previous times I have done this in previous versions of Flex, I just put all of my database code on the same main page which wasn't the most efficient way to do it, but it worked.
I've been looking all over to find a tutorial that shows how to set the database up so that it is "called" when needed and I'm assuming it would be put in a Class for this to happen.  Can anyone direct me to some examples showing how to do this?
Thank you in advance.
Dave

If I type it as you showed in the example, I get a "1170: Function does not return a value." error when I try to save the AS document.  Here's what my code looks like:
public function getThings():ArrayCollection
            stmt = new SQLStatement();
            stmt.sqlConnection = sqlConnection;
            stmt.text = "SELECT * FROM contract";
            stmt.execute();
Thanks.

Similar Messages

  • How to use annotation with GUI in swing

    hi,
    i am new to annotation. I know how to use this with classes, methods and java elements. I am developing a tool in applet to post comment on my notepad, but unable to find that how to use this with GUI of swing. I have gone through most of forums and tutorials but got no idea. Anyone could give me little idea.
    Thanks

    >
    i need to use the applet mousedown function in swing..>There is no such class as 'applet' in the JRE, Swing has an upper case 1st letter, functions in Java are generally referred to as methods, and there is no 'mousedown' method in the JRE.
    OTOH a Swing JApplet inherits the mouseDown method from Component, and it was deprecated in Java 1.1. The documentation (JavaDocs) provides instructions on what to use instead.
    >
    is there any way to use it or any other alternative is available for this?
    if can provide me a sample code.>If can provide me cash. Short of that, you might actually need to do some research/coding of your own.
    As an aside. What does any of this have to do with Java 2D?

  • How to trigger New page while using ALV with classes/oops?

    Hi All
    I am trying to print a report which has to show the data in two pages.
    I am using ALV with classes/oops.
    Though I am able to print the report but a new page is not coming. Whole of the data is coming in one single page.
    Please tell me as to how to trigger a NEW PAGE while using ALV with classes/oops.
    Please send some code samples also if available.
    Thanks in advance.
    Jerry

    using sort option you can do it. in case of grid/oo alv class ALV you can view that only in print mode/preview mode.
    in case of list you can view that directly.
    sort-fieldname = 'FIELDNAME'.
    sort-group = '*'  "triggers new page
    sort-up = 'X'.
    append sort to it_sort.

  • It says I can drag Pages documents from iMac to iCloud. But nothing shows up. Using latest with all turned on. How do I get Pages up to iCloud? The little wheel like action menu does not appear.

    It says I can drag Pages documents from iMac to iCloud. But nothing shows up.
    Using latest with all turned on. How do I get Pages up to iCloud? The little wheel like action menu does not appear.

    yes is tehre another way
    the directions do not explain anything other than drag
    or use the little action wheel menu

  • HT1208 Where do I find a tutorial about how to use the new iTunes? I have version 11.1.3 (8). I looked on the Apple web site but only found info extolling the virtues of iTunes, not how to use it.

    Where do I find a tutorial about how to use the new iTunes? I have version 11.1.3 (8). I looked on the Apple web site but only found info extolling the virtues of iTunes, not how to use it.

    Use it the same way as previously.
    ctrl B shows the menus.
    ctrl S shows the sidebar.
    What else do you need help with?

  • Need pointers on how to use SQLite in  ADF Mobile applications

    Hey,
    I am trying to develop an ADF mobile App. I am new to ADF mobile. I went through some of the tutorials but still need some clarification on how to use SQLite inside the application. Can i get a Data control out of it? Or is it just to read and write data .
    that brings me to the other question, Is the 'demo.db' i.e the db file which represents the Database, supposed to be packaged as a resource with the application?
    Pls give me some info abt this.. If you can provide me links with this information, it would be of great help.
    Thanks,
    Jithesh

    You can expose a java class containing methods (select, update, ...) as a Data Control.
    Yes, you need to add your .db as a resource.
    Here a blog post about SQLite in ADF Mobile:
    http://adf4beginners.blogspot.be/2013/03/adf-mobile-sqlite-in-adf-mobile.html

  • How to use Tooltips with JTree

    Hi to all,
    i need to show tool tip with on mouse over event on JTree. Tooltip text should be
    dynamic and its value depends on tree node.
    i did't implemented tooltips as of now. i have visited some sites but i did't
    get good information. Please suggest me that wher to start this.
    Thanking You

    Sun's JTree tutorial has an example that shows how to use tool tips in JTrees:
    http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html
    Look at the TreeIconDemo2.java example.

  • How to use the different class for each screen as well as function.

    Hi Experts,
    How to use the different class for each screen as well as function.
    With BestRegards,
    M.Thippa Reddy.

    Hi ThippaReddy,
    see this sample code
    Public Class ClsMenInBlack
    #Region "Declarations"
        'Class objects
        'UI and Di objects
        Dim objForm As SAPbouiCOM.Form
        'Variables
        Dim strQuery As String
    #End Region
    #Region "Methods"
        Private Function GeRate() As Double
                Return Double
        End Function
    #End Region
    Public Sub SBO_Appln_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)
            If pVal.BeforeAction = True Then
                If pVal.MenuUID = "ENV_Menu_MIB" Then
                End If
            Else ' Before Action False
                End If
        End Sub
    #End Region
    End Class
    End Class
    Rgds
    Micheal
    Vasu Anna Regional Feeling a???? Just Kidding
    Edited by: micheal willis on Jul 27, 2009 5:49 PM
    Edited by: micheal willis on Jul 27, 2009 5:50 PM

  • Where can I find a detailed tutorial on how to use Finder?

    Where can I find a detailed tutorial on how to use Finder?

    Start with this one:
    http://support.apple.com/kb/HT2470?viewlocale=en_US

  • How to use javap with jar files ?

    how to use javap with jar files ?
    thanks

    As long as the jar is on the class path, your gold. So,
    javap -classpath myjar.jar mypackage.MyClass
    Chuck

  • Can anyone recommend a good tutorial on how to use pre-designed website templates in Dreamweaver? Thks

    I am fairly new to Dreamweaver (cs6), having previously designed and maintained a few sites using Freeway. I purchased a template from TemplateMonster.com in the hope that this would simplify the creation of a new site. The template came without any instructions other than how to unzip the file. Their helpline really isn't helpful at all. Can anyone recommend an online tutorial on how to use a predesigned template? Lynda.com doesn't have one. Thanks!

    I found this page :
    http://www.templatemonster.com/dreamweaver-templates.php
    Followed a link. Ended up here :
    http://www.webdesign.org/tutorials/html-and-css/page-1.html
    Did a search. Found this :
    http://www.webdesign.org/search.html?keywords=dreamweaver&category=6
    Then this :
    http://www.webdesign.org/web-design-basics/templates-tuning/working-with-templat e-using-html-editor.1546.html

  • Help me!! How to use JavaScript with JSP ??

    I am using JDeveloper and I created a screen in JSP which uses a bean for database connectivity and retriving info onto the page.
    The page has a ListBox where list items are populated from the database.My requirement is
    whenever the list is changed the page shuold be refreshed with the selected item info.
    I tried to use 'JavaScript' for triggering the event with 'onChange' event of the ListBox.But the event is not getting invoked. I think JavaScript is not working with JSP.
    Please help me with how to Use javaScript with JSP or any other alternative where I can meet my requirement.
    I have one more question...I have gone through the JSP samples in OTN and I am trying do download the sample 'Travel servlet' which show list of countries...etc
    I have also gone through the 'readme' but I don't know how to extract .jar file.
    I would be great if you could help me in this.
    Thanks!!
    Geeta
    null

    We have a similar need. We have used Cold Fusion to display data from Our Oracle Database. We have a simple SElect Box in HTML populated with the oracle data. When someone selects say the State of Pennsylvania. then we have an On change event that runs a Javascript to go get all the cities in Pennsylvania.
    Proble we are having is that inorder for the Javascript to work , we currently have to send all the valid data.
    Do you know of any way to dynamically query the the Oracle database in Javascript

  • How to use assert with wireless toolkit?

    Hi,
    I am trying to find out how to use assert with wireless toolkit. I have found that I need to pass "-source 1.4" to the java compiler. But I can't find any documentation on how to do it.
    I'm using J2ME Wireless Toolkit 2.2.
    thanks
    Ludde

    Here's a quote from an article on Java World at http://www.javaworld.com/javaworld/jw-11-2001/jw-1109-assert.html
    "To support the new assertion facility in J2SE 1.4, the Java platform adds the keyword assert to the language, an AssertionError class, and a few additional methods to java.lang.ClassLoader."
    So I really think it's part of 1.4.

  • Tutorial on how to use BI Publisher in 11g

    We have not used BI Publisher before and want to evaluate if it helps with any of our business needs. Does anyone know of any good tutorial on how to use bi publisher in obiee 11g?
    Thanks.

    On the home page on the free to register technology network
    http://www.oracle.com/technetwork/middleware/bi-publisher/overview/index.html
    you will find resources such as
    * Oracle BI Publisher Datasheet - a 3 page overview document
    * Oracle BI Publisher Overview Presentation - (Recorded Presentation with Sound - 18 min)
    * Oracle BI Publisher - Benefits - Flash
    * Oracle BI Publisher - Quick Tour - Flash
    some sample reports
    http://www.oracle.com/technetwork/middleware/bi-publisher/xmlpsamples-099828.html
    and a tutorial with screen shots
    Getting Started with Oracle BI Publisher 11g
    http://st-curriculum.oracle.com/obe/fmw/bi/bip/bip11g/gettingstarted/gettingstarted.htm

  • How to use BAPI with Decision Dialogue

    Hi Gurus
    would you please let me know how to use BAPI with decision dialogue in guided procedure .
    I have a BAPI checking logon credentials for the user . how to use this BAPI for making decisions that is if the logon is correct then perform one process else go to logon screen again .
    Thanks in advance
    Regards Namita

    Hi Namita,
    1. Follow the steps mentioned in section <a href="http://help.sap.com/saphelp_crm50/helpdata/en/33/198141f906040de10000000a1550b0/frameset.htm">Exposing an RFC-Enabled Function Module as a Callable Object</a> to use the BAPI as a Callable Object.
    2. Follow the steps mentioned in tutorial # 93 and 93a in the CAF Tutorial Center for the decision part.
    Hope these helps.
    Nilay

Maybe you are looking for

  • How to create a virtual directory for the Report Server

    Hi, I am new to server admin and need help with configuration. I would like to map a physical directory on the server so that users can use a virtual path to save report outputs in that location. For example the form will call the report with desname

  • DRIVER_POWER_STATE_FAILURE Windows 8.1 Pro x86

    My system is a Samsung Model XE500T1C-HA1US Tablet PC. I am running Windows 8.1 Pro x86 I get the DRIVER_POWER_STATE_FAILURE error message on a Blue Screen when I attempt to shut down the PC. After the error, the system boots back into the Windows lo

  • HOW TO IMPLEMENT SCREEN VALIDATION IN LDB?

    Hi, I am making use of Logical Database in my report, and I want to do screen validation with the screen which already exists in the system? Is it possible to do so? If yes, then how? The LDB, I am using is PSJ. Also, I would like to know, can we def

  • Problem With Insert statement using field symbols with unicode enabled

    I was writng a function module for dyanamic operations on the table. We are using the field symbols, function module is unicode enabled. Assign statements are working fine, with which we created work are <fs_wa_header> and internal table <fs_tb_item>

  • Auto Model 2 - Constant forecast 1 historical period

    I have a composite forecast (100% each) consisting of 5 univariate models that should select the best model based on MAD.  I have a product that has only 1 historical period of actuals in the last 36 months.  I would have expected the Auto Model 2 to