Here's a new network optimize routine, Opt_net_v5(), updated for A5v5. The attached zip file contains both the full script and an AEX file that can be added to your A5v5\Addins_installed folder to make the routine available to every A5 application on your computer. (If you want to use the AEX file on a workstation computer, copy the file to the Addins_installed folder on that computer as well. On runtime versions, you may need to create the Addins_installed folder.)
As I'm sure many of you are aware, version 5 has significantly improved the network optimize and network refresh routines so that, among other things, new or modified tables are automatically included in the optimize. This makes the need for additional routines like the one that was developed for version 4 (and this one) obsolete for many users. However, there are a couple features in this new version that will benefit some users.
BACKGROUND: For those who are new to Alpha, the refresh optimize in version 4 did not copy new (or modified?) tables to the workstation so a special routine was developed by Ira Perlow and me to solve the issue. Briefly, this routine switched the user to the server version of the application and then started a full optimize. This feature is no longer necessary in version 5 due to the improvements added by Alpha Software.
WHAT THIS FUNCTION DOES:
There are two basic advantages to using the attached routine:
1. The routine allows the developer to put the Network Optimize routine on one button that can be used from either the server or the workstation without requiring the user to decide whether to run a full optimize or a refresh optimize. It checks the value of A5.get_master_path() to see if the user is in a network optimized database and runs the appropriate optimize routine.
2. The routine copies additional files from the server to the workstation. Under the assumption that all .AEX files and all .AL* files in the application directory are either "attached compiled libraries" or simple "attached libraries" required by the application, all of these files are automatically copied to the workstation. In addition, like the option that was included in the version 4 Opt_Net() or Opt_2step() routines, you can create a list of additional files to be copied by listing each filename in a text file called A5Support.amq. (The .amq extension is just to keep mildly curious users from opening an obvious text file and modifying it.)
As I'm sure many of you are aware, version 5 has significantly improved the network optimize and network refresh routines so that, among other things, new or modified tables are automatically included in the optimize. This makes the need for additional routines like the one that was developed for version 4 (and this one) obsolete for many users. However, there are a couple features in this new version that will benefit some users.
BACKGROUND: For those who are new to Alpha, the refresh optimize in version 4 did not copy new (or modified?) tables to the workstation so a special routine was developed by Ira Perlow and me to solve the issue. Briefly, this routine switched the user to the server version of the application and then started a full optimize. This feature is no longer necessary in version 5 due to the improvements added by Alpha Software.
WHAT THIS FUNCTION DOES:
There are two basic advantages to using the attached routine:
1. The routine allows the developer to put the Network Optimize routine on one button that can be used from either the server or the workstation without requiring the user to decide whether to run a full optimize or a refresh optimize. It checks the value of A5.get_master_path() to see if the user is in a network optimized database and runs the appropriate optimize routine.
2. The routine copies additional files from the server to the workstation. Under the assumption that all .AEX files and all .AL* files in the application directory are either "attached compiled libraries" or simple "attached libraries" required by the application, all of these files are automatically copied to the workstation. In addition, like the option that was included in the version 4 Opt_Net() or Opt_2step() routines, you can create a list of additional files to be copied by listing each filename in a text file called A5Support.amq. (The .amq extension is just to keep mildly curious users from opening an obvious text file and modifying it.)
Comment