public void Init()
 {
     ViewConfig.DataView.FetchXml = _parser.GetFetchXmlForQuery(ViewConfig, "%" + "" + "%");
     ViewConfig.DataView.Reset();
     ViewConfig.DataView.ResetPaging();
     ViewConfig.DataView.Refresh();
 }
예제 #2
0
        private void SearchRecords(string term, Action <EntityCollection> callback, string entityType)
        {
            string fetchXml = _queryParser.GetFetchXmlForQuery(entityType, "QuickFind", term, SearchTermOptions.PrefixWildcard | SearchTermOptions.SuffixWildcard);


            OrganizationServiceProxy.BeginRetrieveMultiple(fetchXml, delegate(object result)
            {
                EntityCollection fetchResult = OrganizationServiceProxy.EndRetrieveMultiple(result, typeof(Entity));
                fetchResult.EntityName       = entityType;
                callback(fetchResult);
            });
        }