Refreshing Relevance

In general, users of the Console expect the documents to be updated as new information comes in from the database. To make <?relevance?> instructions automatically update, you must specify another pair of processing instructions to enclose the desired section of the document:


These tags will cause every <?relevance?> tag contained between them to be re-evaluated every time something in the Database changes.

Note: Web Reports does not support refreshing relevance.

The actual implementation of this update is important because it can affect how you code your HTML. The <?BeginRefreshRelevance?> tag is replaced by a <span> tag, and the <?EndRefreshRelevance?> tag is replaced by a </span> tag.

To correctly identify which <span> must be updated, the console assigns an ID attribute to the <span> tag that it generates to replace the <?BeginRefreshRelevance?> tag. By default, that ID is "__DRRSN" (an acronym for Default Refresh Relevance Section Name). You can specify a different ID in the refresh tags like this:

<?BeginRefreshRelevance id="MyRefreshSpan"?>
<?EndRefreshRelevance id="MyRefreshSpan"?>

Note that the IDs must match. You can nest RefreshRelevance tags arbitrarily because they will be matched up using their IDs. You cannot specify more than one RefreshRelevance section without using an ID attribute.

You can specify what types of changes will trigger a refresh, and how often, by adding attributes to the BeginRefreshRelevance tag, for example:

<?BeginRefreshRelevance id="OpenActions" ActionResults="00:01:00" Actions="00:00:00" ?>
<?relevance (link of it & " (" & (number of results of it as string) & ")" & br) of bes actions whose (state of it is "Open") ?>
<?EndRefreshRelevance id="OpenActions" ?>

The first line has an attribute called ActionResults, which determines the refresh rate. Here it is set to 00:01:00 to refresh no more than once per minute (using the standard BigFix TimeInterval string format). When an action result changes, the Console will only refresh the section if at least one minute has passed since the last action result change was detected.

Other refresh attributes include:

  • Computers: Refresh whenever a computer is added or removed (ComputerDataStore).
  • ReportTimes: Refresh whenever a computer's last report time changes.
  • ExternalContent: Refresh whenever external Fixlet site content changes (FixletStore).
  • CustomContent: Refresh whenever custom content changes, not including actions (ActionSiteStore).
  • Actions: Refresh whenever actions are taken, stopped, restarted, and so on. (ActionStore).
  • ActionResults: Refresh whenever a client reports on the status of an action (ActionResultStore).
  • FixletResults: Refresh whenever a client reports on the relevance of a Fixlet (FixletResultStore).
  • PropertyResults: Refresh whenever a client reports a new value for a retrieved property (RPResultStore).
  • RefreshCycle: Force a refresh at the end of the refresh cycle, regardless of whether anything has changed.
  • ManualRefresh: Define blocks that can be refreshed manually by using the ManualRefresh attribute in combination with the predefined ManualRefresh script function.

This is an example of ManualRefresh:

<?BeginRefreshRelevance ManualRefresh="00:00:00"?>
<?relevance now ?>
<?BeginRefreshRelevance id="Foo" ManualRefresh="00:00:00"?>
<?relevance now ?>
<?EndRefreshRelevance id="Foo"?>

Note: You must pass the ID of “Clock” to the ManualRefresh function, or you will refresh the wrong section.