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

            parameters.SetConsumerSchema(camlPreprocessor.GetSchema());
            // The get parameters callback
            parameters.GetParametersData(ConsumeParameterValues);
        }
Esempio n. 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);
            }
        }
Esempio n. 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;
        }
Esempio n. 4
0
 public void ResetCamlPreprocessor()
 {
     _camlPreprocessor = null;
 }