home *** CD-ROM | disk | FTP | other *** search
- Visual FoxPro Library Client Server Application
- -----------------------------------------------
-
- This application has been designed to demonstrate some of the concepts that can
- be used to develop a client server application with Visual FoxPro 3.0.
- Examiniation of the code behind the forms may prove useful to you, in
- understanding how each functionality was achieved.
-
- Features included in the application:
-
- * Multiple session support, allowing multiple instances of a form to run
- without complex code to support alias conflicts and such. This
- feature can be seen by selecting any of the forms from the
- Publications menu multiple times. Each of the forms will open in its
- own session. There is a discussion of sessions under "Programming For
- Shared Access" in the Developers Guide.
-
- * Parameterized Views are what drive the form in the Search/Checkout
- form. Changing the Author ComboBox causes FoxPro to re-query the
- server and retrieve the Publications associated with that Author.
- More information about views can be found in the Chapter on "Updating
- Your Data with Views" in the Visual FoxPro Users Guide.
-
- * Table Buffering is also used in the Search/Checkout form to store
- updates made to the "Checkout" column of the grid, until you choose to
- save them or throw them away. Table and Row Buffering is discussed in
- the section on "Managing Shared Access to Data" in the "Programming
- For Shared Access" chapter of the Developers Guide.
-
- Notes/Setup:
-
- Here are the steps you need to complete in order to make the sample application
- work. Note, the application is currently designed to work with MS SQL Server
- only, and will not work with other databases.
-
- 1) Make sure you have ODBC Installed on your machine, and a datasource
- that connects to a SQL Server machine with the PUBS database on it.
- If you've done a full install of Visual FoxPro 3.0, ODBC should be
- installed under the Windows Control panel.
-
- 2) Open the "library" database in the \FOX30\SAMPLES\CSAPP directory
- where the project is, and add a new "Connection" called "library". You
- can do this either by using the "CREATE CONNECTION" command, or by adding
- a new connection to the database via the Project Manager.
-
- The database that your connection should refer to (in the ODBC login
- <Options ...> dialog) is the "pubs" database. This is the sample
- database installed with MS SQL Server.
-
- You can also create a connection that uses a 'connection string'. To
- connect to my local SQL Server "foxsqlnt", as User Id "sa", with no
- password, to the database "pubs", I use the following connection string:
-
- "dsn=foxsqlnt;uid=sa;pwd=;database=pubs"
-
- 3) DO LIBSETUP.PRG in the project directory. This should set the server up
- with the tables you need, as well as create the views that are needed by
- the application.
-
- 4) Finally, DO LIBRARY.MPR. The menu will change, and you can call each of
- the forms from the publications option on the menu.
-
- Please report bugs on the Client/Server Sample Application on Compuserve in
- either section (9) Client Server/Multi-User, or in (12) Builders/Wizards/Samples
-
- Known Problem:
- --------------
-
- 1) Conflict resolution code is implemented, however isn't necessarily final.
- One item in particular that isn't handled well at this time is that we will not
- overwrite conflicts on the remote database at this time. This will be in after
- Beta 2.
-