Best way to query SQLite db in mobile app

I have created a mobile app with a directory screen.  I'd like to query and display records from a SQLite DB and my question is what is the best method for doing that? I've created a SQL db with dummy records via SQLite Manager and I want to create a screen/article in Indesign that queries that DB and displays the resulting records.

When you say access for later, do you mean between application launches or at runtime?  If you want to persist sometihng between launches, you can use the persistenceManager object on the application.  This object allows you to save and retrieve key-value pairs.  If you want to do this at runtime, I would suggest just having some sort of service or object (such as an ArrayCollection) in the global scope so that you can easily retrieve the information as necessary.
When pushing on a new view, you can pass data to the new view using the pushView api.  This allows you to send some identifier or data object for a specific card to the next view so that i can properly display it.  For example:
navigator.pushView(CardView, cardData);
The new CardView will have the cardData object you sent set to its data property.  See http://opensource.adobe.com/wiki/display/flexsdk/View+and+ViewNavigator for more information.
Chiedo

Similar Messages

  • What is the best way to query planned orders or work orders for make items and identify the buy component that is short for supply and vice versa?

    What is the best way to query planned orders or work orders for make items and identify the buy component that is short for supply and vice versa?

    What is the best way to query planned orders or work orders for make items and identify the buy component that is short for supply and vice versa?

  • Best way to query extended events file in sql server 2012

    Hello all,
    is there any best way to xquery extended events async file i am having hard time sorting  out data in GUI and using xquery.
    Any help highly appreciated.
    thanks,
    ashwin.

    Yes, there might be better way to write it the way you did it. But since I don't know what you wrote or what you are looking for I can't give any advice. You need to be more specific.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • What is the best way to Query for a PXI Chassis in TestStand

    Hi All,
    I have some benches that have a PXI Chassis and others without. 
    I would like to Query for the Chassis and if it isn't there I will use another method of testing.
    Is there a way to query for the chassis and if there is how?
    Thanks
    Message Edited by glennjammin on 10-09-2009 09:23 AM
    Test Engineer
    L-3 Communications
    Solved!
    Go to Solution.

    Hi,
    You could use the VISA Find Resource function. If you get back PXI[bus]::device[::function][::INSTR] or PXI[interface]::[bus-]device[.function][::INSTR] then you have a PXI chassis
    regards
    Ray Farmer
    Regards
    Ray Farmer

  • Best way to query data with varchar (max) cloumn.

    Hi,
    I have joined  three table and selected 15colmuns over a period of 6months it tooks 10sec .
    I selected two more columns with varchar(max) datatype it took me 60sec.
    whats the best way to select varchar(max) over a period?
    Can anyone please help me on this?
    Thanks,

    I have joined  three table and selected 15colmuns over a period of 6months it tooks 10sec .
    I selected two more columns with varchar(max) datatype it took me 60sec.
    That appears to be normal behavior for any RDBMS.
    You can use the LEFT function to limit transmission volume from server to client:
    SELECT A.Title, A.DocumentSummary INTO tempdb.dbo.DocText
    FROM Production.Document A
    CROSS JOIN Production.Document B CROSS JOIN Production.Document C
    CROSS JOIN Production.Document D CROSS JOIN Production.Document E;
    -- (59049 row(s) affected)
    SET STATISTICS TIME ON
    DBCC DROPCLEANBUFFERS
    SELECT A.Title, A.DocumentSummary FROM tempdb.dbo.DocText A
    DBCC DROPCLEANBUFFERS
    SELECT A.Title, Prefix=LEFT(A.DocumentSummary,10) FROM tempdb.dbo.DocText A
    SET STATISTICS TIME OFF
    SQL Server Execution Times:
    CPU time = 172 ms, elapsed time = 787 ms.
    DBCC execution completed. If DBCC printed error messages, contact your system administrator.
    (59049 row(s) affected)
    SQL Server Execution Times:
    CPU time = 62 ms, elapsed time = 560 ms.s.
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • What's the best way to get user testing of our app (we're based in the UK)

    Hi all.
    We've just developed our first app for Palm and would really like to get some feedback from Palm users (our app allows users to take photos and send them as real printed postcards. We'd be very happy to give users free postcards in exchange for feedback).
    The problem we have is that Palm users are pretty sparse in the UK. We've found that user testing with non-Palm users becomes handset testing rather than app testing. We have to teach them how to use Palm ("Where's the back button?") and so the testing mainly focuses on the particularities of Palm rather than our app. Plus, we don't benefit from the user being able to compare to other Palm apps.
    Any advice on the best way to get feedback from Palm users? Especially as they'll need to download the SDK and install our app using it in order to get it onto their phones.
    If any of the users of this forum are interested in giving the app a go and sending us feedback, I'd love to send you the IPK and then chat. Just send me an email using [email protected]
    Our app is available for Pixi+, Pre+ and Pre2.
     Thanks,
     Freddie.
    Post relates to: Pixi Plus p121ueu (SFR)

    Hello freddie:
    Welcome to the Palm Forums. Thank You for the offer. I highly suggest offering it up
    to our many enthusiasts on Twitter as a beta with the #webos hashtag or joining
    the Precentral.net community and list it in a topic there, homebrew beta. You would
    get better beta response if you Package your app and put it in an ipk to simplify
    the install.
    Hope that helps... Best of luck with your app!
    notimeoff

  • Best way to handle login screen, transition to app

    I've got a working app in flex (I'm an "advanced beginner")...and now want to add a login screen ahead of the app.  My question is what is the best way to do so?  My options I see are:
    1. Login via HTTP screen: The is quick (no app load time), but not as pretty and harder to send parameters to the flex app.
    2. Flex login screen using viewstates/stack: I could create a login page and upon successful authorization, I could switch the currentstate (view) or use a viewstack to show the application.  This doesn't feel right - having the entire app in a viewstack or view state seems wrong somehow...
    3. Flex login app  which launches my main flex app:  I have no idea if this is possible, but feel right.  Quick load time to login, and no need to keep login app/screen in memory during main app execution.
    Can someone share a "best practice" ??  Thanks

    I'm not sure if it is best practice, but we are doing it as you described in #2. Our app isn't all that huge ( about 700k) and we decided we'd rather have the wait time while the app loads prior to login, rather than have them wait a long time after they submit their login.  It is also nice for us to keep it all in one Flex project.  Just thought I'd share what we are doing.

  • Whats the best way to create USER variable in BI Apps?

    I have just installled BI Apps and am trying to integrate EBS R12 with OBIEE 11g
    We have USER variable already defined in the BI Apps rpd.
    In EBS Security context init block i need to define USER variable, but when i define it... it says *'USER' has already been defined in the variable "Authentication"."USER"*
    Whats the best way to create USER variable for EBS Security Context init block?
    1) Delete the existing USER variable and then define a new one ( in this case all the places where USER variable is getting used in the rpd would become <missing>)
    And i was told that it should not be done.
    Let me know how can it be done.
    Thanks
    Ashish

    Disable existing Init block and then double click on USER variable and hit on NEW... button to create new Init block
    Thanks
    Edited by: Srini VEERAVALLI on May 1, 2013 4:18 PM

  • What is the best way to maintain state in Java web apps?

    Hi,
    been looking at best way to maintain state between requests in JSP.
    Ive been trying to use URL rewriting but been getting problems. I understand I can also achieve this using cookies.
    Are there any other better ways of doing this.
    I don�t know if the problem is with JBuilder4 or something in the Tomcat server?
    Any suggestions would be appreciated.
    thanks.

    I think if you use JavaBeans that implements Serializable , it might maintain state (but not sure of this).
    HttpSession is one option but , sessions have limitations - they timeout, they don't work when the page is cached by the browser and they don't work if Cookies are disabled in the browser.
    Database is always an option, and there are two types of DBs , in-memory like HSQLDB etc , or the regular RDBMS like MySQL , Oracle etc.
    If you only want to maintain state between HttpRequests, then use the request object which is implicit in JSPs.
    I think your URL Encoding is not working most likely because you have disabled Cookies in your browser and that's why you see jsessionid.
    If you enable Cookies in your browser then, the jsessionid should not appear.
    There are other options I'm sure, but I'm only aware of the above at this time.... may be someone else might know more.

  • Best way to get rendered footage from 3D app into FCE

    I want to render footage from my 3D app (Cinema 4D,usually in TIFF sequences, rather than QT movies) and bring it into FCE for editing, color correcting, and possible compositing.
    What format will FCE accept? I tried this scenario with iMovie and no matter what settings I used in rendering from the 3D app, the image was blurry in iMovie.
    Looks fine in Quicktime, though.
    I don't own FCE, yet, so I can't experiment.
    Thanks.

    Hi(Bonjour)!
    DV and HDV (Apple intermediate codec) are compressed formats.
    You must understand that FCE HD can only works in format aimed to TV set output (compressed formats).
    The best quality to outfput animation movie from 3D app is... Quicktime animation codec. It retains alpha channel and give best color rendering, but give pretty large files.
    Altough your animation movie looks sharp, FCE HD convert it (render) to fit the sequence format (DV or HDV: suited for TV set monitor, thus compressed). So the result will be a compressed one. That's the way FCE HD handle all material inserted in sequence.
    To avoid rendering in FCE, select the same format as your FCE sequence from your 3D app (DVCPro NTSC, or Apple Intermediate Codec 1080i60). By choosing the same format (DV or HDV (AIC), you choose the same compression quality however.
    Final Cut Pro can handle a myriad of formats from heavely compressed mpeg to uncompressed HD. So if you put a uncompressed animation codec into a sequence with same settings, the output will be uncompressed.
    If your aimed distribution format is DVD, the result will be compressed anyway to standard def format. Go with FCE HD confidently.
    If you want to distribute on computer screen, DV is not a good way to go, but HDV(AIC) can give good results with Quicktime convertion to H.264 codec in full or half frame size. FCE HD can do the job.
    Although DV is not best viewable on computer screen, you can produce quicktime H.264 with small frame size, say half or quarter size.
    Michel Boissonneault

  • Best way to query

    Hello All,
        I have a scenario.
    I read a DB table MARA, i will get few records .
    now i have to query a Z* table, based on the mara entries, what i got earlier.
    but in Z* table contains the material, with two extra characters than mara-matnr.
    for eg: if mara-matnr = 12345
             Z*-matnr can be 1234500 or/and 12345AB like this.......
    I know i can loop through mara entries and select Z* for each of mara entry using like statement.
    is there any other better way.
    I cant use 'for all entries' with 'like'  it is giving  a sytax error saying this combination cant be used.
    Thanks in advance.
    Best Regards
    Amrender Reddy B

    Hi,
    1) Declare 3 tables and corresponding WA of type of your Z*table say suppose gt_table1,gt_table2 and gt_table3
    2) Do a select on Z*table and get all the data in table gt_table1. 
        Loop at gt_table1 into wa_table1.
          wa_tbale2 = wa_tbale1.
          wa_table2-matnr = wa_table-matnr+(5).  << if MATNR is 12345AB then it will take only 12345
                                                 << this logic will only work when MATNR lenght is constant
         append wa_table2 to gt_table2.
        Endloop.
    Then,
    Loop at gt_table2 into wa_table2.
       Read table gt_mara with key wa_mara-matnr = wa_table2-matnr.
        if sy-subrc ne 0.
           wa_table3 = wa_table2.  <<u can delete entries here but it can give some performance problm
       endif.
    Endloop. 
    delete gt_table2 from gt_table3.
    This way u will get the required records in gt_table2.
    Regards,
    Mukesh.

  • Best way to query cache - get() vs filters?

    Hi,
    I am in a dillemma. Whether to use NamedCache.get() or entrySet(filter) methods to query the cache. Please guide me..
    My understanding is that when using
    1. get() or getAll(), Coherence checks whether the entry is in the cache, if it does exist in the cache, Coherence get its from the DataStore
    2. entrySet(Filters), Coherence just checks the cache and returns results based on whats available in the cache.
    In that case, Isnt it better to use get instead of entrySet in a case where one is not sure whether up to date data is available in the Cache?
    1. What is the difference between using a get and using entrySet ?
    2. How does one make sure that up to date data is available in the cache when not using a write-behind scenario?
    I am newbie...Gurus, please guide me..

    sjohn wrote:
    Hi,
    I am in a dillemma. Whether to use NamedCache.get() or entrySet(filter) methods to query the cache. Please guide me..
    My understanding is that when using
    1. get() or getAll(), Coherence checks whether the entry is in the cache, if it does exist in the cache, Coherence get its from the DataStoreThat's not the relevant part.
    In this case because you specified the keys to the entries, Coherence knows exactly where each entry resides, and optimally communicates with the owner nodes (1 network call / owner node) to get the data, and it will return the data without deserialization on the owner node.
    2. entrySet(Filters), Coherence just checks the cache and returns results based on whats available in the cache.
    In this case, depending on the actual filter (hierarchy) Coherence has to contact all nodes (if you did not filter it with KeyAssociatedFilter or PartitionFilter), which is not scalable, then depending on the filter(s) used it may have to deserialize possibly all cached entries (which is expensive) to evaluate the filter. On the other hand this method is usable for non-key-based access, which the get/getAll is not able to do.
    In that case, Isnt it better to use get instead of entrySet in a case where one is not sure whether up to date data is available in the Cache?
    1. What is the difference between using a get and using entrySet ?Heaven and earth...
    2. How does one make sure that up to date data is available in the cache when not using a write-behind scenario?
    You have to preload it, or trigger fetching it from a cache-store.
    Best regards,
    Robert

  • Best way to query sap tables

    hi everyone. i am new to data services, so here we go. we are using an sql2005 server for our end data repository. i am trying to create a temp table of sap po data. i have split the queries up so that query 1 is 2 sap tables, query 2 pulls in another sap table, etc. so that i only have one sap table, other then the first query, being queried at a time. it takes a really long time - i end up killing the job. is there a better way to pull sap data?
    thanks - sandra.

    Try here:-
    http://wiki.sdn.sap.com/wiki/display/BOBJ/SAP
    This is an incredibly useful set of pages.

  • Best way to query on a non-table item?

    Hi,
    I have a form that has customer_name (non-table item) and customer_id (table item). Customer_id is not visible to the user. We need to be able to query on the customer_name. I have tried using the pre-query trigger but I get an error ORA-01422. Any suggestions would be appreciated. I am a non-technical person, so the simpler, the better.
    Thanks in advance.
    Trish

    Hi ,
    I know two alternatives:
    1) Use the POST-QUERY trigger not the PRE-QUERY... But, you would have the same problem because i think that the customer_id column is not unique. So you should select a combination of columns which guarantee the uniqueness of the selected column...
    2)Other design. Read the doc at :
    http://www.oracle.com/technology/products/forms/pdf/BlockOnAJoin.pdf
    Using this way you should not use the trigger POST-QUERY....
    Regards,
    Simon

  • What is the best way to query for the roles of a 2013 Lync server?

    I am new to Lync.
    I am not able to find, but if anyone already asked and got answers in this forum, or documentation I will be much appreciate. 
    I would like to programmatically ( powershell wmi most likely)
    Get-WmiObject –query ‘select * from win32_product’ | where {$_.name –ilike “*Lync*”}
    Typically returns a lot of installed components, is there a way to tell whether a lync ( 2013) installation and deployment is either a Front/Back, or Edge or Mediation?
    Thanks

    thanks. Although I was expecting  (hoping) to be able to query for roles like : Front/Back, Edge , Mediation, Director and etc.
    PS C:\Users\labuser> get-csservice | select PoolFqdn,Role,SiteId
    PoolFqdn                   Role                       SiteId
    lab-lync2013-01.lab.exc13  UserServer                 Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  Registrar                  Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  UserDatabase               Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  FileStore                  Site:lab-lync2013-01
    LAB-EXCH2013CAS            WacServer                  Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  WebServer                  Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  ConferencingServer         Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  MediationServer            Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  ApplicationServer          Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  ApplicationDatabase        Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  CentralManagement          Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  CentralManagementDatabase  Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  MonitoringDatabase         Site:lab-lync2013-01
    10.199.4.4                 PstnGateway                Site:lab-lync2013-01
    What if, I use get-counter instead?
    E.g. if I am able to get something returned for 
    \LS:A/V Edge - UDP Counters(_Total)\A/V Edge - Packets Dropped/sec  , then I know it has Edge role
    \LS:MediationServer then it has Mediation role
    But then I really cannot tell for sure for FF or just Standard Editor Server.
    It is the list of server roles described in here that I am interested in. I understand Lync is very flexible in terms of deployment roles.
    http://technet.microsoft.com/en-us/library/gg398536.aspx
    Thanks
    Ben

Maybe you are looking for

  • Save As PDF causing browsers crash

    I've used Safari, Firefox (1.0.7 and 1.5), Internet Explorer, and Mozilla and every time I select "save as PDF" a webpage in the Print feature, it resulted in a browser crash. Every time. Have Apple addressed this persistently annoying bug already? T

  • Spry Validation, how to strip spaces from end

    I have a form that is using Spry Validation. I'm validating onBlur and the field is required.  Everything works great, except if a user accidentally types a space at the end of their entry.  for example, they enter an e-mail address and put a space a

  • Problem in running functions in different sessions together

    Hi all, *******************calling functions for invoice generation************ CALL FUNCTION 'ZFM_FTC_INV_CHECK_SES_REVOKE'   CHANGING     LT_INVOICING       =  LT_INVOICING CALL FUNCTION 'DEQUEUE_ALL' EXPORTING   _SYNCHRON       = ' ' CALL FUNCTION

  • New line file .csv

    Hello, I need help. I want to send mail with an attachement; is a document .csv. The program is going to use in background. The problem is that I know the field separator ( but I don't how can i do to jump a line. My code is like that:       text = C

  • Adding a metatag

    Sometimes some websites that let you monitor your activity ask for either an html file or a metatag on your header in your website to verify it's your website. Can this be done with an iWeb webpage? What would be the header in the page and do you do