Access database in project structure

Hi,
I'm working on an application that used LCDS, synchronization & offline storage.
For demo purpose, we want to copy our database file to our project structure (com.demo.assets.demo.db).
When we start our application, instead of logging in (when giving a demo, we're not connected to the company network), we want to read our data from the demo database.
Is this possble?
Normal, if we connect to our local storage database, we do it this way:
var db:File = File.applicationStorageDirectory.resolvePath(AppConstants.DB_NAME_LOCAL)
But now, we should read the database file, from our own project structure.
Thx!

To make the question simple:
Can we add an demo.db file into an ipa / apk file for example so we could read demo data out of that database?
And how can we access this database in our application?
- Application Package
     - src
          - (default package)
               - Application.mxml
               - demo.db
          - Application-app.xml

Similar Messages

  • Migrating multiple access databases to 9i

    I have generated several xml files using omwb exporter, from several individual access mdb files. All the access databases have identical structures. But each time I go into omwb and create a source database from an xml file, the previous source disappears and is replaced by the one I just generated. The FAQs say that all sources should appear, but be identical apart from the path. What am I doing wrong?

    I forgot to mention Andy,
    That one thing I did was to go ahead and migrate my first database to oracle. After that migration was completed, I restarted the migration process for my second database (which was named the same name as the first database in order to have it go to the same user/tablespace).
    There were obvious errors since the migration was trying to create the same user and tablespace that already exist because of the first migration. I had to abort the migration while the data was being transferred because the migration workbench was just hanging.
    I did check however and the database tables WERE created under the same user and tablespace, but WITHOUT the data. I'm sure I could go in and simply migrate the tables data but there should be an easier mechanism!
    I'm thinking that each database will have to be migrated to a different username/tablespaces for now.

  • MS Project - can you merge from a spreadsheet/access database based on task names?

    I'm wondering if it's possible to import data on certain tasks from a spreadsheet or access database. I know you can import tasks and append them, but I was hoping to:
    - Match a task name with the task name on the spreadsheet/access database
    - Update that task in MS project with information/fields in the spreadsheet/access database
    Can this be done? Thanks.

    Hi,
    In regarding the issue, my understanding is that you want to use Excel spreadsheet as database for the Project.
    I recommend you develop an import map that includes the key fields. Please refer to the link and do it step by step:
    http://www.techrepublic.com/blog/tech-decision-maker/importing-a-vendors-excel-schedule-into-microsoft-project/
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    If I misunderstanding something, please let me know and upload some sample about the Excel spreadsheet.
    Regards,
    George Zhao
    TechNet Community Support

  • Project structure level access

    Hi !
    I have a project stucture with 5 business scenarios. Each scenario has a business owner and a configurator assigned as team members. How do I restrict access to team members of one scenario not to create/change in other scenario?
    Thanks.
    Mani

    Hi Mani
    You can restrict access to team member in T-Code SOLAR_PROJECT_ADMIN in the tab "Proj. Team Member" of your project if you check the box "Restrict changes to nodes in project to assigned team memebers". If you check this box, only team members who are assigned in the 'Administration' tab can work on the nodes of a project structure. Other team members can only open the tab in display mode. Also you need change authorization for the tab (authorization object AI_SA_TAB), for the assigned team members to be able to work in the tab, see Note 874539 - "Enhancement of authorization checks in project structure" please.
    Regards,
    Arkadiy

  • DB structure when replacing XE in place of Three Access Databases.

    We have an application which has three access databases for offline access. For online access we use Oracle 10g. Now we want to replace these three access databases with XE. the three offline dbs are for the use of keeping some downlaoded data, transaction data and reporting data. Two of the Access databases have same schema and same tables. How do i replicate similar structure with XE as there is a limitation that we can not create more than 1 database. Please suggest.

    The concept of a 'database' is different.
    You can have three separate schemas in a single XE database. A schema belongs to a user.
    If we call your three Access databases, TOM, DICK and HARRY, we create three users in XE called TOM, DICK and HARRY.
    We migrate the Access TOM to the XE TOM, and so on.
    In XE, TOM can have a table called ORDERS, and so can DICK and HARRY.
    If TOM is logged in, he will see TOM's ORDERS table, HARRY will see HARRY's and DICK will see DICK's.
    If we have another user (eg SUE), you would GRANT privileges on TOM's tables to SUE.
    SUE can select from TOM.ORDERS. You could also add grants to SUE from HARRY and/or DICK, and SUE can select from DICK.ORDERS.
    You can create a SYNONYM in SUE called ORDERS to point to TOM's ORDERS table, or (more flexibly) issue an ALTER SESSION SET CURRENT_SCHEMA=TOM so that any reference that SUE makes to ORDERS are interpreted as referring to TOM.ORDERS.

  • Data type structure while picking data from MS Access database

    Dear All,
    I have to start on new interface in which data from MS Access database will be updated in the z-table in SAP. Is there any blog available which gives step by step process for MS Access-XI-RFC interface. Or please guide me on what should be the structure of the Data Type for picking the data from the MS Access database.
    Regards,
    NJ

    Hi Nishu,
    Sender side the structure is as follows
    db_sen_dt
    ..... emp_row
    ..........  f1
    ..........  f2
    Structure is complex then check this blog
    /people/alessandro.berta/blog/2005/10/04/save-time-with-generalized-jdbc-datatypes
    JDBC to RFC Scenario, but it is synchronous
    SYNCHRONOUS SOAP TO JDBC - END TO END WALKTHROUGH  
    Also check this link
    Regards
    Ramesh

  • Integrate 300 MS Access Databases using ODI

    Hi All,
    I am trying to integrate data between 300 similar MS Access databases using ODI. All the source databases have exactly the same data structures. I have done a POC for 3 databases by creating interfaces and could integrate the data between them successfully.
    Now that the project is approved ; Going forward I need to integrate data from 297 MS Access databases, so I need to run the same set of Interfaces on 297 source MS Access Databases with Target DB being the same.
    This integartion work could be labourious as I need to copy 7 interfaces on 297 databases - IS THERE ANY EASY SOLUTION FOR THIS PROBLEM.
    Some one suggested me to use Dynamic Variables in the TOPOLOGY to access all the MS Access databases - BUT NOT SURE IF THAT WORKS.
    APPRECIATE your suggestions.
    Thanks & Regards
    Kay

    The issue you face here is that the Access database is connected to through the JDBC-ODBC bridge to the Access ODBC database driver. You will need to have a separate DSN defined for each of the access databases, if you want to address each individually.
    An alternative approach is to have one DSN set up, one entry in ODI's topology, one interface etc, and each file you wish to use, you rename to a given name first. Thus, when ODI tries to access the database, the ODBC driver finds the then current file. Note that ODI keeps the database connection for the duration of a SESSION, so if you wanted to process all 300 files sequentially, then you would need to run separate sessions for each of the file executions.
    I think this will give you the solution you require without resorting to variables.

  • "Connection is closed" closed error while using MS Access database

    We are using MS Access database in our project. Recently the database was upgraded to 2000.
    After upgrading the database, I get the folowing error when getAutoCommit() is called on a connection -
    java.sql.SQLException: Connection is closed
         at sun.jdbc.odbc.JdbcOdbcConnection.validateConnection(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcConnection.getAutoCommit(Unknown Source)
    The connection is not closed explicity before getAutoCommit() is called, only the statement is closed.
    This error is sporadic and occurs under load scenario only (when a lot of connections are open). Once the error occurs, all the database calls fail then onwards. The error was not occuring before the database was upgraded.
    I suspect the jbdc-odbc driver. The driver might not be compatible with Access2000 database. Under load scenario, it might be closing connections automatically.
    Has anybody faced similar problem before? Where can I find the compatible jdbc-odbc driver? And how to ensure that it is jdbc-odbc driver problem only?
    The database verison - MS Access 2000
    Java version - 1.3.1_01

    can i just point out that there is no support for transactions in Access so I wonder why you are calling autoCommit methods at all...

  • How do I open a pdf stored in a Microsoft Access database using Visual Basic studios 2012

    Currently I am unable to find a valid method of being able to open a pdf stored in a Microsoft Access database using Visual Basic studios 2012. I've tried displaying the entire database on a form, but when I do this all the other columns show up with
    the correct data besides the one containing the pdf's, it just displays <binary data> in each row down the column. I also tried another method with which you use the database as a dataset and can drag and drop the rows and columns into the form, which
    again works for all the other columns besides the one containing the pdf's but this time I'm unable to interact with the column  at all. 
    Not too sure if this is in the correct place, but any answers or help would be appreciated. Cheers.

    Alex,
    This forum is dedicated to Project and Project Server. You might get better response, if you post to a Visual Basic forum. Here are couple I could find. 
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral%2Cvblanguage&filter=alltypes&sort=lastpostdesc
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • Creation of Database View , Projection View

    Hi ABAP EXPERTS,
    Can anyone plz send me the step by step creation of DATABASE and PROJECT VIEWS. Just steps by step explanation will do , screen shots will be more than appreciated.
    Kind Regards,
    Sunil Ranal.

    Database View (SE11)
    Database views are implement an inner join, that is, only records of the primary table (selected via the join operation) for which the corresponding records of the secondary tables also exist are fetched. Inconsistencies between primary and secondary table could, therefore, lead to a reduced selection set. In database views, the join conditions can be formulated using equality relationships between any base fields. In the other types of view, they must be taken from existing foreign keys. That is, tables can only be collected in a maintenance or help view if they are linked to one another via foreign keys.
    Check this link for database view creation.
    http://help.sap.com/saphelp_40b/helpdata/en/cf/21ed06446011d189700000e8322d00/content.htm
    Projection View
    Projection views are used to suppress or mask certain fields in a table (projection), thus minimizing the number of interfaces. This means that only the data that is actually required is exchanged when the database is accessed. A projection view can draw upon only one table. Selection conditions cannot be specified for projection views.
    Check this link for Projection view creation.
    http://help.sap.com/saphelp_nw70/helpdata/en/cf/21ed20446011d189700000e8322d00/content.htm
    Regards,
    Maha

  • How to restrict the user to change the project structure but not the documents?

    Hi,
    I have created one project assigning different users in Solution manger. I want to risitrict some of the users to change the project structure but simultaneously allwoing the project documents to be created, edited or deleted using solar01 under Project documentation tab. For that I have followed the steps provided in the follwoing link.
    http://wiki.scn.sap.com/wiki/display/SM/Howto+Restrict+Changes+to+Project+Nodes+to+Assigned+Team+Members
    I am able to restrict the users to change the project structure, but I am not able to allow access to the project documents. It gives me the message "You are not authorised to change the project". This fulfills my one of the requirements. But, Is there any way  to restrict the user to change the project structure but not the documents?. Any help will be apperitiated.
    Thanks,
    Rutvik Uapdhyay. 

    Hi Rutvik,
    Basically there are 2 different authorization role ...you should look for and customize as per requirement in Z* namespace.
    role  - SAP_SOLAR01_ALL
    this take care of objects in Solar01 like tab access etc
    role -SAP_SOL_KW_ALL
    this takes care of entire documentation within solman
    hope this helps
    Regards
    Prakhar

  • Mapping JTree to an Access Database

    First of all, I am very new to using JTree.
    Second, I was able to create a JTree using QueryDataSet from an Access database (using JBuilder).
    The database table has the following structure:
    NodeID, ParentNodeID and Name.
    NodeID is unique.
    the problem I am facing is how to bind or map each node created to the corresponding NodeID, while I am displaying the Name field as the userObject of the node?
    I want to know this in order to retrieve information from the database regarding the selected node, and can only do that with the NodeID since there are duplicate names for the "Name" field.
    If anyone has an answer to this question please do not hesitate to reply or send me an email.
    Regards,
    Charbel
    [email protected]

    Build a class to put all the db values:
    class MyNode{
    int NodeID;
    int parentID;
    int NodeID;
    String Name;
    public MyNode(int NodeID,int parentID,String Name){
    this.NodeID = NodeID;
    this.parentID = parentID;
    this.Name = Name;
    public String toString(){
    return Name; // this is for the three to show the Name variable
    I guess you will previously sort ascending the access table on the parentID field, in order to easily build the tree.
    When you read from the database, create MyNode instances and fill in the values, and set in teh TreeNode the user object like:
    MyTreeNode mtn = new MyTreeNode(new MyNode(20,3,"OneNode"));
    or
    mtn.setUserObject(new MyNode(20,3,"OneNode"));
    From this structure, you will easily build any popups or actions responding to click events on the tree branches, by simply requesting the user object of the node, and reading its properties.
    Hope it helped,
    Carlos.

  • Problem in reading/writing byte array in Access database! PLEASE HELP!!

    Hi,
    I want to store a signature, which is in form of a byte array, in OLE Object field in MS Access database. I want then to retrieve this signature and verify it. The problem is that the retrieved byte array is not identical to the stored (original) one, and therefore, verifying the signature fails! Any help would be much appreciated as I can't proceed in my project without solving this problem. Here is the code to do the above mentioned functionality:
    //This part stores the signature (VT) in the table TTPTrans
    try
    { con = connect();
    ps = con.prepareStatement("UPDATE TTPTrans SET VT = ?, SigVT = ? WHERE TransID = ?");
    ps.setBinaryStream(1, new ByteArrayInputStream(vt), vt.length);
    ps.setBinaryStream(2, new ByteArrayInputStream(sigvt), sigvt.length);
    ps.setString(3, tID);
    ps.executeUpdate();
    ps.close();
    con.close();
    catch (Exception e)
    {  System.err.println(e.getMessage());
    e.printStackTrace();
    //This part retrive the signature from the table in the byte array o1:
    ResultSet result;
    byte[] o1 = null;
    byte[] o2 = null;
    try
    { con = connect();
    Statement statement = con.createStatement();
    result = statement.executeQuery("SELECT VT, SigVT" +
    " FROM TTPTrans" +
    " WHERE TransID = " + "'" +
    transID + "'");
    while (result.next()) {
    o1 = result.getBytes("VT");
    o2 = result.getBytes("SigVT");
    statement.close();
    con.close();
    catch(Exception e)
    { System.err.println(e.getMessage());
    e.printStackTrace();
    }

    In the following code, I use a ASN1SDSSSignature class, which is a subclass that I created from the Siganture class, to create and verify an SDSS signature. The ASN1SDSSSignature has two ASN1Integer class variables:
    signcryption = token.getSigncryption();
    sig.initVerify(ttpCert);
    sig.update(receivedVT);
    boolean verified = sig.verify(receivedSigVT);
    if(!verified)
    System.err.println("TTP signatire on received token invalid. ");
    notify()
    return;
    Where receivedVT and receivedSigVT are the byte arrays retrieved from th database. The following exception is thrown when I run the application:
    ASN1 type mismatch!
    Expected: codec.asn1.ASN1Integer
    In: ASN1SDSSSignature
    At index 0
    Got tag: 4 and Class: 0
    I hope this would clarify the situation and thanks in advance for any comments you may post.

  • How to update single row of ms access database

    Hi All,
    can somebody tell me how can i edit/update a single row of ms access database?
    let say i want to edit the first row of the figure in the left. What i want is when i click in the row, it will pop up a window where i can edit the fields content. or may be is it possible to add a column with "edit" text which link to the appropriate row. so when i click the "edit" it will open the edit window.
    Thank you

    If you use a multi-column listbox indicator there is a "double-click" event that you can capture with an event structure. The event, when fired, returns the row that the user double-clicked. Use that parameter to fetch/modify the data as needed. Remember that to update the data in the database the table containing the data must have a primary key - or at lease something you can use to uniquely identify the rows.
    Remember that in a database, there is no such thing as "the first row"; you have to explicitly identify which row you wish to modify.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Create separate PDF files from MS Access Database report field

    In the development or update of pipe specifications the valve specifications (database records) that are associated with the piping specification are updated or corrected.  These revised valve specifications are then exported as a group through the Access Report Print to PDF file with the piping specification name for the file name.  Each separate valve specification within this single file needs to have its own PDF Valve spec file name so that each valve spec can be attached to project engineering documents or for purchasing.  All of the valves are coded in the in the database and projects with this general description, V-?????? with each question mark representing a descriptive part of the valve.  MS Access database has this V-?????? field name for every valve record in this large database.  The current practice is extract from the single PDF file page thumbnails and rename every extracted file.  With over 1000 valve records being updated, the task is time consuming.

    These are the settings.

Maybe you are looking for