Skip to main content
Version: 7.0

How-to: Navigator

Example 1

Task

We have the forms with a list of books and categories.

FORM categories 'Categories';
FORM books 'Books';

We need to add them to the navigator to the new folder called 'Application' under the main toolbar.

Solution

NAVIGATOR {
NEW FOLDER application 'Application' WINDOW toolbar FIRST {
NEW categories;
NEW books;
}
}

By specifying WINDOW for the application element, we indicated that all its child objects must be displayed in the system window called toolbar. This is also what makes the folder act as a button: because the forms now live in a separate window, selecting Application in the top toolbar reveals them there. Without WINDOW the forms would stay in the folder's own window and be shown next to it permanently, so selecting the folder would do nothing. This will look like this:

Example 2

Task

Similar to Example 1.

We need to place the same forms in the subfolder called 'Directories'.

Solution

NAVIGATOR {
application {
NEW FOLDER masterData 'Directories' {
NEW categories;
NEW books;
}
}
}

Result: