Tag Info

Hot answers tagged

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 ...


5

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 couse skip all other unnecessary properties by defining the ...


5

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 ...


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

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

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

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);


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); ...


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

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

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

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

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 ...


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

Found this: Created a new column in the library with the name "_Author" (mind the _ sign) and the data type single line of text. This will show the Word Author property. Good enough for me. I also found this on the Technet forums but I don't see a custom property "Author0" in the Word properties, so could not recreate that solution.


2

Key filters are primarily used by columns of type managed metadata. They cannot be used for single line of text, multiple line of text, ect. they can sometimes be used on a choice column if the column only has 1 choice available. they can also be used on columns for which the values are managed by sharepoint such as Created, Created by, Modified, and ...


2

Many SharePoint objects have a Property collection. Lists do not directly, but you can use list.RootFolder.Properties and there are methods for Add, Delete, Get, and SetProperty. There's an example here: http://www.novolocus.com/2012/07/23/getting-and-setting-properties-in-sharepoint/


2

The best way I can see to do it is to add event receivers onto ItemAdding and ItemUpdating which checks to see if at least one of the three fields is populated, and if they are not, refuses to continue to add/update the item in question. You will probably want to implement some kind of warning in the form of a pop-up box or, if you want to be really fancy, ...


2

If there are things that will need to be permissioned, then use folders in conjunction with metadata. Views can be created to recurse through folders to show information to users. This will automatically security trim the results. Managing item level permissions in a flat lisst of documents is a nightmare and can cause performance issues. So don't think ...


2

You can update system properties (Created, Created By, Modified, Modified By) using code like that: using (SPSite site = new SPSite("Your site url")) { using (SPWeb web = site.OpenWeb()) { var list = web.Lists.TryGetList("Your list name"); var query = new SPQuery() ...


2

Simple answer: Yes it is forbidden. From my point of view you have following options: Do a proper database migration from 2007 to 2010. Metadata will remain untouched. Do the webclient migration and you can create a PS script that will modify the Created and Modified By fields for you and it will be supported. Look up a third party migration tool that ...


2

SharePoint 2013 Search now supports PDF iFilter natively. This means that you get out of the box functionality, without need to go online and configure your Farm with iFilters. It also read embedded metadata, such as Author http://sharepointthing.wordpress.com/2013/02/06/sharepoint-2013-search-natively-supports-pdf-ifilter/


1

I don't think you need to override the default upload page. After you upload a document it will take you to a page where you can select the metadata for the document you just uploaded. Using required columns or the content organizer (with content types) you can force them to fill in this data. I recently had to do something similar and I wrote an ...


1

This stumped me as I thought all Content Types from Item onwards had the Created and Modified fields. However, after a bit of research it seems that any list items which inherit from System->Item content types dont have the Created or Modified Field. The Created and Modified fields are available with the Document Content Type. So how about storing your ...


1

Add a date/time column to the content type and then create a workflow that populates the column with the Created value. Then run the workflow on all items in the library. You can set the workflow to start automatically when an item is changed, then open the data sheet view, and make changes to all items at once (for example by selecting all rows in a text ...


1

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 ...


1

Yes, that is the simplest way to do it. I have only found two ways to rename a term programmatically: 1) Set the Name property and CommitAll on the Term Store: var site = SPContext.Current.Site; var taxonomySession = new TaxonomySession(site); var termStore = taxonomySession.TermStores[0]; var termGroup = termStore.Groups[0]; var ...


1

This isn't complicated but it isn't a straight forward OOTB but it is secure. The method you would use is to make an event handler that creates and manages folders with specific permissions, the hierarchy of the folders is the structure of the content. Each folder has different permissions, requiring group/user permissions for access. This gives windows ...


1

I have discovered that the problem occurs when the Word file is based on a .dotx template. If the Word file is based on a .dotm template there is no problem. It seems that a multiple choise field can not be used on files based on a .dotx template, so the next thing to be solved, is to find out in which cases the template is a .dotx or .dotm. From my point ...


1

1 Open a Web browser and navigate to the SharePoint address provided by the intranet administrator. 2 Click the "Actions" toolbar button and select "Connect to Outlook." Click "Yes" to confirm that you want to connect to the SharePoint library. The software connects to your Outlook and opens Outlook automatically. 3 Look in the left navigation panel. ...



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