Rockwell Automation 9307 FactoryTalk EnergyMetrix User Manual
Page 240

FactoryTalk EnergyMetrix Software
240
Properties
Fiscal Week Object
The FiscalWeek object represents one fiscal week.
Instancing
The FiscalWeek object is not a creatable object
Accessing
Each FiscalWeek object is accessed via the FiscalWeeks collection
Properties
Methods
Fiscal Weeks Collection
The FiscalWeeks object is a collection of FiscalWeek objects. The FiscalWeeks and
FiscalWeek objects provide an easy way for MPR script code to process data in fiscal
week periods.
Instancing
The FiscalWeeks object is not a creatable object.
Accessing
The Report object automatically creates one FiscalWeeks object (accessible by using the
Report.FiscalWeeks property).
Property
R/W
Description
FiscalQuarters(index) As
FiscalQuarter
R
Collection of FiscalYear objects that represent the
report date range in periods of fiscal years
Property
R/W
Description
FiscalYearNumber As
Integer
R
The fiscal year number (2009)
FiscalWeekNumber As
Integer
R
The fiscal week number (1…53)
StartDate As DateTime
R
The starting date of the fiscal week ( 9/28/2009 00:00:00)
EndDate As DateTime
R
The ending date of the fiscal week (10/4/2009 00:00:00)
Method
Description
AddFiscalWeeks(int
numFiscalWeeks)
As FiscalWeek
Gets the fiscal week object for the fiscal year specified as an offset
from the current fiscal week object. Returns null if there is no fiscal
year configured for that period.