.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

BDC Scope

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#

I noticed in the example search webpart available from microsoft, that their SQL query is similar to this.... "SELECT stuff FROM SCOPE() WHERE scope=4". So they are using an integer value, in this case 4, to identify an Application Definition File (in this case, the AdventureWorks ADF). How do I programmatically determine which integer value corresponds to my application definition file?

View Complete Post

More Related Resource Links

'Model' cannot be declared in this scope


I have a complex partial view (ugly stuff), the view page has this line:- 

<% Html.RenderPartial("PartialIndicatorWeighting", indicator);%>
and inside the ugly partial view I have this,
<td><%: Model.Active %><%: Html.CheckBoxFor(Model => Model.Active)%></td>
I'm trying to display a list of checboxes to show if the item is active or not, I get the following error:-
A local variable named 'Model' cannot be 

.NET Matters: Scope and More


This month Stephen Toub explains how you can get some of the functionality found in the TransactionScope class in your own classes.

Stephen Toub

MSDN Magazine September 2006

Mysite Search Scope

I have four search scopes in the Shared services SSP. But in sharepoint 2007 mysite i see only All sites and People search scopes in the dropdown by default. I want to enable other two search scopes for all Mysites. I know how to enable search scopes individually but i would like enable search scope globally for all Mysites in my sharepoint webapplication.

Please suggest.


FAST Search for SP2010 scope setting works but not getting results.



I am trying this from last two days , but it does not work. I have created two scopes for FAST Search Query SSA , they appear in search center , but I am not getting any results back. I see them being fired in the FAST query log.

First one is a simple one:

New-SPEnterpriseSearchQueryScope -SearchApplication "FAST Query SSA" -Name DCO -Description "All DCO Documents" -DisplayInAdminUI 1 -ExtendedSearchFilter "ContentSource:DCO"

Content source is a managed property. and i can just query "contentsource:dco" from the text box which gives me results.

When I fire the query i see it in FAST Search query log

"GET /cgi-bin/search?qtf_keyword:context=ssgid%3a%3a4d020606-8532-45d8-b09a-db11283cccb4%7cSPS-Location%3a%3a%7cSPS-Responsibility%3a%2c%3a%7c&rpf_navigation:hits=50&rpf_navigation:enabled=True&spell=suggest&qtf_parsekw:timezone=10&type=kwall&qtf_teaser:dynlength=185&resubmitflags=8192&language=en&query=CASHIERING&sortby=%2bdefault&qtf_lemmatize=True&offset=0&version=

Top-Level Search Scope not showing in Sub-Site


I've got a site 'B' created under site 'A' in SharePoint. When I'm at Site A, I can search and find things that exist in both A&B. However, when I'm in B, the 'highest' search scope I can pick is 'B.' I'd like to be able to select one step higher so that I can search A&B from any page. Is this possible?

Items count in scope "not available" in on WFE while it is correct in another WFE

Recently, we added a new WFE in the farm to do load balance. After installation, the search is not working occassionally(almost 50%). It apparently hits the new server. The error message:
Your search cannot be completed because of a service error. Try your search again or contact your administrator for more information.

I checked the Items count on view scopes. It is correct on old WFE, while it is "not available" on new WFE.
 In the Office Sharepoint Server Search Seveice seeting, I checked "Use this server for indexing content" and "use this server for serving search queries". I had ever tried to uncheck ""use this server for serving search queries". It is not working, either.

Any suggestion?

Search Scope Issue



I have 8 web applications containing different sites. One of the web applications is hosting a site called pmsportal.

Currently search results display files from all sites and from all web applications having matching results. That is like google!!! Sweet!!! BUT its over-performing! The owners of the pmsportal want search results to display only results from within their site ONLY...how do I do that? In the SSP Search Settings I have only two(2) Content Sources defined

(1) Local Office SharePoint Server sites

(2) PeopleSoft_Data

Someone please help.

Instance scope for WorkflowApplication and extensions

Hi guys,   The documentation isn't quite clear on the instance scope of WorkflowApplication and related extensions. As far as I can tell, a WorkflowApplication can only be used to run a workflow once. It can't be reused to run the workflow any subsequent times. If this is the case, any extensions used in the WorkflowApplication instance are then scoped to that run of the workflow. Is this correct? Cheers

Search Scope

Dear Friend, When I Click the Search Scope that time I got this error kinldy any one help me the error is "Unknown Error Troubleshoot issues with Windows SharePoint Services.  " Please its urgent for me, Other wise kindly say me how I implement searching in sharepoint 2007 

scope identity...

 I need to get the identity (scope_identity) value of the newly inserted record. I don't see a way to do this.    I'm using public static int Insert(string planName, string planDescription, int offerID, int userID) { using (OLTPEntities context = new OLTPEntities()) { context.plan.AddObject(new plan() { plan_name = planName, plan_description = planDescription, offer_id = offerID, create_date = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day), last_update_date = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day), last_updated_by = userID }); return context.SaveChanges(); } }  

People Scope has No Items

After upgrading to SharePoint 2010 I have completed the Active Directory import, and I am showing 544 User Profiles, however the People search returns nothing. After importing the profiles, I  completed a full crawl, and the People scope has no items. The People scope is setup as default with Include contentclass = urn:content-class:SPSPeople behaviour. I checked the content source for the indexer, and I have the sps3s://url source listed. Any ideas? Thanks Richard

SharePoint 2010 Search Service Application: "All Content" scope contains 0 items?

I've encountered a nasty bug in our setup. Our Search Service Application manages to crawl all content just fine. However, the scopes don't work. We've got a total of 570 items currently in our crawl database. 350 of these are of class 'People', and appear in the 'People' scope. The remaining 220 items should appear in 'All Content' as part of the intra (sites, documents etc), however the 'All Content' scope reports 0 items. I've tried the following: -Creating custom scopes (still 0 items) -Recreating the Search Service Application twice -Tried different accounts as the content access account. -Ensuring that the content access accounts do have 'full read policy' -Checked the crawl log for successful content (such as sites and documents). However, despite my efforts I still get 0 items for 'All Content'.  Has anyone else encountered this problem, or do you have any recommendation for us? Currently I don't see any other option than to reinstall everything.

Is there a way to contrain or rest the scope that a activity has access to?

What I want to do is build a sequence activity that A) has its own scope and B) does not let child activities gain access to scope outside of its own.Is this possible?

Capturing state of the current scope.

is there a way to gain access to the state data for the current scope?

Class Scope with AJAX

I am trying to incorporate AJAX in my web project for the first time and it isn't working.  I don't know how to instantiate a class once and use AJAX to update the dataset numerous times before updating the database changes using a postback.   My project is to learn AJAX with a class object.  Clicking the button is supposed to increment a count by one using a class to store the count.  Here is my class:  Public Class Count Private i As Int16 Public Property Number() As Int16 Get i = i + 1 Number = i End Get Set(ByVal value As Int16) i = value End Set End Property Public Sub New() i = 1 End Sub End Class Here is my HTML code: <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <h3>Full PostBack Response:</h3> <br /> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> <br /> <br /> <asp:Button ID="Button1" runat="server" Text="Button" /> <hr /> <h3>Asynchronous Response:</h3> <asp:UpdatePanel ID="UpdatePanel1" runat=&quo

Scope Items not available at site collection

Hi,The default scopes as seen in central admin after crawl and scope update is  People   Ready 331    All Sites   Ready 1792 But if I got to my site collection > site scopes for the same default scopes, I get this All Sites   Ready  not available    People   Ready  not available If I edit properties for all sites scope in the site collection.. I see thisRule                                                              Behavior    Item Count (approximate) All Content                                                     Include    (all items) contentclass = urn:content-class:SPSPeople      Exclude    error                                                                      Total: error Ironically, If I see the same info for all sites in SSP admin.. the count is properI checked the index service to be running fine..I created a new SSP and associated this webapp to it.. no changeCan you please help ?[Update]In fact every Site Collection in the current Web Application has the same problemWhereas, All other site collections in every other Web Application in the farm has no issues.. Did I configure this web app differently ? [Update 2]I backed up the site collection and restored it in another web application .. the Item count started showing up. This indicates that there is something related to the way the web app was created that the count is not showing up in some web apps. Can a

Is there any possibility to define a search scope for a Survey

Hi All, I have a survey list in SharePoint. I need to define a search scope such that the search results are pulled only from this Survey list. I have created many scopes for lists and was always working fine without any issues. But now, i created a scope for the Survey list, with the rule to include items from the folder https://server/lists/Survey%20list.spx. Though there are around of 1000's of items in the list, after the crawl the number of items returned is zero. So, is there any way for defining a scope for a Survey? Thanks in Advance... Regards, Sivai... :)
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend