![]() |
|
Creating Views
|
|
Sometimes the predefined SRS views may not show the information that you want to see. To allow you to view the particular information you require, you can create your own views using the View Manager page or from the Standard Query Form or Extended Query Form. These are referred to as "project views".
|
|
Creating Views from the Query Forms |
|
Both the Standard Query Form and the Extended Query Form provide a mechanism for specifying the datafields to be displayed on the Query Result page that results from the current query. This section describes how this is done.
Creating Views from the Standard Query FormThe bottom half of the Standard Query Form has a section entitled Create a view which allows you to specify the datafields that are to be used to display the results of your query (see Figure 5.12 ). You can also choose whether to display the results using a table or a list view, and the sequence format that is used.
Figure 5.12 Specifying the datafields to be used to display results on the Standard Query Form.To design your own view:
![]() Figure 5.13 Table and list view option buttons.
![]() Figure 5.14 Sequence format drop-down list.
|
|
![]()
|
|
Figure 5.15 Query Result page, showing a table view. |
|
![]()
|
|
Figure 5.16 Query Result page, showing a list view. Creating Views from the Extended Query FormOn the right of the Data Area is a column entitled Create a view (see Figure 5.17 ). This contains check boxes (one for each datafield) which are used to tell SRS to include a datafield in the results. You do not have to enter a search term in a field to have it included in the results. The drop-down list in the Result Display Options box allows you to choose whether to create a table or list view.
|
|
![]()
|
|
Figure 5.17 Select the fields to include on the Extended Query Form.To create a view from the Extended Query Form:
|
|
Creating Views using the View Manager Pages |
|
If the built-in views do not do what you need and the options on the Query Forms are insufficient, you can use the View Manager pages to create views. Note:There are two View Manager pages, referred to here as View Manager page 1 and View Manager page 2. Click the Views tab to go to the View Manager pages. You can control the following elements of any views that you create:
To Create a View
![]() Figure 5.18 Create View Options box, showing naming of a view and the table and list view options.Note:It is better not to include spaces and other special characters in names as some systems do not handle them properly. Use an underscore, or start new words with a capital letter instead.
![]() Figure 5.19 Selecting fields.
![]()
Figure 5.20 Selected databanks.
![]()
Figure 5.21 View Manager page 1.SRS will display the View Manager page 2 on which you can select the specific fields for your view. By default (it can be changed on View Manager page 1) the top box contains the fields which are common to all of the root databanks selected on the previous page. There are additional boxes below this for each linked databank you chose. Using these check boxes, select the fields that you would like to see in your view.
|
|
![]()
|
|
Figure 5.22 Select the datafields to be included in your view.Note:Each field name is a hypertext link to its Field Information page (see section on the "Information Pages - Field Information" in the Online Help ). So if you want to know more about a particular field, use these hypertext links to find out.
SRS includes a number of predefined views that you can use to change the way in which your results are displayed. In addition, you can create your own views. During this chapter you will learn:
|
|
![]() |