SharePoint 2010 - Adding filter to refinement panel - search

I know there are threads out there about making changes to the refinement panel and they have so far been very helpful but now I have a question that I need a bit more assistance with.
I've created a new filter for the refinement panel. That worked very fine.
I can see the filter, when I perform a search.
But when I click on the new filter, all search results disappear and it just says: "We did not find any results for ".
I can see that the url gets my created filter attached:
results.aspx?...&r=filterfield%3D%22True%22
I have created a managed metadata property and added the field to the search results (search core results webpart).
What I'm doing wrong? Why it doesn't work?
Any hints?
Thanks for any help.

I found the reason. I forgot to start a full crawl after creating the managed metadata field.

Related

One custom display form for all the lists

Good day to you. I am newbie in SharePoint 2013 so please bear with me. I have created around 15 lists in my website each containing same columns but different data (they differ semantically).
I am aware that we can change the default view, edit and display form for each list by creating new form in SharePoint Designer 2013. This seems like a very bad approach as far as the maintenance is concerned. I know my lists are exactly the same so why do I have to create same 15 display forms for each of the lists?
Is there a way to create one custom Display form (may be in a central location, i don't know i am just thinking :P ) for all the lists? Is there a way to tell a list to use a specific display form? Any help will be highly appreciated. Thanks.
If i understand your question correctly, you have 15 lists with same set of columns. You want to change the display/look of the form. All 15 lists should have same look and feel right!! If yes, then why don't you try with some html, javascript solution. Since you are in sharepoint 2013, javascript support for solutions is very good like rest queries. You can use SPServices also.
If you want to to add data to the list whenever you click on the "New Item" link in the list then hijack this link such that it should navigate to your custom form. Pass your list name as query parameter. Whenever user is saving the form, get the list name from the query parameter and save the data to that list.
There could be another ways also to achieve the solution with html and javascript.
Useful links:
Microsoft, Microsoft, SPServices
Sam I think you can create a custom content type and create custom display form for your content type. Enable the content type in each of your lists so automatically this customized form would be available.
The advantage of this approach is that suppose if you need one more list after some time you can just add this content type and your form would be available into the new list as well.
The approach is explained in the link below.
http://blogs.msdn.com/b/varun_malhotra/archive/2009/06/06/define-custom-new-edit-display-forms-for-content-types.aspx
Check this one also
https://joshmccarty.com/2011/02/sharepoint-custom-list-with-custom-content-types-and-custom-display-forms/
Just wanted to write the solution which I implemented as it might help others as well. (Thanks Hiren and Mihir for your valuable inputs)
I had 15 lists and I was showing the data to the user using content search web part with custom display template. All of the lists were using the same display template so I made a new page just to show the item details. In the display template I pointed the item URL (i hijacked the list name and the current item id) to my new page and displayed the item. Let me know if anyone is interested in the whole solution or further elaboration is required.

SharePoint 2010 - Search Box Web Part and Search Results Page Customization

Would someone be willing to offer me some assistance with customizing the search results page and the search box web part properties.
First problem: Search Box Properties
When I add an additional query term (eg. fileextension="xml") the search runs as expected but the refinement panel dissapears on the search results page. I don't want it to dissapear! I just want certain filters to be pre-applied.
Second Problem: Search Results Page
How do I customize the way results are displayed. For instance, I would like to add different refinement options to the refinement panel. I would also like to change what information is displayed under each individual result. Currently it seems to show a summary of the content, followed by the author and sometimes the date. I'd like to change this. How???
Any help greatly appreciated.
The results part you need to update the XSLT, You can do this via one of the web part properties. You will also need to make sure that the fields you want to put in to the results are included in your columns(Also a web part property)
Check this out
https://littletalk.wordpress.com/2011/08/26/customizing-search-core-result-xslt-in-sharepoint-2010/
Refinement options are based on Your crawled properties. Check this out
http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2010/03/15/get-to-know-the-refinement-web-part-in-sharepoint-2010-enterprise-search.aspx
Not sure as to why your refinement panel is disappearing, Check to see if the URL changes dramatically when you add your fileextension="xml" to the web part property, it may be that this addition is changing the URL so much the refinement panel is loaded or can't load but don't hold me to this
cheers to the
Truez

SharePoint 2013 KnockoutJS Lookup columns

I have a basic knockoutjs project loading data from a SharePoint 2013 list scenario. Getting data and displaying data is easy, the problem that I'm running into is on the edit mode displaying the proper control. Everything should not be a textbox. This means the people picker control to dropdownmenus to calendar controls.
MSFT has some pretty good documentation on using the client side people picker control here"http://msdn.microsoft.com/en-us/library/office/jj713593.aspx
The problem that I have is calling this control inside my viewmodel.
Setting the value of the control doesn't look difficult courtesy of this blog post: http://www.sharepointcolumn.com/sp2013-setting-people-picker-value-in-newform-aspx/
I attempted to looking into computed values, but that doesn't seem to work. Does anyone have a blog post that I skipped over? The closest related post that I can find: http://yetanothersharepointblog.wordpress.com/2012/12/11/working-with-sharepoint-lookup-columns-in-knockout-js/
Lastly since it seems that I'm the only one doing this, does anyone think that I should not be reinventing the wheel with my forms and should just link each item to the appropriate SharePoint list item in edit or display view? I suppose that would be easier.
From a SharePoint Professional to another, I would highly recommend you to do that.
Just redirect the user to the item edit/display item page an let SharePoint take the leash of how to handle UI form elements.
Because, assume that you implement your custom form, what if the user decides to add one more site column to the list? Will you update your code to support another field?
From my personal experience with the beast I've come to the conclusion that structural implementation over already existent functionality tends to go wrong.
Also, if you have some kind of listing of items custom made and you want to provide editing, try to do something opening a pretty SP.UI.ModalDialog, its elegant and you use the sharepoint to do the work for you.
But it's just an advise.

CRM 2011 Dialog with Dynamic Advanced Find

I have written a Dialog that uses an Advanced Find where the user types in part of a search term, i.e., similar to:
Dialog’s Query Step: Demystifying the Advanced Mode Capabilities.
In my case I created one to find all the Contacts in a post code area starting with "xyz..."
It works fine and I get the contacts in a picklist. How can I get this in a grid of results like you can for a regular advanced find? As I understand it the Query CRM data operation only gives you radio buttons or a list as output types. But is there some ingenious way of grabbing the results perhaps via a child workflow and writing them to a grid?
I'm sure you're looking for something a little more out of the box, but one approach would be to use an HTML web resource. You can mimic the dialog look and feel by using the CRM 2011 Style Guide included in the SDK (in the sdk\resources\styleguide folder).
I think this cant be done out of the box. You can of course create a webresource and then embed the advanced find view using fetchxml query.
Please take a look at the following url. Hope it helps.
http://crmentropy.blogspot.com/2009/11/embedding-advanced-find-views-in-entity.html

Refinement Panel - SharePoint 2010

I am facing problems with Refinement Panel in SharePoint 2010.
Please find below the issue:
Suppose we have Following refinement Custom Values as - Custom1, Custom2, Custom3, Custom4, Custom5. And then suppose Custom1-5 have things coming from Managed Properties.
I have uploaded adequate number of documents into the system. Now when I click on one of the values under Custom1 then filtering is done properly...and it shows Custom2, Custom3 if there are any document. I click on values under Custom2 and I could further drill down and get more specific results. All this is default functionality by SharePoint. I have not changed anything here.
But sometimes SharePoint is behaving strangely. If I click on one of the values under Custom3 (or Custom4, Custom5)...then all other filter options are gone. Only Custom3 and the value I clicked to select are shown. I know that the documents in this particular category have Managed Properties which exists under Custom1 and Custom2, yet those are not seen.
My client is after me saying that this is a bug, can anyone help me regarding the same. Am I doing something wrong is this is BUG/FEATURE by SharePoint. If it is a bug or feature please do share with me some document by Microsoft or others mentioning the same. I Googled a lot but could only find ways to use Managed Property etc with Refinement Panel.
Thanks.
Nitin
Its simple...just change the Threshold Value from 5 to 1. I did not know and wasted so much time running around. I hope this question may save some time for someone else.

Resources