Difference between revisions of "Database Entity Views"

From support-works
Jump to navigation Jump to search
Line 10: Line 10:
 
| applicableto=Supportworks ITSM x.x
 
| applicableto=Supportworks ITSM x.x
 
}}
 
}}
 +
 +
Database Entity Views on the Supportworks client provide another means of searching for managed entities such as customers and assets. They are accessed from the client’s shortcut bar, and are available to any of your users. Examples include Customers, Organisations, Search for Requests and Knowledgebase menu items that are found on the left hand side of the client.
  
 
To add a new database entity view, follow these steps:
 
To add a new database entity view, follow these steps:
  
In the Data Dictionary Editor, choose the File > New > Database Entity View menu option and, at the prompt, enter a name such as “Search for Customers”. An item representing your new database entity view appears under the relevant category, and you will notice, on the right-hand side, that most of the attributes of this item are empty.  
+
In the Data Dictionary Editor, choose Database Entity Views and click on File > New > Database Entity View menu option and, at the prompt, enter a name such as “Search for Customers”. An item representing your new database entity view appears under the relevant category, and you will notice, on the right-hand side, that most of the attributes of this item are empty.  
 
Set the Table attribute to point to the swdata table you want to search on – in this case, userdb.  
 
Set the Table attribute to point to the swdata table you want to search on – in this case, userdb.  
 
Set the Search Title attribute to “Search for Customers”.  
 
Set the Search Title attribute to “Search for Customers”.  
Line 21: Line 23:
 
firstname  
 
firstname  
 
surname  
 
surname  
siteemail
+
site
 +
email
  
 
Now, you need to specify the Search Result Columns for the view. These are the columns that will be shown in the result list of records that match the search criteria. An important condition here is that you include the primary key column of the search table. In this example, userdb is the search table, so the primary key column is keysearch. Select the following columns for inclusion in the results display:  
 
Now, you need to specify the Search Result Columns for the view. These are the columns that will be shown in the result list of records that match the search criteria. An important condition here is that you include the primary key column of the search table. In this example, userdb is the search table, so the primary key column is keysearch. Select the following columns for inclusion in the results display:  
Line 31: Line 34:
 
telext  
 
telext  
 
email
 
email
 +
 +
Set the Default Search Option to either “Any search fields match” or “All search fields must match”. The latter indicates that, for any search, only those records whose column values match all of the values entered into the search criteria will appear in the results. Note that your selection here will just be the default setting: the analyst conducting the search will still be able to choose between the two.
 +
The Search Filter attribute allows you to filter the returned data. For example, you could specify that you only want records relating to customers at Head Office. You would do this by typing the following into the filter field (without the double quotes): “location = ‘Head Office’ ”. However, for the purposes of this exercise, you can leave the field blank.
 +
Save your changes and close the Data Dictionary Editor.

Revision as of 11:25, 23 January 2018



Status: Published
Version: 1.0
Authors: Hornbill Support
Applies to: Supportworks ITSM x.x

Database Entity Views on the Supportworks client provide another means of searching for managed entities such as customers and assets. They are accessed from the client’s shortcut bar, and are available to any of your users. Examples include Customers, Organisations, Search for Requests and Knowledgebase menu items that are found on the left hand side of the client.

To add a new database entity view, follow these steps:

In the Data Dictionary Editor, choose Database Entity Views and click on File > New > Database Entity View menu option and, at the prompt, enter a name such as “Search for Customers”. An item representing your new database entity view appears under the relevant category, and you will notice, on the right-hand side, that most of the attributes of this item are empty. Set the Table attribute to point to the swdata table you want to search on – in this case, userdb. Set the Search Title attribute to “Search for Customers”. Now, you need to create the search-criteria fields for the view. These are the fields into which your users will be able to enter search text, against which results will be returned. When you click on the Search Columns attribute field’s button, the columns from the userdb table are presented to you. Add the following columns as the ones to be included:

keysearch firstname surname site email

Now, you need to specify the Search Result Columns for the view. These are the columns that will be shown in the result list of records that match the search criteria. An important condition here is that you include the primary key column of the search table. In this example, userdb is the search table, so the primary key column is keysearch. Select the following columns for inclusion in the results display:

keysearch firstname surname site telext email

Set the Default Search Option to either “Any search fields match” or “All search fields must match”. The latter indicates that, for any search, only those records whose column values match all of the values entered into the search criteria will appear in the results. Note that your selection here will just be the default setting: the analyst conducting the search will still be able to choose between the two. The Search Filter attribute allows you to filter the returned data. For example, you could specify that you only want records relating to customers at Head Office. You would do this by typing the following into the filter field (without the double quotes): “location = ‘Head Office’ ”. However, for the purposes of this exercise, you can leave the field blank. Save your changes and close the Data Dictionary Editor.