4D v16.3Application page |
||
|
4D v16.3
Application page
Application page
4D enables you to build a double-clickable application directly from your database. You just need to have 4D Volume Desktop, the 4D database engine, and an appropriate license. You prepare this operation on the Application page of the application builder. Double-clickable (.exe) versions of your 4D compiled databases can be created directly in 4D using the “Build Stand-alone Application” function. The principle consists of merging a compiled structure file with 4D Volume Desktop. The functionality provided by the 4D Volume Desktop file is linked with the product offer to which you have subscribed. For more information about this point, refer to the sales documentation and to the 4D Internet site (http://www.4d.com/). You can define a default data file or allow users to create and use their own data file (see the Data file management in final applications section). It is possible to automate the update of merged single-user applications by means of a sequence of language commands (see Automatic updating of server or single-user applications). To be able to build a double-clickable application, you must first designate the location of the 4D Volume Desktop folder. The button for building double-clickable applications is grayed out if no folder has been indicated in the corresponding area, or if the folder indicated does not contain a valid 4D Volume Desktop file. You must select the folder containing the 4D Volume Desktop file:
To select the 4D Volume Desktop folder, click on the [...] button. A dialog box appears allowing you to designate the 4D Volume Desktop folder (Windows) or package (Mac OS. Note: Starting with 4D v15, the 4D Volume Desktop version number must match the 4D Developer Edition version number. For example, if you use 4D Developer v15.4, you have to select a 4D Volume Desktop v15.4. This option lets you choose the linking mode between the merged application and the local data file. Two data linking modes are available. Both have advantages and disadvantages so you should select the mode that best fits your needs. Note: This option is only available when the Use new architecture for application deployments compatibility option is checked (see the Compatibility page section).
For more information about the data linking mode, refer to the Configuring the data linking mode section. To build an executable application, click on Build. 4D automatically creates a Final Application folder in the “Destination Folder” specified and puts a subfolder having the name of the specified application in it. If you have specified “MyAppli” in the “Application Name” area, you will find the following files in this folder:
The typical architecture of a double-clickable application is as follows (example under Windows):
When building a double-clickable application, 4D copies the contents of the 4D Volume Desktop folder into the Final Application subfolder of the destination folder. You are then able to customize the contents of the original 4D Volume Desktop folder according to your needs. You can, for instance:
Note: Under Mac OS, 4D Volume Desktop is provided in the form of a software package. In order to modify it, you must first display its contents (Control+click on the icon). If your double-clickable application is used as a Web server, the files and folders required by the server must be installed in specific locations. These items are the following:
Under Windows: These items must be installed in the Final Application\MyAppli\Database subfolder.
|
PROPERTIES
Product: 4D
HISTORY
Modified: 4D v15 R4 ARTICLE USAGE
4D Design Reference ( 4D v16) |