Working with Templates

For information on working with asset types, see Asset Types. For information on working with structure and establishment types, see Structures and Establishments.

Topics

Creating a Template

A template is a collection of selected attributes associated with a specific class of asset, structure, or establishment. A template might also include a collection of selected attribute tables associated with a specific asset class. You can attach templates to asset, structure, and establishment types, and the records created from those types display the attribute fields contained in the template.

For example a vehicle template can have tire size, tread depth, tire pressure, engine size, and transmission type as attributes. These fields display in any asset record created from an asset type based on this template. For more information about creating an asset type see Asset Types. For information on working with structure and establishment types, see Structures and Establishments.

To create a template

  1. Access the Structures & Establishments Template portlet (Navigating to the Setup Portlet) or the Assets Attribute Template portlet (Navigating to the Setup Portlet).

  2. Click New.

    Civic Platform displays the Create New Template portlet.



  3. Complete the following fields:

    Template ID Enter the number used to identify the template.
    Template Description Enter the description to identify the template.
  4. Click Submit.

    Civic Platform updates the Template detail portlet.

  5. Click the Attributes tab.

    Civic Platform displays the Attribute Template list portlet.



  6. Add attributes to the template.

    To add existing attributes, complete these steps:

    1. Click Look Up.

      Civic Platform displays the Attribute Template search page.

    2. Complete any fields that display. For a description of the fields, see Attribute Fields.

    3. Click Submit.

      Civic Platform returns a list of attributes that match your search criteria.

    4. Select any attribute(s) you want to add to the template.

    5. Click Select.

      Civic Platform adds the attribute(s) to the template.

  7. To create new attributes for the template, see Creating an Attribute or complete these steps:

    1. Click New.

      Civic Platform displays the Create New Attribute page.

    2. Complete these fields:
      Attribute Label Enter the label of the attribute the user sees when adding or editing an asset, structure, or establishment.
      Attribute Name Enter a unique attribute name, such as Commercial Establishment Capacity. This name only displays for administrators.
      Value Data Type Use the drop-down list to identify the data value for the attribute such as text, date, Y/N, number, drop-down list, text, and time.
    3. Complete any other fields that display. For a description of the fields, see Attribute Fields.

    4. Click Submit.

      Civic Platform creates the attribute and adds it to the template.

  8. Add attribute tables to the template.

    1. Click Look Up.

      Civic Platform displays the Attribute Table search page.

    2. Complete these fields:

      Attribute Table Name Enter the name of the attribute table you want to find.
      Description Enter a description of the attribute table you want to find.
      Record Status Select the status of the attribute table you want to find.
    3. Click Submit.

      Civic Platform displays a list of attribute tables that match your search criteria.

    4. Select the attribute table(s) you want to add to the template.

    5. Click Select.

      Civic Platform adds the attribute table(s) to the template, then displays a confirmation message.

Searching for a Template

Use the following procedure to search for a template. If you do not know the full name of the template, you can perform a partial search by typing in part of the template name. For example, to find the backflow east valve template, type backflow in to the Template ID field. Civic Platform returns all template IDs that have “backflow” as part of the Template ID.

To search for a template

  1. Access the Structures & Establishments Template portlet (Navigating to the Setup Portlet) or the Assets Attribute Template portlet (Navigating to the Setup Portlet).

  2. Click Search.

    Civic Platform displays the Template search portlet.

  3. Enter any search criteria in the fields.

  4. Click Submit.

    Civic Platform returns a list of templates that match the search criteria.

Editing a Template

After you create a template, you might need to update the template. For example, an agency adds lift loaders to the bed of all trucks in the fleet. The assets need to indicate which vehicles have loaders. You must add a loader attribute to the template so the attribute can display in the asset portlet for the user.

To edit a template

  1. Access the Structures & Establishments Template portlet (Navigating to the Setup Portlet) or the Assets Attribute Template portlet (Navigating to the Setup Portlet).

  2. Click the Template ID link for the asset template you want to update.

    Civic Platform displays the Template detail portlet.

  3. Do any of the following:

    • On the Attribute Template tab, update the template description as necessary.

    • On the Attributes tab, manage template attributes as explained in Managing Template Attributes.

    • On the Attribute Tables tab, manage template attribute tables as explained in Managing Template Attributes.

Deleting a Template

You can only delete templates that are not the basis for an asset, structure, or establishment type. For information about creating a template, see Creating a Template.

To delete a template

  1. Access the Structures & Establishments Template portlet (Navigating to the Setup Portlet) or the Assets Attribute Template portlet (Navigating to the Setup Portlet).

  2. Select the Template ID for each template you want to delete.

  3. Click Delete.

    Civic Platform deletes the templates and updates the Asset Template list portlet.

Managing Template Attributes

Topics

Creating Template Attributes

To create template attributes

  1. Access the Structures & Establishments Template portlet (Navigating to the Setup Portlet) or the Assets Attribute Template portlet (Navigating to the Setup Portlet).

  2. Click the Template ID link for the asset template you want to update.

    Civic Platform displays the Template detail portlet.

  3. Click the Attributes tab.

    Civic Platform displays the Template Attribute list portlet.

  4. Click New to add template attribute information to this template.

    Civic Platform displays the Attribute Detail form portlet for the template.

  5. Complete the fields you need to define the new template attribute.

  6. Click Submit.

    Civic Platform updates the Template detail portlet.

Copying Template Attributes

You do not need to create new attributes for every template. When you create an attribute for another template, you can copy that attribute to any template you create.

To search and copy a template attribute

  1. Find the template from which you want to delete an attribute. For instructions, see or Creating a Template.

  2. Click the Template Attribute tab.

    Civic Platform displays a list of existing attributes for the selected template.

  3. Click Look Up.

    Civic Platform displays the Template Attribute Search form.

  4. Enter any search criteria in the fields.

  5. Click Submit.

    Civic Platform displays the attributes that match your search criteria.

  6. Select each attribute you want to copy to the current template

  7. Click Submit.

    Civic Platform copies the selected attributes to the current template.

Editing Template Attributes

When you edit an attribute for a particular asset template, be aware that the attribute can have other templates. Any changes you make to the attribute affect all templates that the attribute resides on. Be careful that your changes do not negatively affect other templates.

To edit a template attribute

  1. Find the template from which you want to delete an attribute. For instructions, see Searching for a Template.

  2. Click the Template Attribute tab.

    Civic Platform displays a list of existing attributes for the selected template.

  3. Click the link for the attribute you want to modify.

    Civic Platform displays the attribute details.

  4. Edit the necessary fields.

  5. Click Submit.

Deleting an Attribute from a Template

If you want to remove an attribute from a template, you can delete it. However, Civic Platform removes all relevant data stored in the database for asset, structure, and establishment types created using this template when you delete an attribute.

To delete a template attribute

  1. Find the template from which you want to delete an attribute. For instructions, see Searching for a Template.

  2. Click the Attributes tab.

    Civic Platform displays a list of existing attributes for the selected template.

  3. Select each attribute that you want to remove from the template.

  4. Click Delete.

    Civic Platform displays a dialogue box informing you that deleting the attribute removes all relevant data stored in the database for asset types using this template and asks you to confirm if you want to delete the attribute.

  5. Click OKto continue or Cancel.

    If you Click OK, Civic Platform removes the selected attributes from the asset template. If you click Cancel, Civic Platform returns to the Attributes list portlet.

Editing the Display Order of Template Attributes

Because you can use template attributes for multiple templates, you might need to order them differently for each template. For example, suppose that you have an attribute called diameter that you use to record the diameter of pipes, couplings, and drains. You can change the diameter attribute listed fourth for pipes, seventh for couplings, and twelfth for drains.

In such a case, the display order field in the attributes detail are not sufficient to define the display order for all three templates. You can override an attribute’s display order on each template.

To edit the display order of template attributes

  1. Find an existing asset template or create a new one. For instructions, see Searching for a Template or Creating a Template.

  2. Click theAttributes tab.

    Civic Platform displays a list of existing attributes for the selected template.

  3. Locate the attribute for which you want to change the order. Scroll to the right until you find the Display Order link.

  4. Click the Display Order link.

    Civic Platform displays the attribute display order form.

  5. Enter the number of the order for the attribute in this particular template.

  6. Click Submit.

    Civic Platform overrides the attribute display order for the chosen template.

Managing Template Attribute Tables

Topics

Associating an Attribute Table with a Template

After you create an attribute table, you can associate it with a template. This way, you can associate multiple attributes with a template simultaneously.

For example, you might associate an attribute table named Pavement Inspection with a template named Street Segment. When you associate the Pavement Inspection attribute table with the Street Segment template, you also associate all the table attributes with the template. This includes the inspection date, pavement rating, and inspection comment attributes.

You can associate each attribute table with multiple templates. Use templates to create asset, structure, and establishment record types. When an agency user creates a new record, attributes display as fields in the record form.

To associate an attribute table with a template

  1. Find the template from which you want to delete an attribute table. For instructions, see Searching for a Template.

  2. Click the Attribute Tables tab.

    Civic Platform displays a list of existing attribute tables for the selected template.

  3. Click Look Up.

    Civic Platform displays the Attribute Table Lookup page.

  4. Complete these fields:

    Attribute Table Name Enter the name of the attribute table you want to find.
    Description Enter the description of the attribute table you want to find.
    Record Status Enter the status of the attribute table you want to find.
  5. Click Submit.

    Civic Platform displays the attribute tables that match your search criteria.

  6. Select the attribute table(s) you want to associate with the template.

  7. Click Select.

    Civic Platform associates the selected table(s) with the template and displays a confirmation message.

Deleting an Attribute Table from a Template

You can remove the association between an attribute table and a template. When you delete an attribute table from a template, you also delete all relevant data stored in the database for asset types created using the associated template.

To delete an attribute table from a template

  1. Find the template from which you want to delete an attribute table. For instructions, see or Creating a Template.

  2. Click the Attribute Tables tab.

    Civic Platform displays a list of existing attribute tables for the selected template.

  3. Select each attribute table that you want to remove from the template.

  4. Click Delete.

    Civic Platform displays a dialogue box informing you that deleting the attribute table removes all relevant data stored in the database for asset types using this template and asks you to confirm if you want to delete the attribute.

  5. Click OKto continue or Cancel.

    If you Click OK, Civic Platform removes the selected attribute tables from the asset template. If you click Cancel, Civic Platform returns to the Attribute Tables list portlet.