Skip to main content

Posts

Showing posts from November, 2009

InfoPath forms in a WebPart

To install the web part you must: 1. Add an entry to a web application’s web.config file to mark the web part as “safe”. 2. Add the web part to the site’s web part gallery. (The web application’s web.config file is located in a folder based on the web application’s port number typically off \Inetpub\wwwroot\wss\VirtualDirectories:) 3. Open the file web.config in an editor 4. Add the following line at the end of the existing element: <SafeControl Assembly=”Microsoft.Office.InfoPath.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” Namespace=”Microsoft.Office.InfoPath.Server.Controls” TypeName=”XmlFormView” Safe=”True”/&gt 5. Save the web .config file. The XmlFormView web part can now be added to the site’s gallery: 6. Navigate to the SharePoint site, e.g. http://moss2007 and select the Site Actions + Site Settings + Modify All Site Settings menu command. 7. Select the Web Parts link under the “Galleries” section. 8. Click the New button on the “Web P

Sharepoint site showing system account instead of my username on the top right corner.

When you login with your username & password into sharepoint (2007) site, it displays as a "System Account" instead of your username or full name on the top right corner of the website. What ever changes you make inside the site, for example upload a file, post a comment, sharepoint marks it as a System account instead of your name. To fix this, you must run the following commands: stsadm -o updatefarmcredentials -identitytype NetworkService followed by: iisreset Because your account was used to create the SharePoint databases, your account is marked as a System Account. You need to run the STSADM command "updatefarmcredentials" and set it to an account like the NetworkService account to prevent this from occurring.

How to restrict search scopes to current site

Go to Site Actions-->Site Settings--> Search Scope. Now click on Search Dropdown/Advanced Search link. Then unchecked the Option such as All Sites, People. Click on OK button. or Click on your Scope. Click on Add Rule link. Select option Web Address (http://server/site) Now enter the URL of your site. Then click on OK button.