How Do I Organize the Project Objects? (Magic xpa 3.x)
Magic xpa projects are often very large, mission-critical applications, so it’s important to keep your work organized. The Studio itself helps you in this, dividing your work into repositories -- the Model, Data, Program, Help, Rights, Menu, and CRR repositories. Some of these repositories are shown in the figure below.
Within each of these repositories, you can further categorize your entries into folders. In this example we have created seven folders for the Model repository, each containing a different type of model.
-
Position the cursor on the line above the desired folder position (“ScreenSetup” in this example).
-
Press F4 (or right-click and select Create Line, or from the overhead menu Edit->Create Line).
-
Type in the name for your folder.
Hint: The number to the right of each entry indicates the number of items in each section. For example, in the section we have 129 total lines. 13 of those lines are in the CommonDataFields folder.
When you add a new folder, however, a number will appear to the right of the New folder placeholder. This just indicates the sequence of this folder. In this example, our New folder is the 8th folder to be added.
Prerequisite: Before you delete a folder, it needs to be empty. Move the items in the folder to another folder. Also, when you are using version control, be sure you have the repository checked out first.
-
Position the cursor on the folder you wish to delete.
-
Press F3 (or right-click and select Delete Line, or from the overhead menu Edit->Delete Line).
-
Answer Yes to the Are you sure? prompt.
-
Click on the folder you wish to move, so its items are open in the Workspace.
-
Drag the folder to the desired position.
-
Answer Yes to the Are you sure? prompt.
There are several ways to move existing objects into a folder. These are listed below.
Prerequisite: When you are using version control, be sure you have the repository checked out first.
-
Select the object you wish to use.
-
In the Folder column, click the combo box.
-
Select the desired folder.
The object will disappear from the current folder and reappear in the chosen folder.
-
Go to the folder you want to move the objects into.
-
Press Ctrl+Shift+M. The Move Entries dialog box will appear.
-
Select the first item in the group of entries you would like to move (you can zoom to select from a list).
-
Press Enter to just move that one item.
-
Or, enter the last item in the group of entries you would like to move, and press Enter.
The objects will appear below the current cursor position, and disappear from their old location.
Hint: This is the easiest way to move large blocks of items into folders.
How Do I Move an Entry in the Studio?