Delphi-Kylix
  Home arrow Delphi-Kylix arrow Briefcase Applications Explained
IBM developerWorks
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
Moblin 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
IBM developerWorks
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
DELPHI-KYLIX

Briefcase Applications Explained
By: Leidago
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2006-10-10

    Table of Contents:
  • Briefcase Applications Explained
  • The Database Server
  • Building the Application
  • Applying Changes to the Data

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Briefcase Applications Explained


    (Page 1 of 4 )

    If you have remote users connecting to your database server who need to make changes to the data, you might want to set up a briefcase application, depending on what exactly they do with the data. This article will help you set one up using Delphi, MySQL, and an XML file.

    Introduction

    So, what is a briefcase application? It is a client program that enables users to connect to a database server to retrieve data, then save it and work on it locally. This allows them to make any changes they want to the data while disconnected from the database server and then apply these changes back to the database server at a later stage.

    The obvious advantage of this is that a user can take the data on the road or wherever he or she wants to take it and work on the data without having to be connected to the database server. In this article we are going to implement a briefcase application that will use MySQL as the database server and an XML file to store downloaded data on the local disk.

    What you need to create this application:

    • Delphi 6 or higher
    • Access to a Database Server (MySQL)

    How the Application Works

    The application will download information from the database server through an ADO dataset and then save the data to an XML file, using the save to file method of the dataset. Then the XML file will be loaded into a dataset for editing, and then the changes will be uploaded to the database server. Below is an outline of the two processes involved:

    Download data from database server:

    A) Database server (MySQL) -->  ADO DataSet --> XML file

    Update changes to the database server:

    B) XML file --> ADO DataSet --> Database server (MySQL)

    The XML file is at the heart of the application. This is where you will store the data that you want to work on offline. The file will automatically inherit the format of the table from which it was downloaded.

    More Delphi-Kylix Articles
    More By Leidago


       · The sample application that i included in this article can be used with Borland...
     

    DELPHI-KYLIX ARTICLES

    - Client Dataset: Working with Data Packets an...
    - Using the Client Dataset in an N-Tiered Appl...
    - Using the Client Dataset in Two-Tiered Clien...
    - Using the Client Dataset in File-Based Archi...
    - Demystifying the Client Dataset
    - Working with INI Files in Delphi
    - Creating Data Link (UDL) Files in Delphi
    - Looking at the Details for an Invoicing Appl...
    - Invoicing in Delphi: Show Me the Money
    - Saving Images and Binary Files to a Database...
    - Saving Files to a Database using Delphi: Sav...
    - Creating CF Applications and Integrating a S...
    - Using Try and Finally to Help Prevent Memory...
    - The Implementation of an FTP Server
    - FTP Server: The Theory


    Iron Speed





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway