Skip to main content

Posts

Showing posts from 2009

Document Set Content Type Issue

I have got an interesting issue with Document Set content type in SharePoint 2010. Document Set content type. Below are the actions I have taken: 1. Activated Document Sets feature on the Site Collection level 2. Created a Document Library 3. Set Allow management of content types to "Yes" 4. Added Document Set to that Document Library from existing content types 5. When I try to create new document with the content type Document Set I'm getting the following error: "One or more field types are not installed properly. Go to the list settings page to delete these fields". I have posted a question on SharePoint Developer Center to resolve that: Document Set content type issue UPD: There was a Beta version bug. I published a new post about Document Sets recently to start illustrating how it works. It's here: Document Sets - SharePoint 2010 - Part 1

Working with Managed Metadata in SharePoint 2010

I have started playing around with SharePoint 2010 Beta recently. One of the most attractive features of the new version is Managed Metadata. It allows people to maintain metadata across the site collections. Here's the quick sample of how you can use managed metadata in SharePoint 2010. Scenario We have a list or library to store Customer Sales Orders. This list is located on several site collections. Our goal is to manage metadata for those lists centrally. I have two site collections: wylde.slava.com and solutions.slava.com. Step 1. Create a custom list called Customer Sales Orders on both site collections. Step 2. Add a managed metadata column called Sales Order Status on solutions.slava.com: Select "Customize your term set" option to create new term set called Sales Order Status. Then it appears in the list of available term sets to use anywhere else. Select this custom term set. Step 3. I have done the same for wylde.slava.com, but when I created a

People Search Result URL Shows ":80" Suffix for HTTPS

Situation There is a MOSS 2007 farm with Shared Service provider configured to use mysites.domain.com as a My Sites host Web site. Two Alternate Access Mappings were created for My Sites Web site: Default Zone: http://mysites.domain.com Extranet Zone: https://mysites.domain.com In IIS this is a single Web site with aditional binding for https on port 443. If you search for people using Extranet Zone mapping for the SharePoint Web site in the search result the URL is https://mysites.domain.com: After installation of Infrastructure Update for Microsoft Office Servers search result Web site URL for people looks like https://mysites.domain.com:80 which is wrong, because there is no Web site on port 80 available using https: Some ideas are explained in the following article: People Search Results adds a :80 Suffix to results on an External Facing Site And cosmetic workaround is provided in the following article: How to remove something (the port) from the URL as returned in the search resu

Microsoft SharePoint Conference 2009

Stay tuned.. :)

Dynamics CRM integration with Google Maps

I have got a request from a customer recently about integrating Dynamics CRM 4.0 with Google Maps. There are two entry points I found interesting: Google Maps API and an article about how to display some place on the maps in Google Maps in <iframe> element on an account entity tab: Display a Google Map for an Account

SharePoint calendar and how to export it to iCalendar format

There is an article - Understanding the SharePoint calendar and how to export it to iCal format which explains how to export the stuff to iCalendar format from SharePoint. There is also a tool promoted there called iCal Exporter which exported the calendar for me in iCalendar format, but when I imported this iCal file to my Outlook it wasn't imported properly... :)

Forms Authentication in SharePoint

I think here's the best source of truth about setting up Forms Authentication (or Forms Based Authentication) in SharePoint: Forms Authentication in SharePoint Products and Technologies (Part 1): Introduction Forms Authentication in SharePoint Products and Technologies (Part 2): Membership and Role Provider Samples Forms Authentication in SharePoint Products and Technologies (Part 3): Forms Authentication vs. Windows Authentication UPD: Found a couple of articles in regard to the subject for SharePoint 2010 Configure Forms Based Authentication (FBA) with SharePoint 2010 and http://donalconlon.wordpress.com/2010/02/23/configuring-forms-base-authentication-for-sharepoint-2010-using-iis7/

Maintaining Control Focus on Postback in ASP .NET

I have recently got an issue with massive ASP .NET Web Form which is needed for a lot of details to be entered and takes several screens to display. When you edited something in the middle of the form and initiate a postback - the form was displayed from the top. In my case Web Form was a part of custom Web Control which is rendered within the SmartPart for SharePoint . I found the following article which helped me - How to implement the smart navigation features in ASP.NET 2.0 . I put the following instruction in the OnInit event handler for my Web Control: this.Page.MaintainScrollPositionOnPostBack = true; It helped! Now when I do something on postback my Web Control scrolls back to the place I edited last. Simple but powerful.

Search Results Customization - part 2

Search Results Look-and-feel Customization. Scenario We started using our mighty Expense Claim form and decided that we will use custom search scope to simplify administration of expense claims. Using search helps us output expense claims where necessary and will help us present expense claims information in the appropriate manner. For example like the following: We need to output employee name, department, claim amount and total amount of all claims we find. Solution Customize Search Core Results output. There is one note: in this scenario we will modify search results output for the page which is used only for selected search scope. If the idea is to customize common search results page the solution is to use conditional output in XSL. 1. We have to edit search core results XSL. Go to Site Actions -> Edit Page -> Search Core Results Web Part -> Modify Shared Web Part -> XSL Editor: 2. In the Text Entry copy all text and paste it into the XML editor:

Search Results Customization - part 1

Scenario We want to output search results in the format which is different from standard. Solution Customize search results. The easiest way to do that is to customize the output provided by Search Core Results Web part. First part of the solution is to define the output properties and second part is to customize look-and-feel. 1. Manage output properties. Go to your search results page -> Site Actions -> Edit Page -> Search Core Results Web Part -> Modify Shared Web Part: In the Results Query Options section select Selected Columns button: Copy text from the appeared Text Entry dialog into the proper XML editor. I will use Visual Studio 2008. In the Columns element create child Column elements for each property you want to output specifying the Name attribute appropriately. Name attribute should be equal to the name of a relevant managed property : Copy text from the XML editor and paste it back into the Text Entry dialog. Press OK button and then p

Hide View All Site Content Link

Scenario We need to hide View All Site Content link for all site users except for people who have Manage Web permissions. Many of my clients wants this to be done, because when users have access to the Web site they usually see this link. Solution Apply security trimming for this link. I have found the following article Hide the "View All Site Content" Quick Launch Link which is exactly what I needed. That's the flow: 1. Open SharePoint Designer -> open the Web site you want to edit -> browse to the master page you want edit -> open Design mode of the master page and select the control which displays View All Site Content link: It's an SPSecurityTrimmedControl. 2. Change your current mode to Code: 3. In the code view you should see the selected code for this control: 4. Change the PermissionsString attribute value to "ManageWeb": 5. Save, check in and approve your master page if necessary and enjoy. If you have any ques

Custom Managed Properties and Metadata Property Mappings

Scenario We would like to expose additional information on the search results page and to be able to search using specific properties. Solution Set up custom metadata property mappings for search. I will use the form library described here and custom search page described here . 1. Go to Shared Service Provider Settings -> Search Settings -> Metadata Property Mappings and click New Managed Property button: 2. Provide name for managed property, specify that you will provide mappings to crawled properties and tick the checkbox that you will use this mapping in scopes. I will use Business Purpose column from the my Expense Claims form library therefore I will call my managed property "VG Business Purpose". Click "Add Mapping" button: 3. In the Crawled Property Selection dialog select SharePoint category and browse for the desired metadata crawled property. Usually the crawled property name has the following format: "ows_ColumnInternalName&qu