Advanced topic
The
Custom Fields Tool lets you define new fields in the database and/or for use in
Pivot Reports. The new fields are extracted from the XML strings that every
Event produces. This extraction is done using the XPATH language. An XPATH tutorial is beyond the scope of this document, but here are some examples of how you would extract fields from a Harvest Event (select an Event using
Select View and then view its XML using
Detail View).
//CurrentTemperature
finds an entry named "CurrentTemperature" anywhere in the event and returns its value.
//Times/Run
finds an entry named "Times" anywhere in the event, finds an entry below it that's named "Run" and returns its value.
//LogEntry[name="ProductName"]/value
finds an entry named "LogEntry" anywhere in the event that has an entry below it called "name" whose value is "ProductName", finds an entry below that "LogEntry" named "value" and returns its value.