Vladi Gubler
Vladi Gubler
August 25, 2012

Hi,

We recently needed to add suppot for Managed Metadata column in out List Search product. Managed metadata column is of type TaxonomyFieldType, which in turns derives from the Lookup column type. List Search in its Advanced mode provides an interactive search query builder. You can enter up to 5 conditions, selecting a column for the condition will filter the list of possible operators and also present a suitable value selector, e.g. a date picker for a date or a combo box for lookups/choice fields.

Originally developed for 2007, List Search had no specific support for managed metadata. In fact, it treated it as a lookup field (because of the inheritance), which basically broke it completely.

When we got the request to support managed metadata field type, we started checking the possibilities. First we investigated the option of treating it as a lookup field. But apparently that would have required us to retrieve the IDs using SharePoint Server 2010-specific object model, introducing a lot of complexity (as we still need to support 2007 as well).

But the solution was actually extremely simple. Just use the field as you would any lookup, basing your query on the display value, not the ID. SharePoint will support any types of queries you can on a text field, such as equals, contains or begins with. So you can even enter just a couple of characters and receive search results!

Something like this works great:

<Where>
<Contains>
<FieldRef Name="ManagedMetadata"/>
<Value Type="TaxonomyFieldType">My Value</Value>
</Contains>
</Where>

So thanks to Microsoft for making it so easy for us!

Loading...

Add your comment

Comments are not meant for support. If you experiencing an issue, please open a support request.
Build powerful business applications in SharePoint using only your browser.
100% No-Code Solution
It’s never been easier to create, innovate, and share. All you need is your web browser!
Cost-Effective
Address business process pain points immediately. Save time and money.
Fantastic Support Team
In addition to our responsive support team, a wide variety of resources, documentations, tutorials, blogs and webinars is available to you
ULTIMATEforms is a complete platform that enables everyone to easily create and maintain Microsoft SharePoint-based business solutions without a single line of code
Powerful Forms
State-of-the-art responsive forms, complete with tabs, permissions, dynamic rules, repeating sections, electronic signatures and advanced validation, powered by our AI-assisted form generator
Powerful Automation
Replace complex workflows with simple, but powerful actions to create and update data inside SharePoint and in a variety of integrated applications and databases
Powerful Reporting
Transform data into actionable insights with detailed exportable reports, sophisticated dashboards, color-coded calendars and dynamic charts
100’s of Templates
Build and replicate business solutions with ease, selecting from our vast free library and creating your own custom templates, all installed with a single click
Dive deeper
Watch a short introductory video showcasing the different unique capabilities of UltimateForms.
Ready to get started?
Hands-on training is the best way to get proficient. That's why we've created three unique training offerings which will help you master ULTIMATEFORMS. Our interactive sessions are delivered via web meetings and conducted within personal virtual workspaces.
100% No-Code Solution
It’s never been easier to create, innovate, and share. All you need is your web browser!
Cost-Effective
Address business process pain points immediately. Save time and money.
Fantastic Support Team
In addition to our responsive support team, a wide variety of resources, documentations, tutorials, blogs and webinars is available to you
Microsoft partner logo
© 2005-2024 Infowise Solutions Ltd. All rights reserved.
Privacy | Cookie Policy | Accessibility | Cloud SLA