Hot answers tagged metadata
5
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 ...
4
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 ...
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 ...
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
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
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
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 ...
1
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/
1
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 ...
1
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.
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
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
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. ...
1
Yes, you will need to make a small application to perform it but that would be fine.
1) Set up your metadata columns for the document library.
2) Build an application that iterates through the document library and looks up in the spreadsheet for the file name
3) Add the correct data into the managed metadata columns.
You need to make sure that the account ...
1
check this link out on msdn forum as its the same question:
For the ones (.docx / .xlsx) if you add metadata; you download the
document and upload it back again you will notice the field values
will be pre-populated and this is because of XML promotion and
demotion. To verify this:
Step 1: change the extension of your .docx
or .xlsx to .zip
...
1
Some extra info I discovered in case anyone else stumbles across this question later:
In Sharepoint Online (2010), you get to the Metadata editor by going to Site Settings > Site Administration > Term Store Management. It's also available via the admin site under 'Term Store' in the main menu.
In order to edit the terms, you need to give yourself Admin ...
1
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>
...
1
For the following examples I've created:
a site called MySubSite in my sitecollection http://sharepoint.
a document library called "My Doc Lib"
added a column "FirstName"
a folder called "My Folder"
uploaded a document called mydoc.txt to both the root and "My folder"
The following code finds the mydoc.txt inside "My folder" and changes FirstName.
...
1
try changing your query to this:
"<View Scope='RecusrsiveAll'>
<Query>
<Where>
<Eq>
<FieldRef Name='Title' />
<Value Type='Text'>test</Value>
</Eq>
</Where>
</Query>
</View>"
...
Only top voted, non community-wiki answers of a minimum length are eligible
