Skip to main content

Posts

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.

No Multiple Upload ? No Connect to Outlook ?!

If by Internet Explorer you can’t see some SharePoint Document Library & List links like “Connect to Outlook” in “Action” menu or “Upload Multiple Files” in “Upload” menus in document libraries … it’s because that some SharePoint related Add-ons are disabled ! ( IE Security ) There is an ActiveX Control with name : STSSYNC To Solve this issue in Internet Explorer 6 or 7 or 8 , go to Tools , Manage Add-ons , Enable or Disable Add-ons . Look for SharePoint Stssync handler and Enable it . Then restart your Internet Explorer . ( Close All & Open New Window )

Workflow history deleted in 60 days

By default, WSS3.0 automatically deletes workflow history after 60 days. The purge doesn't technically delete the history - but it deletes the association that ties the document to the workflow history. It also deletes any tasks that were created by the workflow. This is for performance considerations, courtesy of the Workflow Auto Cleanup timer job in the config section. Three options to consider: Disable the Workflow Auto Cleanup timer job completely. (Please note that this might have serious performance implications, and should be planned carefully) Include a specific xml tag in your workflow feature.xml file that controls the number of days retained for the workflow history (max days = 9999) Run a job nightly to force all the workflow history retention settings to a certain number of days (max days = 9999) To set the time schedule for when the scan will occur to delete workflow data for the Web application, http://test, use the following syntax: stsadm -o setproperty -pn job-wo...

10 SharePoint Deployment Standards

Everywhere you look there is SharePoint standards this… best practices that… governance out the wazoo. I’ve never seen anything like it in my entire life! Seriously, have any of you? Once upon a time all you needed was a handy dandy API reference and you could do anything you wanted. Then there was SharePoint… with much power comes much responsibility. 1) SharePoint Designer must not be required to update any portion of a SharePoint Site Before you SPD lovers start throwing Zunes at me, let me again state that SPD has it’s place within any organization as a very helpful tool for development. However, you should take what you do in SPD and convert it into a feature. This is crucially important for branding. SPD is a wonderful tool for developing your branding and you are probably tempted to just publish it from SPD. Don’t do it. Say it with me… “FEATURES”. I could go on and on about this (oh, and in fact I did in a previous blog post). I realize there are some organizations ...

SharePoint: Shortcut keys!

Did you know that SharePoint has shortcut keys? Most Windows applications have a standard set of well known shortcut keys. While most web applications do not, SharePoint has a large number of shortcut keys, and a few like the OK and Cancel shortcuts can save you a lot of scrolling up and down the page after each edit.. Here are a few samples: Alt-1 + Enter Goto Home page (same as clicking Home tab) Alt-6 + Enter Help Alt-l + Enter Welcome menu Alt-o OK or Create Alt-c Cancel Alt-s Search - move cursor to Search text box For a complete list see: http://office.microsoft.com/en-us/help/HA101733621033.aspx