Package Explorer
Importing Scripts and Folders to a Package

Importing Scripts and Folders to a Package

SQL files, folders, and other file types can be loaded into a code package from the Import Dialog. You can start the dialog by following one of the options below:

  • Click the package root node or a folder under which the imported files and folders will be placed and then press the Import icon in the toolbar.
  • Right-click the parent node (package root node or folder) and select Import Files from the menu as demonstrated in the figure below.

Figure 81:  Starting the Import Dialog from the right-click menu of a folder.

The Import Dialog allows you to load individual files or folders and all their files into the package. The dialog is now described in details below.

Figure 82:  The Import Dialog.

Filtering Method: The default filtering option is set to SQL files. Using this option, only SQL files will be shown in the folder browser that will appear after you press the Get Files button. Furthermore, if you choose to load folders into the package then only SQL files in the selected folders will be imported. The All Files option allows you to browse and load files with any extension to the package. Finally, the Pattern option is only enabled when you load files from folders. This feature is optional and lets you specify custom filters (for example, to load files that start with the word "Rollout" in all folders the Pattern can be set to "Rollout*.*").

Selection Method: You can choose to import individual files by selecting the Select Files Manually option, or all files in selected folders by checking the Search a Folder option. Furthermore, you can instruct Combine to load all folders and subfolders and their files by checking the Recursive option in the Dialog.

Once the Selection Method and Filtering Method are set, press the Get button to search for files and folders to import. The images below illustrate the selection of SQL files when the Selected Files Manually option is checked.

Automatically Create Parent Folder: If this option is checked then the each script will be loaded and placed under a folder in the package. The parent package folder will have the same name as the parent folder for the script in the file system.

Figure 83:  Selecting files to import.

After selecting the files and folders, the Import Dialog will display all files that will be imported. Using the dialog you can add more files by pressing the Get Files button again. Similarly, you can choose to remove files from the import list by choosing the desired files and clicking the Remove Selected button.

Figure 84:  The Import Dialog after selecting files and folders.

Press the OK button to complete the import process. Files and folders will then be loaded into the package and placed under the initially selected parent node in the package tree hierarchy. After files and folders are loaded you can use the drag and drop feature to place them in different locations in the package. You can also copy and paste files and folders to move them around the package. Also note that loaded files will be marked with an asterisk (*) to denote that the new files have not yet been saved as part of the package. You can select individual files and press CTRL+S to save them in the package or use the save all option to save all changes to the package.

© 2001-2018 JNetDirect, Inc. All Rights Reserved.