Edit the reactor template
- Last UpdatedDec 13, 2024
- 2 minute read
- PI System
- PI Server 2018
- PI Server
Before you edit the reactor template, you need to Create the reactor templates.
You can use PI Builder to edit previously created templates. Follow this procedure to edit the reactor template that you created in a previous exercise. You will edit the template to add new attribute templates, including child attribute templates.
-
Open a new Microsoft Excel worksheet and click the PI Builder tab.
-
In the Connections group, open the database in which you created the reactor template:
-
From the AF Server list, select the PI AF server that stores the database.
-
From the Database list, select the database.
-
-
Retrieve the reactor template:
-
Click Library > Templates > Find Templates to open the Template Selection window.
-
In the table of templates, select Reactor Template and click OK.
-
In the Select Object Types and Column Headers window, click Clear All.
-
From the Attribute Template group, select the Type check box.
-
Click OK.
PI Builder retrieves the template from PI AF and writes the data in the selected columns in your worksheet. The Retrieve Selected Objects window shows the operations completed.
-
Click Close.
The worksheet should look like this:
Note: If you don't have a reactor template, then create the worksheet illustrated above and publish it to PI AF.
-
-
Create the new attribute templates:
-
Copy the third row and paste it into the next three rows.
-
In row four, specify a manufacturer attribute:
Column
Value
Name
Manufacturer
AttributeType
String
-
In row five, specify a serial-number attribute, which is a child attribute of the manufacturer attribute:
Column
Value
Name
Manufacturer | Serial Number
AttributeType
String
Note: Because this is an attribute, the Parent column still must specify Reactor Template. An attribute-relative path in the name indicates the hierarchy.
-
In row six, specify a maintenance-date attribute, also a child attribute of the manufacturer attribute:
Column
Value
Name
Manufacturer | Last Maintained
AttributeType
DateTime
The worksheet should look like this:
-
-
Publish the modified template:
-
Click Publish to open the Publish Options window.
-
From the Edit Mode list, select Create and Edit.
-
Click OK.
PI Builder creates the templates in the database. The Publish Selected Objects window shows the operations completed. PI Builder automatically checks in the changes.
-
Click Close.
You can view the templates in PI System Explorer. If PI System Explorer is already open, click Refresh to see the changes.
-