Delphi-Kylix
  Home arrow Delphi-Kylix arrow Page 3 - Using the Client Dataset in Two-Tiered Cli...
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  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 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

Using the Client Dataset in Two-Tiered Client/Server Applications
By: Danish Ahmed
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2007-12-26

    Table of Contents:
  • Using the Client Dataset in Two-Tiered Client/Server Applications
  • Two-Tiered Architecture
  • Using Data-Aware Components with the Client Dataset
  • Navigating and Modifying Data Programatically

  • 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


    Using the Client Dataset in Two-Tiered Client/Server Applications - Using Data-Aware Components with the Client Dataset


    (Page 3 of 4 )

    Once the data has been loaded into memory, the client dataset can be used as a typical dataset providing features to sort, filter, navigate, alter and perform every other function that a dataset should be able to do. Let us now focus on how to navigate and work with records in the client dataset.

    After populating the client dataset you can add data-aware controls (available in data controls tab in the tools palette in Delphi IDE ) to the form or data module to navigate through the records and modify them. There are more than a dozen data-aware controls available in the Delphi IDE, so make sure that the data-aware component you are using can handle the data type of the field to which it is linked. For instance, if you want to display a field whose data type is string and size is 15, you should bind it with a DBEdit component.

    If you are not new to Delphi then you are very well aware that data-aware components require a TDataSource component to communicate with the dataset. Make sure the dataset property in the DataSource component refers to the instance of the client dataset we are working with and specify it in the data source property of the data-aware controls.

    You can add the TDBNavigator component to allow the user to move between records and modify them. DBNavigator's data source property should point to the same data source that is being referred to by the data-aware components. The DBNavigator component consists of several buttons, each representing a specific database operation. You can move to next record, previous record, first and last records and also insert, edit, undo during an edit and delete records; you can also refresh the dataset to reflect the current value of the data source. If you wish to disable some of these buttons you can access them from the Visible Buttons property of the DBNavigator component. 

    More Delphi-Kylix Articles
    More By Danish Ahmed


     

    DELPHI-KYLIX ARTICLES

    - Delphi Wrapper Classes and XML
    - Delphi and the DOM
    - Delphi and XML
    - Internet Access: Client Service
    - Finishing the Client for an Internet Access ...
    - The Client for an Internet Access Control Ap...
    - User Management for an Internet Access Contr...
    - Important Procedures for an Internet Access ...
    - Server Code for an Internet Access Control A...
    - Constructing the Interface for an Internet A...
    - Building a Server Application for an Interne...
    - Building an Internet Access Control Applicat...
    - Client Dataset: Working with Data Packets an...
    - Using the Client Dataset in an N-Tiered Appl...
    - Using the Client Dataset in Two-Tiered Clien...






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
    Stay green...Green IT