.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

Custom Views using Metadata

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :C#


I'm a very new Sharepoint Admin and I'm only just starting out on the long road to understanding this massive product. The question I've been asked by my boss is this. He understands and very much likes how you can use metadata and view filters to narrow down a long doclib to just the documents you want. He wants to know if theres a way to do this across multiple doclibs instead of just searching. For example if you had several seperate doclibs containing files pertaining to particular clients (one doclib per client), and you have a metadata tag such as "Quotes" can you get a view containing all documents with the "Quotes" tag from all doclibs? I understand this cannot be done out-of-the-box but would need some kind of script or other customisation, can anyone advise on what would be required or where I could find something to do this?




View Complete Post

More Related Resource Links

Custom views on .aspx webpage


Hi again, i have a client that needs me to create a custom view on thier webpage similar to Microsoft Word.

It goes about that, when I click on an image it redirects me to another page and must create a custom view for a certain paragraph on that page. I am not sure how to do this and wonder if anyone knows how.

I am using C# programming language if that helps at all. I Heard that using javascript would work but i dont know javascript yet so is there any alternative?

Cutting Edge: Flexible Custom Data Views


ASP. NET 1. x introduced some powerful and useful data-bound controls. However, none were designed specifically to manage the view of a single record. When you build master/detail views, you need to display the contents of a single record.

Dino Esposito

MSDN Magazine December 2005

stsadm export / import custom view / personal view views

Hi, i have to export and import a website with a sharepoint list including all personal views. The personal views are used by the endusers in excel data connections binded to the list.  Loss of personal views during import is not mentioned in the technet discription of export / import command ( http://technet.microsoft.com/en-us/library/cc766807(office.12).aspx  ) I am actually testing the export / import between two site collections, but always losing the personal views (MOSS 2007 with CU April 2010). This discussion had the same topic http://social.technet.microsoft.com/Forums/en-US/sharepointadmin/thread/4e299838-72c2-4f56-8dc3-05ba2a2999d9  but with no definite answer. Please tell me if this is by design or what could cause this behavior. Thanks in advance. Boris Boris Schlotthauer

Custom User Profile Views or Reports

Hi, I'm wondering if it's possible to easily create reports or views for user profiles. For example, I want a list of all user profiles where the picture field is blank, though on other occasions I may want to check if Manager is blank, or Office = Sydney, etc. When in Shared Services Admin the 'View User Profiles' view doesn't give me any options to create a new view, add columns to the view or do anything basically. The standard view I look at just contains Account Name, Preferred Name and Email Address. There must be a way of getting this information out of Central Admin. Thanks, Paul.

Custom search by metadata only

Hey all, we have MOSS 2007 in production for our campus.  We've created several custom content types with custom columns (metadata) for various documents a student might have while they're on campus.  All of those files are stored in simple document repository.  What we need is to be able to search only by the metadata.  We'd like to be able to have a student's ID number as a column and be able to search based only where that column has a certain ID number set, not necessarily any document where that ID number shows up within the document itself.  Any guidance on how to set this going?

list of employees - custom list or managed metadata term set ?

Hi all, I am working on a intranet site for a small company with 25 employees. They want to create a site for tracking employee training. Most of the items on this site are going to be associated with an employee entity. What is the best way to manage the employee entity ? should I create a custom list called employee or should I create a term set called employee containing the names of all 25 employees ? In a related question is it possible to add a "people picker" field to a custom list ? ( e.g. Training schedule list ) I note that for 'assign to' columns SharePoint provides a dialog which enables you to browse and select users from active directory. Is there a way to add similar lookup functionality to a custom list in SharePoint ? thanks and regards, Counie  

Display Managed Metadata with Custom Search

Hello everyone, I made a custom Search page in VS 2010 and exported it to Sharepoint Foundation with Search Server. I want to use it to search for custom folders i have created which have a metadata field, a descriptive text. I have created a managed property and mapped it to the metadata of the folder content type. Also, the metadata shows up in the library view. Now, when i want the Metadata to show up in the results page of my search, i get "Field of property with name mappedfieldname wasnt found in the selected data source" error. when i pick a field like title instead, it works. but with a vast number of other fields i get the same error, like filename or filetype. i tried this on three servers, one of them with sharepoint server on it, everytime getting the same error. i did crawls everytime, i created the managed property, mapped it, i dont know what the problem is. help would be greatly appreciated.   Edit: i use datagrid to display the results,         i can also use the managed property in the search query; like filename:"1.txt", but i cant display the very same property in the result grid.

Issue using Managed Metadata with custom fields in the User Profiles application


Hi there,

I've created several custom properties in my User Profile Application.

I've also created several Term Sets in the Managed Metadata service application Term Store for use with these custom properties. Some of the Term Sets contain terms and have a closed submission policy whilst others have an open submission policy.

If the user hasn't already populated any of these custom fields in their profile, when they click on the Edit My Profile link from their My Site Profile page everything seems okay (for the first time).

The user is then able to successfully select values for these custom fields - the metadata is available. They can click on the "tag" icon to select values, or start typing and the suggestions appear. They are also able to enter new values into custom property fields where the term set is open to submission.

If they then Save and Close then go back into Edit My Profile, often not all of the existing data is populated in the metadata custom fields. On different occasions different fields may be blank. Sometimes this is accompanied by the error "Message from webpage / The server method 'ValidateTerms' failed", but not always.

Has anyone else tried this or have any suggestions are to what the issue might be?

Thanks in advance.

How to add custom properties to terms in the SharePoint 2010 managed metadata term store?


There is a "Term.CustomProperties" collection to get the collection of custom property objects for the current Term object from the read-only dictionary.
But where and how to define and set custom properies for terms? This dictionary seems to be read-only by default.

Any help / documentation would be appreciated. / Frank

How can I reuse Model Metadata for custom View Models?



I'm working on an ASP.NET MVC 2 project with some business entities that have metadata dataannotations attributes applied to them (Validation attributes, Display attributes, etc.).

Something like:

//User entity
public class User

[Required(ErrorMessage = "Vorname fehlt")]
[StringLength(MaxNameLength, ErrorMessage = "Vorname ist zu lang")]
public string FirstName { get; set; }

Create custom workflow using Managed Metadata and Sharepoint Designer


Hello all,


We have a very specific question from one of our customers concerning managed metadata and workflows that I can’t seem to figure out. Maybe you could give me a hand. This is the situation:


They want a taxonomy store with managed metadata. The departments of the customer are stored here (in a branched way). When a user adds an document to a document library he or she has to fill in the metadata field for the department so it will be connected to this document. Depending on the department they want to assign an approval task to a different manager.


How to Create views with Standard Custom List Fields


Hi Guys !

I have a requirement to create views with the following fields along with the fields created by us.

How to create this view ? Do we need to use SPD or VS or can we do it in the SharePoint using browser directly?

   Content Type ID   

   Has Copy Destinations

   Copy Source


   UI Version

   Select (web part connection)

   Instance ID


   Effective Permissions Mask

   Unique Id

   Client Id

   Edit Menu Table Start

   Edit Menu Table End

   Property Bag

   Level etc...



Thanks & Regards




Custom fields rendering on list views


I have a custom field on my sharepoint items which contains a multicolumnvalue. The field definition includes a RenderPattern which works in sp2007 to render the values as a link (it parses the name and url out of the MCV and then shows them as a link). This isn't working in sp2010 though - the list view just shows the entire contents of the MCV as one long string.

I've had a look at the FLDTYPES.xml and the format still looks unchanged, so I would expect my custom field definition to still work. Is that correct or has something changed? I did read something that sounds like it may apply to me here http://stsadm.blogspot.com/2008/12/custom-field-types-and-wss-40s-xslt.html, but I'm not sure what to do with this information and whether I'm on the right track at all.

Could someone help and explain this to me? Sorry for being dense!

Custom instance store and instance metadata changes



we are implementing out own instance store. Besides the property InstanceData, the class SaveWorkflowCommand also contains a property called InstanceMetadataChanges. What is instance metadata and in which situations do changes to the instance metadata occur? Do we have to take care about changes in the instance metadata in our custom instance store? Right now we are storing the initial metadata changes when an instance is created, but ignore any further changes since we would probably somehow have to merge the old changes with the new changes. As far as I can see, the "PurchaseProcess" example does not not save any instance metadata. The documentation of SaveWorkflowCommand isn't relly helpful in this case either. Can anyone tell me what instance metadata is and if we have to take care of changes to instance metadata in our custom InstanceStore?



Custom Controls in C# .NET

Embedding user controls in a Windows form is just like adding a simple button or text box that are already provided with .NET. These basic controls were written essentially like you code your own controls. Typically the controls you design are to be used in multiple forms or to modularize your code. These reasons help reduce the amount of code you have to type as well as make it easier for you to change your implementation. There should almost never be any reason to duplicate code because it leaves a lot of room for bugs. So, implementing functionality specific to your control in the control's source code is a good idea. This reduces code duplication as well as modularize your code, which is a good programming guideline.

Writing custom MembershipProvider

ASP.NET Membership mechanism allows to use the build-in server tables to store and retrieve user data. By default, this mechanism can only be used with SQL Server database to which Microsoft provides suitable MembershipProvider class.
Inheriting from this abstract class, developer can use his own table(-es) from any database and use any database engine other than SQL Server, like Oracle, DB2 etc.

Custom Editing Behavior for DataGridView TextBox Columns

For various reasons I'm using a DataGridView instead of a ListView, and while configuring the DataGridView to look like a ListView wasn't much of a problem, there's one thing that got on my nerves, which is the behavior of textbox cells in edit mode: It is much too easy to leave the edit mode accidentally, simply by pressing the cursor keys at the wrong time. For example when the text caret is positioned behind the last character of the textbox cell content, and you press the right arrow key
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