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,
		sUserID,
		IG_PROD_ID,
		METRIC_TOP5LEADS;
end if;


Documentation Feedback