Esempio n. 1
0
        private void InternalCrawl(bool isPostBack)
        {
            Debug.WriteLine("InternalCrawl " + Title);

            if (isPostBack)
            {
                _camlPreprocessor.InitializeVariableValues(LastFilter);
            }

            if (!_processed)
            {
                if (_rollupEngine.CamlQuery == null)
                {
                    _rollupEngine.CamlQuery = _camlPreprocessor.Evaluate();
                }

                // Get the data
                _rollupEngine.CrawlData();

                // Save the selected row
                if (_rollupEngine.SelectedRow.HasValue)
                {
                    LastRow = _rollupEngine.GetDataValues();
                }

                _processed = true;
            }
        }
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);
            }
        }