For Programmers: Free Programming Magazines  


Home > Archive > Smalltalk > October 2005 > [VW] DataSet <->DB (Re: hi folks)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author [VW] DataSet <->DB (Re: hi folks)
Reinout Heeck

2005-10-09, 3:57 am

nave wrote:
> I am using Visual Works 7.3
> I don't no how to connect dataset widget with database.



You don't, not directly.


Typically one would design classes (your domain model), some of which
represent the data from the DB in your image. The domain model sits between
the UI and the DB.

You hook your domain model to the DB using the Object-Relational mapping
libraries.
See $(VISUALWORKS)/doc/DatabaseAppDevGuide.pdf for one library, see
http://glorp.org for a newer one (that is a work in progress).


You will also design a GUI application with a DataSet widget that connects
to your domain model. That is documented in GUIDevGuide.pdf.


Note that the order above is not terribly important, you can implement and
test most of the UI without having the DB access ready or do it the other
way around (as long as your domain model is functioning sufficiently).



HTH,

Reinout
-------

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com