Hot answers tagged

8

Terms are the basic unit or smallest item in Managed Metadata or Taxonomy. TermSet is just a collection of Terms.Like say if you want to create a taxonomy for countries and their cities. Country will become the TermSet (eg:England) and cities will be Terms inside respective termsets ie London will be term inside England. Tags are special terms , they are ...


6

It is true that InfoPath 2010 does not support Managed MetaData controls, such as the Managed MetaData Picker. A workaround is proposed here: http://social.technet.microsoft.com/Forums/en-US/sharepoint2010setup/thread/632190d9-663b-4ea6-82e8-5c1e7f2f57c5/ Scroll down and look at Jinchun Chen's answer. I haven't tested it myself but it sounds like a good ...


6

Well, I am not absolutely sure, but I think the answer is: there is no way to skip metadata property. You may of course create a kind of proxy by implementing a custom web service which itself consumes listdata.svc and truncates the __metadata property? But it doesn't sound good to me. You can of course skip all other unnecessary properties by defining the ...


6

Try the following script: $web = Get-SPWeb http://YourServer/ListLocation $list = $web.Lists["TheList"] foreach ($item in $list.Items) { if( $list.Fields.ContainsField("ddlTest") -eq $true) { $item["Number"] = Get-Random -Min 0 -Max 100; $item.Update(); } }


4

It is still not supported to upload multiple files with managed metadata or simple metadata.


4

Grouping by a Managed Metadata Column with "Allow multiple values" set to true is NOT possible (it just will not work properly anyway). If "Allow multiple values" is set to false, it works just fine. I just double-checked it:


4

Search should do this for recognised file types out of the box. Note that does not include PDF - you will have to install the PDF iFilter to enable SharePoint to search the content of PDFs.


4

The big difference between Keywords and Terms are that Terms are controlled by you (normally) and Keywords are controlled by the users. Sometimes Keywords are referred to as Folksonomy whereas Terms are referred to as Taxonomy. To use Terms to tag a document, create a custom Site Column and map that to a TermSet (which is a collection/hierarchy of Terms), ...


3

Office 2010 document store their SharePoint metadata inside the file (which is in fact a zipped XML document). Document Information Panel and Document Properties in SharePoint Server 2010 (ECM) Document Properties and Content Types in SharePoint Server 2010 (ECM) If you move the document from one site to another, if the same columns exist in the new site ...


3

Jup, there is a way - with calling Method GetListAndView


3

Your question implies that you already know the specific item. That makes it easier to isolate the data you want. Each of the lines shown will return a text response as shown below assuming that these are not "special" fields like choice, lookup, etc. This URL will return christophe http:/.../_vti_bin/listdata.svc/Contacts(2988)/Contact/$value This URL ...


3

I think an eventreceiver should handle this pretty well. Here's some code that I haven't tested but looks pretty sound: http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/18dcb996-5352-4856-b526-b69ccc71180e/ If you wanted more flexible solution, you could implement the event receiver to read from a property bag or some ...


3

Values for SPFieldCalculated field are stored in the following format: FieldType;#FieldValue For calculated column with DateTime type field has the following format: "datetime;#DateValue" When field value is rendered (GetFieldValueAsHtml and GetFieldValueAsText) its value is extracted, but it is displayed as raw value when used in search results (...


3

Create SPQuery object and set its Folder property and then call GetItems on List and finally loop through the item collection. $spQuery = New-Object Microsoft.SharePoint.SPQuery $spQuery.Folder = $folder; $items = $list.GetItems($spQuery);


3

here is powershell script to list all properties and then how to change them. # Load SharePoint library [system.reflection.assembly]::LoadWithPartialName("Microsoft.Sharepoint") # Connect to the site collection http://SP2010 and store the object in the $site variable $site = New-Object Microsoft.SharePoint.SPSite("http://SP2010") # Connect to the root ...


3

You can try : Library settings -> Imformation management policies settings -> select document from content Types -> Check the checkbox to enable labels and type {version} in Label Format. http://smackwagondesign.com/how-to-add-the-sharepoint-version-number-to-a-word-document/


3

Apply metadata to documents when drag and drop a file. There is a bit of hardcoding, but here is what I did and it seems to be working. I am still testing this. If you have a way to get the current listname at runtime that would be brilliant! I have this in a CEWP on the library allitems.aspx page itself. I will move this to masterpage after more testing. ...


3

Some pieces of answers: You canno't use that code to copy to another farm: this uses server-side API, and server-side API must be used on a server of the farm you're targetting. An option to push the file to farm B would be to use from server-side code on farm A client-side API to access farm B. Actually, that code, with privilèges elevation, can only ...


3

With KQL it is only possible to query by day ranges. If you want to use something like DateTime.Now you will have to use FQL instead, see link


3

Haven't done this, but the way I would do it is to make a query to search (f.e. using REST) and ask to return tags as refiners (create a refinable managed property, if it's not there yet). Refiners have a RefinementCount property, which gives an approximate number of hits. Creating a link to search for each refinement result (tag) shouldn't be difficult ...


2

The shared fields are set by an itemeventreceiver, so won't be filled till the document is actually added and saved to the document set.


2

SPFile file = oListItem.File; StreamReader fsReader = new StreamReader(file.OpenBinaryStream()); byte[] contents = null; using (Stream fStream = fsReader.BaseStream) { contents = new byte[fStream.Length]; fStream.Read(contents, 0, (int)fStream.Length); fStream.Close(); ...


2

My advice would be for you to answer "No" to this and go on with your life. However, if the customer is requiring that this information be included in the alert then prepare yourself to enter the world of pain known as SharePoint Custom Alerts. This article should get you started on understanding what is involved in custom alerts. The article is for ...


2

You can use ScriptBlock attribute to add custom javascript using a CustomAaction. <CustomAction Location="ScriptLink" ScriptBlock="alert('hello');" Sequence="100"> Notice ~site token inside ScriptBlock. It will be replaced with the server relative url of the current site (SPWeb). Another available token is ~sitecollection, which gives ...


2

In SP2007 the best you can do is setting the queryOptions of the GetListItems to: <QueryOptions> <IncludeMandatoryColumns>FALSE</IncludeMandatoryColumns> </QueryOptions> But it'll remove the fields you listed, but only other required fields. In SP2010 you can set it to <QueryOptions> <IncludeMandatoryColumns>...


2

If you want to use a tool that exposes various properties of the SP object model (basically allows you explore all of the sites' fields, lists, content types, and other nitty gritty) and you don't want to have to return to sites like this to discover the next magical method, you really ought to try installing SharePoint Manager 2010 http://spm.codeplex.com/ ...


2

As it seems this is a limitation of the managed metadata columns in SharePoint 2010. Let's hope a future SharePoint version will improve this behaviour.


2

There are two ways to do this assuming your question is specific to page properties and nothing else. Firstly - You can add a single line text column named "Customer" to the document library where your page resides. Second - Managed Metadata Service (recommended way) - Using managed metadata SharePoint will give multitude of options with metadata and ...


2

The legacy SOAP Web Services include methods to work with Web Part pages and Web Parts. See for example: http://msdn.microsoft.com/en-us/library/ms774788(v=office.12).aspx They work in SharePoint 2007, 2010, and also 2013 (but deprecated).


2

I wouldn't use metadata to do a workaround on permission when you already have item level permission built in. By default your documents inherit site permission and those with sufficient permission can read, update and delete documents. But if you want specific permission on a document, edit sharing the following way. Select Shared With Click Advanced ...



Only top voted, non community-wiki answers of a minimum length are eligible