home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / FOXP-WIN.300 / DISK10 / VFP10.CAB / README!!.TXT < prev    next >
Encoding:
Text File  |  1995-01-11  |  3.5 KB  |  73 lines

  1. Visual FoxPro Library Client Server Application
  2. -----------------------------------------------
  3.  
  4. This application has been designed to demonstrate some of the concepts that can
  5. be used to develop a client server application with Visual FoxPro 3.0.  
  6. Examiniation of the code behind the forms may prove useful to you, in
  7. understanding how each functionality was achieved.
  8.  
  9. Features included in the application:
  10.  
  11.     * Multiple session support, allowing multiple instances of a form to run
  12.       without complex code to support alias conflicts and such.  This 
  13.           feature can be seen by selecting any of the forms from the 
  14.           Publications menu multiple times.  Each of the forms will open in its 
  15.           own session.  There is a discussion of sessions under "Programming For
  16.           Shared Access" in the Developers Guide.
  17.       
  18.     * Parameterized Views are what drive the form in the Search/Checkout 
  19.           form.  Changing the Author ComboBox causes FoxPro to re-query the 
  20.           server and retrieve the Publications associated with that Author.  
  21.           More information about views can be found in the Chapter on "Updating 
  22.           Your Data with Views" in the Visual FoxPro Users Guide.
  23.       
  24.     * Table Buffering is also used in the Search/Checkout form to store 
  25.           updates made to the "Checkout" column of the grid, until you choose to
  26.           save them or throw them away.  Table and Row Buffering is discussed in
  27.           the section on "Managing Shared Access to Data" in the "Programming 
  28.           For Shared Access" chapter of the Developers Guide.
  29.     
  30. Notes/Setup:
  31.  
  32. Here are the steps you need to complete in order to make the sample application
  33. work.  Note, the application is currently designed to work with MS SQL Server
  34. only, and will not work with other databases.
  35.  
  36. 1)  Make sure you have ODBC Installed on your machine, and a datasource
  37.     that connects to a SQL Server machine with the PUBS database on it.
  38.     If you've done a full install of Visual FoxPro 3.0, ODBC should be
  39.     installed under the Windows Control panel.
  40.     
  41. 2)  Open the "library" database in the \FOX30\SAMPLES\CSAPP directory
  42.     where the project is, and add a new "Connection" called "library".  You
  43.     can do this either by using the "CREATE CONNECTION" command, or by adding
  44.     a new connection to the database via the Project Manager.
  45.     
  46.     The database that your connection should refer to (in the ODBC login
  47.     <Options ...> dialog) is the "pubs" database.  This is the sample 
  48.         database installed with MS SQL Server.
  49.     
  50.     You can also create a connection that uses a 'connection string'.  To
  51.     connect to my local SQL Server "foxsqlnt", as User Id "sa", with no
  52.     password, to the database "pubs", I use the following connection string:
  53.     
  54.         "dsn=foxsqlnt;uid=sa;pwd=;database=pubs"
  55.     
  56. 3)  DO LIBSETUP.PRG in the project directory.  This should set the server up
  57.     with the tables you need, as well as create the views that are needed by
  58.     the application.
  59.     
  60. 4)  Finally, DO LIBRARY.MPR.  The menu will change, and you can call each of
  61.     the forms from the publications option on the menu.
  62.     
  63. Please report bugs on the Client/Server Sample Application on Compuserve in
  64. either section (9) Client Server/Multi-User, or in (12) Builders/Wizards/Samples
  65.  
  66. Known Problem:
  67. --------------
  68.  
  69. 1) Conflict resolution code is implemented, however isn't necessarily final.
  70. One item in particular that isn't handled well at this time is that we will not
  71. overwrite conflicts on the remote database at this time.  This will be in after
  72. Beta 2.
  73.