I don't want to use Databound controls on the client. I have figured 2 ways to transfer the data to the client:
1. Implementing mothods on the BL that provide data through the IStrings interface ...
for example:
ICustomer = interface ...
Get_CustomerNames(slNames:
2. To encapsulate the structure of a table in a COM object:
For example for the Customers table I would create an ICustomer interface with properties for each field of the table and methods like: Open, Close, First, Last, Next, Previous, .... This way I can access all the data from the Customer table and display the data on a TStringGrid for example ...
The advantage of using one of this 2 methods would be that the BL Library can be accessed from other programming languages like VBScript ...
Main Topics
Browse All Topics





by: Ivanov_GPosted on 2005-05-20 at 00:54:05ID: 14043565
You can use MIDAS for your N-tiered module:
es/010131f .html con2004/ar ticle/pape r/ 0,1963,3 2262,00.ht ml
The client is simple desktop application.
The BusinessLogic can be WebService or COM component which connects to the database.
Schema:
Client Form -> TDataModule -> TClientDataSet -> TDCOMConnection -> .................. "BusinessLogic Layer"
"Client" ........... <- TDataSetProvider <- TADOTable <- TADOConnection <- ........... "Database"
Thus all your data processing in inside the BL layer. All the data is delivered to the client via DCOMConnection, which uses OleVariant to transfer everything to the client.
A good articles here:
http://www.undu.com/Articl
http://bdn.borland.com/bor