Step by Step description how to build the sample
Make sure you have performed the initial steps to rebuild the samples before you proceed (see Preparations for Version 4.5 samples). Create a new visual part. If you have not already done so, create a connection specification named MyDiscussionSample for the local \vasample\vadis45.nsf database.
1. Select Domino Parts from the parts palette and add a DominoView part to the free form surface. Double-click the view part to open the settings page. From the Alias Name dropdown listbox select the MyDiscussionSample connection alias. The view part is now reading structural information about the sample database. From the View Name dropdown list select By Category . Select the Error Reporter Creation Automatic check box to make the part ready for automatic error handling.
2. Select OK to close the settings page. You have now configured the view part to represent the By Category view of the discussion sample database. Connect the aboutToOpenWidget event of the main window to the open action of the view part to initialize the part during runtime. Connect the aboutToCloseWidget event of the main window to the close action of the view part to free associated resources when the program ends.
3. Tear off the database attribute of the view part and place it on the free form surface. Connect the title attribute of the tear off database part with the title attribute of the main window on the free form surface to display the database title at runtime. Add an entry field to the window to display the view name of the selected view. Tear off the viewName attribute of the view part. The viewName attribute contains an instance of an object that holds the views primary name and its alias names. Connect the primary attribute of the tear off viewName attribute of the view part with the object attribute of the entry field.
4. From the Domino views' pop-up menu use Quick Form and select ViewTable to create a listbox (actually a tree view) to display the views contents in the window. Place the tree view in the main window. You will notice that the list contains five columns - you will probably have to enlarge the list to see all of the columns. As the second and the third columns are used for programming purposes only, you can delete those columns from the list.
5. Add two buttons labeled Update and Cancel. Connect the clicked event of the Update button to the update action of the view part. Clicking this button will refresh the view index and collapse the view visually. Finally connect the clicked event of the Cancel button to the closeWidget action of the main window. You are now ready to test the part. If anything does not work as expected, compare your work with the sample code in AbtNotesDemoApp45.
Last modified date: 01/29/2015