Example #1
0
 private void SetupFieldsForNewDataSetWithoutResettingOldFieldFlags(Microsoft.ReportingServices.ReportIntermediateFormat.DataSet dataset, bool addRowIndex, bool noRows, bool forceNewFieldsContext)
 {
     m_currentFields = (UseDataSetFieldsCache ? dataset.DataSetCore.FieldsContext : null);
     if (m_currentFields == null || !m_currentFields.Fields.IsCollectionInitialized || m_currentFields.Fields.NeedsInlineSetup || forceNewFieldsContext)
     {
         m_currentFields = new FieldsContext(this, dataset.DataSetCore, addRowIndex, noRows);
     }
 }
Example #2
0
 internal ObjectModelImpl(ObjectModelImpl copy, OnDemandProcessingContext odpContext)
 {
     m_odpContext    = odpContext;
     m_currentFields = new FieldsContext(this);
     m_parameters    = copy.m_parameters;
     m_globals       = new GlobalsImpl(odpContext);
     m_user          = new UserImpl(copy.m_user, odpContext);
     m_dataSets      = copy.m_dataSets;
     m_dataSources   = copy.m_dataSources;
     m_reportItems   = null;
     m_aggregates    = null;
     m_lookups       = null;
 }
Example #3
0
 internal ObjectModelImpl(OnDemandProcessingContext odpContext)
 {
     m_currentFields = null;
     m_parameters    = null;
     m_globals       = null;
     m_user          = null;
     m_reportItems   = null;
     m_aggregates    = null;
     m_lookups       = null;
     m_dataSets      = null;
     m_dataSources   = null;
     m_odpContext    = odpContext;
 }
Example #4
0
 internal FieldsImpl GetFieldsImplForUpdate(Microsoft.ReportingServices.ReportIntermediateFormat.DataSet currentDataSet)
 {
     if (currentDataSet.DataSetCore != m_currentFields.DataSet)
     {
         if (currentDataSet.DataSetCore.FieldsContext != null && UseDataSetFieldsCache)
         {
             m_currentFields = currentDataSet.DataSetCore.FieldsContext;
         }
         else
         {
             Global.Tracer.Assert(condition: false, "Fields collection is not setup correctly. Actual: " + m_currentFields.DataSet.Name.MarkAsPrivate() + " Expected: " + currentDataSet.DataSetCore.Name.MarkAsPrivate());
         }
     }
     return(m_currentFields.Fields);
 }
Example #5
0
        internal void Initialize(DataSetDefinition dataSetDefinition)
        {
            int size = 0;

            if (dataSetDefinition.DataSetCore != null && dataSetDefinition.DataSetCore.Query != null && dataSetDefinition.DataSetCore.Query.Parameters != null)
            {
                size = dataSetDefinition.DataSetCore.Query.Parameters.Count;
            }
            m_parameters = new ParametersImpl(size);
            InitializeGlobalAndUserCollections();
            m_currentFields = new FieldsContext(this, dataSetDefinition.DataSetCore);
            m_dataSources   = new DataSourcesImpl(0);
            m_dataSets      = new DataSetsImpl(0);
            m_variables     = new VariablesImpl(lockAdd: false);
            m_aggregates    = new AggregatesImpl(lockAdd: false, m_odpContext);
            m_reportItems   = new ReportItemsImpl(lockAdd: false);
            m_lookups       = new LookupsImpl();
        }
Example #6
0
        internal void Initialize(Microsoft.ReportingServices.ReportIntermediateFormat.Report report, Microsoft.ReportingServices.ReportIntermediateFormat.ReportInstance reportInstance)
        {
            int size = 0;

            if (report.Parameters != null)
            {
                size = report.Parameters.Count;
            }
            m_parameters = new ParametersImpl(size);
            InitializeGlobalAndUserCollections();
            m_currentFields = new FieldsContext(this);
            m_dataSources   = new DataSourcesImpl(report.DataSourceCount);
            m_dataSets      = new DataSetsImpl(report.DataSetCount);
            InitOrUpdateDataSetCollection(report, reportInstance, initialize: true);
            m_variables   = new VariablesImpl(lockAdd: false);
            m_aggregates  = new AggregatesImpl(lockAdd: false, m_odpContext);
            m_reportItems = new ReportItemsImpl(lockAdd: false);
            m_lookups     = new LookupsImpl();
        }
Example #7
0
 internal void RestoreFields(FieldsContext fieldsContext)
 {
     m_currentFields = fieldsContext;
     m_currentFields.AttachToDataSetCache(this);
 }
Example #8
0
 internal void SetupPageSectionDataSetFields(Microsoft.ReportingServices.ReportIntermediateFormat.DataSet dataset)
 {
     m_currentFields = new FieldsContext(this, dataset.DataSetCore, addRowIndex: false, noRows: true);
     m_currentFields.Fields.NeedsInlineSetup = true;
 }
Example #9
0
 internal void SetupEmptyTopLevelFields()
 {
     m_currentFields = new FieldsContext(this);
 }
Example #10
0
 internal SecondaryFieldsCollectionWithAutomaticRestore(ObjectModelImpl reportOM, FieldsContext fieldsContext)
 {
     m_reportOM      = reportOM;
     m_fieldsContext = fieldsContext;
 }