The View Definition Wizard walks you through the process of defining new views. The View Definition Wizard creates views that are in 2.0 format.
On the Process Navigator, open the View Definition Wizard at:
The Wizard walks you through these major steps:
Choose an interactive report,a paginated report, an edit form, or a summary report (a View Analysis-style view).
Based on the type of view you selected in Step 1, the Wizard will present you with the options for this type of view. Each option has a diagram that shows the basic layout of the view.
Specify the tables that the view presents.
If you are defining a view with multiple tables, the Wizard restricts you to selecting tables appropriate for your previous selection. For example, if you are working on a two-level drill-down view and you choose Buildings as your first drill-down level, you must choose for your second drill-down level a table that contains the Building Code field.
In this step, you set many properties of the view. For example, the following image shows a view that presents two tables. For each of these tables, you can choose the buttons to set the fields that the view displays, the order in which it displays records, records it should omit, and so forth.
You may wish to completely finish defining your view before examining it, or may wish to examine the view after defining each property. In the Preview step, choose the Display View button and the Wizard displays the view in its own window. Examine the view and then optionally return to the Wizard's other steps to change your settings or define new settings. Make your changes and redisplay the view.
If you have not specified enough information for the type of view, the Wizard will notify you when it attempts to display the view. For example, if you have chosen to create a view-analysis view but you have not specified a calculation, the Wizard will not be able to display the view and will notify that the view is missing its calculations.
You may find that the View Definition Wizard does not provide all the options that you want to include in your view. For adding advanced properties to your view, you can directly edit the generated code of the .AVXW file by choosing the Enable Advanced Editing option from the Preview step. The Wizard displays the code of the .AVXW file, which you can then edit. Make your edits and save your changes. You can then use the Display View button to display the changed view.
When you save your changes at this point, the View Definition Wizard writes the changes to a default file. You can specify your own file name in the next step.
Note: Views created with the View Definition Wizard can be edited by users who invoke the Alter View Wizard icon from the view. These users can change such properties as field visibility, restriction, sort order, view analysis calculations, and charts.
If you wish to prevent users from accessing the Alter View Wizard to edit your view, edit the view in a text editor and set the isAlterable
attribute to false
such as:<designInfo
type=”summary” pattern=”ab-viewdef-summary-report”
isAlterable=”false”
/>
When you are satisfied with the appearance of your view, you can save it to an .AXVW file of your choice. First, specify the application and process or role to which the view belongs by choosing existing values from the lists. Then, enter the name of the .AXVW file to which you want to save the view. Be sure to include the .AXVW file extension.
Choose the Save View File button in the upper right corner, and the View Definition Wizard writes your settings to the specified view file and saves the file in:
..\archibus\schema\per-site\converted-files\<applications subfolder>
such as:
..\archibus\schema\per-site\converted-files\ab-products\workplace\building-operations
Note:Views and favorites are saved into the afm_ptasks table whose composite primary key includes the application (activity_id field) and the process (process_id field). Therefore, if a user's role prohibits them from an application and its processes, they cannot save views; their current role does not have the appropriate application and processes associated with it.
From the View Definition Wizard, you can define a task on the Process Navigator and connect your view to this task.
To do so, follow these steps:
- The View Definition Wizard displays the tasks for the Process/Role and Application defined in Step 6.
- For example, if you chose to save your view to the Building Operations application/Craftsperson role, the View Definition Wizard displays the current tasks for this role listed according to their display order.
- The View Definition Wizard displays a row with a display order value. Optionally, you can reposition the task by changing the value for the display order.
- Specify the title of the task.
- If you wish the view to appear on your My Favorites list, select Yes from the list in the Add to My Favorites? column.