internal void Initialize(string propertyName, InitializationContext context) { context.CheckFieldReferences(m_referencedFields, propertyName); context.CheckReportItemReferences(m_referencedReportItems, propertyName); context.CheckReportParameterReferences(m_referencedParameters, propertyName); context.CheckDataSetReference(m_referencedDataSets, propertyName); context.CheckDataSourceReference(m_referencedDataSources, propertyName); if ((LocationFlags.InMatrixCellTopLevelItem & context.Location) != 0 && m_referencedFields != null) { context.ErrorContext.Register(ProcessingErrorCode.rsNonAggregateInMatrixCell, Severity.Warning, context.ObjectType, context.ObjectName, propertyName); } context.FillInFieldIndex(this); context.TransferAggregates(m_aggregates, propertyName); context.TransferRunningValues(m_runningValues, propertyName); context.MergeFieldPropertiesIntoDataset(this); context.FillInTokenIndex(this); m_referencedFieldProperties = null; }