If you do not want to display the view in a list, you can navigate through the tree-like data structure using the iterator part. Please note that the following example uses notebook style settings pages. Depending on the settings in your Visual Organizer, you may find generic settings windows to configure your parts. You have to configure the appropriate attributes with the generic settings window to get similar results. If you cannot open the notebook style settings, you have to load the AbtEditNotesSettingsPagesApp using the Application Manager or the Visual Organizer.
Here is a step-by-step description of how to use the iterator part:
Also connect the aboutToClosedWidget event of the main window to the close action of the database of Domino View1 attribute. This initializes the view part properly and frees Domino memory on application shutdown. Connect the opened event of the database of Domino View1 with the open action of the view part.
If you consider a view as a tree, these actions allow you to walk through
the tree in either direction.
Now add four buttons and an entry field to display the current category to the application window. Connect the clicked of the button labeled nextPeer to the nextPeer action of the iterator part and proceed in the same manner with the other buttons. After doing that, connect the currentCategory attribute of the iterator with the object attribute of the category field.
Now you have to add some more entry fields to display information that would otherwise be shown in the tabular form of the view. Tear off the selectedRow attribute from the iterator part and drop it on the free-form surface. If you open the quickform selection list of the currentRow, you will be able to select the self attribute. Select that and drop the resulting parts into the application window as well. The quickform will automatically generate all fields which are defined for the current row, which means it will create an entry field for every column defined in the view operated on
Note: | The view columns have internal names like "$123" that are often different from the displayed column title. See your Domino documentation for more information about column names. |
Run the sample and try to navigate using the buttons. If you are not sure what is going on, try to draw a graph of the actual database category levels and compare your position on the graph with the iterator settings. In a later sample, you will open documents using the part you just built, so please save your work.