public void ConnectionParametersConsumer(IWebPartParameters parameters)
        {
            // Set the schema
            CamlPreprocessor camlPreprocessor = new CamlPreprocessor(CamlQuery);

            parameters.SetConsumerSchema(camlPreprocessor.GetSchema());
            // The get parameters callback
            parameters.GetParametersData(ConsumeParameterValues);
        }
示例#2
0
        /// <summary>
        /// Initializes the caml engine.
        /// </summary>
        private void InitializeCamlEngine()
        {
            Debug.WriteLine("InitializeCamlEngine " + Title);

            // There is a prevous initialization in
            // ConnectionParametersConsumer
            if (_camlPreprocessor == null)
            {
                _camlPreprocessor = new CamlPreprocessor(CamlQuery);
            }

            // Editing the connection Page is null
            if (Page != null && Page.IsPostBack)
            {
                Debug.WriteLine("- InitializeVariableValues (LastFilter)");
                _camlPreprocessor.InitializeVariableValues(LastFilter);
            }
        }
示例#3
0
        private void InitializeEngine()
        {
            Debug.WriteLine("InitializeEngine " + Title);

            _camlPreprocessor = new CamlPreprocessor(CamlQuery);

            _rollupEngine = new SPSRollUpEngine(
                _topSite,
                _lists,
                _fields,
                _maxRecords,
                _camlQueryRecursive,
                _includeListData,
                _dateTimeISO,
                _fixLookUp,
                GetCacheService());

            _rollupEngine.OnError += TrapSubsystemError;
        }
示例#4
0
 public void ResetCamlPreprocessor()
 {
     _camlPreprocessor = null;
 }