Form metrics
An alternative method to displaying metrics is by using a form view.
Displaying metrics in a form is accomplished by defining a query section in a form, where the query referenced is a metric query. The data that the metric query selects can be filtered to display based on the parent record that the form is displayed in. Related switching of reports allows the exchanging of queries that are based on user actions.
At design time, define a metric query with a $$RECORDID$$ and $$PARENT::[Section]:: [Field]$$ filter. At runtime, the parent record the form is displayed in implicitly filters the data that the Metric Query Engine selects to display.
You can define other metric queries as related reports. At runtime, when the metric query is displayed within a form-related report, switching control enables the user to exchange the displayed query.