The Admin menu of your VPM Enterprise application contains a Directories option that displays the Directories form.
The Home directory displayed is the default directory set by Visual FoxPro or your CONFIG.FPW file when the application is run. The SetPath method of the application object sets a FoxPro path that includes the Home directory, all its subdirectories and the semi-colon delimited list of directories in the Path Addition field if they are not subdirectories of the Home directory. When users of your application create tables and reports, they are stored by default in the New Tables and New Reports directories shown on the Directories form.
Tip: The New Tables, New Reports, and Path Addition entries shown on the Directories form while you are developing your application are probably not the entries you want when your application is installed by a user. Therefore, before you run an installer program, use Visual FoxPro to enter the New Tables, New Reports, and Path Addition entries that you want when your application is installed into the mNewDBFDir, mNewRPTDir, and mPath memo fields, respectively, of the SVPMApplicationDefinition.APD table you copy to the Home installation directory.
If you set the mNewDBFDir and mNewRPTDir fields to blank, tables and reports created by users will be stored in the application’s Home directory by default.
After a user installs your application, the user can use the Directories dialog to change the New Tables and New Reports directories to any directories they want.
Installing Your Application on a LAN
A VPM Enterprise application is a multiuser-ready application. That means more than one user or workstation on a LAN can access and share the same application files. Here’s how we recommend that you set up an installation of your application so that more than one user can access data and report files at a time.
Ø To set up your application on a LAN
1. Install the application on each LAN workstation’s local hard drive. Installing the application on each workstation will improve performance.
2. Create Tables and Reports directories on the LAN file server to hold the data and report files that will be shared by the application users.
3. Run the application on each workstation. Select the Directories option on the Admin menu. On the Directories form enter the paths to the Tables and Reports directories on the LAN file server in the Path Addition field.
For example, if the LAN file server was designated as a workstation’s G: drive and the name of the Tables directory on the file server was \SHARED_DATA, you would enter the following in the Path Addition field on the Directories form:
4. Move the application data and report files to be shared from one of the workstation’s \DATA and \REPORTS directories to the Tables and Reports directories on the LAN file server.
5. In the \DATA and \REPORTS directories of every workstation on which you install the application, delete the copies of the data and reports files that you moved to the LAN file server in step 4. If you do not delete the copies of the shared files that are on a workstation, the workstation will incorrectly access its local files instead of the shared versions of the files that you moved to the LAN file server.