Exemple #1
0
 internal override void DetermineGroupingExprValueCount(InitializationContext context, int groupingExprCount)
 {
     if (m_reportItems != null)
     {
         m_reportItems.DetermineGroupingExprValueCount(context, groupingExprCount);
     }
 }
Exemple #2
0
        internal void BodyInitialize(InitializationContext context)
        {
            context.RegisterReportItems(m_reportItems);
            m_textboxesInScope = context.GetCurrentReferencableTextboxes();
            m_variablesInScope = context.GetCurrentReferencableVariables();
            m_reportItems.Initialize(context);
            Report report = context.Report;

            if (report.HasUserSortFilter || report.HasSubReports)
            {
                context.InitializingUserSorts = true;
                m_reportItems.InitializeRVDirectionDependentItems(context);
                context.EventSourcesWithDetailSortExpressionInitialize(null);
                List <DataSource> dataSources = report.DataSources;
                if (dataSources != null)
                {
                    for (int i = 0; i < dataSources.Count; i++)
                    {
                        List <DataSet> dataSets = dataSources[i].DataSets;
                        if (dataSets != null)
                        {
                            for (int j = 0; j < dataSets.Count; j++)
                            {
                                context.ProcessUserSortScopes(dataSets[j].Name);
                            }
                        }
                    }
                }
                context.ProcessUserSortScopes("0_ReportScope");
            }
            if (report.HasPreviousAggregates)
            {
                m_reportItems.DetermineGroupingExprValueCount(context, 0);
            }
            context.UnRegisterReportItems(m_reportItems);
        }