Examples: AddMetric

The following example trigger processing procedure uses the AddMetric procedure to add a metric to the Home Page template for the Operations Manager role. The constant METRIC_TOP5LEADS was defined to identify the metric.

in integer iIndustry;
in integer iUserRole;

local string sUserID;

sUserID = 'User ID' of globals;

{Add a Metric for the Operations Manager}
if iUserRole = ROLE_OPSMGR then
	call AddMetric of form syHomePageMetric,
end if;

Documentation Feedback