Search Refiner & refinable strings - sharepoint

I've gotten the refinablestrings to appear in the Refinment webpart (as shown below) however the anems are "refinablestring00" etc. How do I change this to a custom name (I was hoping it'd be set to the alias)?
In the above screenshot the values I'd like to change are "RefinableString00" & "RefinableString02"
Thanks.
Answer:
I didn't set the "displayName" property in the "refinable" search webpart. This is a setting in the webpart.

Set displayName property in the refinable search webpart on page.
Edit: Now i see that you found it ;)

Related

SharePoint 2010 search scopes: Hide lists, show only elements

I have a SharePoint list. It is a custom list with items.
However when I search for a word from the title of an item, the item shows up aswell as the list itself. I want to hide the list and only want to show the items.
I tried it with search scopes. If I set a rule with the criteria "Author" and my username, it works fine. I can't seem to find the right attribute for the listitems. I tried contentclass = "STS_ListItem" but it won't work.
I tried all contentclasses from this link:
http://slalomdotcom.wordpress.com/2010/04/07/sharepoint-2010-search/
but none shows my results, only when I set up the Author criteria.
Anybody has an idea how I could solve this problem?
Thanks in advance.
Niels

XPages newbie - view columns in discussion database

I'm a traditional domino developer just beginning XPages. I'm working on modifying the standard 8.5.3 Domino discussion database. I've added some fields on the Main Topic and response forms, one called category. I've added a categorised column in the ($xpAllDocuments) view to the left of "Topic" for the category field. This works fine in Notes as you'd expect, but when the view is rendered in the All Documents xpage, the category twiste displays without any label. I'm not sure how to modify the column data for the xpage, as it seems to use a repeat? instead of a view?
Any help greatly appreciated, and apologies for the presumably basic enquiry!
You have to add the categories column to custom control allDocumentsView which renders the view for browser.
How to find out where to set the new categorized column? A good way is to look at the "All properties" of a certain element. For that, open the Source pane of custom control allDocumentsView, position cursor on <xe:dataView and look at "All Properties". If you hover over the properties' labels you get a helper window with a short explanation.
In your case, property categoryColumn is what you are looking for. Assuming you added a categorized column Categories to view ($xpAllDocuments) then you would have to put into property categoryColumn:
With that, your source code gets expanded by
<xe:this.categoryColumn>
<xe:viewCategoryColumn
columnName="Categories"
columnTitle="Categories">
</xe:viewCategoryColumn>
</xe:this.categoryColumn>
and you will see the added categorized column in your rendered XPage.
I don't know the discussion template in detail, but when the All Documents Xpage is using a repeat control, then you cannot expect an automatic category expand/collapse feature as in a Notes view.
If you want that, you need a View control on the Xpage.

Link a custom column to SharePoint List items

Status: I have a custom list, and a custom column.
Problem: SharePoint lists has a built-in column called "Title". When you create a new item in the list, the item "Title" column is by default linked to the item with edit menu. I am trying to use this linkage by linking a custom column to the item. I want to disregard the built-in "Title" column and have my own custom column (i.e: "Issue") linked to the item.
I've looked around and I found this solution:
To link the Item to a specific column/field, you need to open the list in SharePoint Designer and edit the view AllItems.aspx in Advanced Mode, then look for the "ViewFields" tags and add LinkToItem=”TRUE” at the end of the column name tag like:
FieldRef Name="My Column" LinkToItem="TRUE"
Sadly however, the suggested solution above didn't work for me even though it worked for some (including the author). I followed it to the letter, and tried it on a different columns and content types. But it did not work. It would never link.
Any help?
Thanks.
Are you using SP 2013?
If this is the case the you shlould use "linkToItem" (small l).
I hope this works.
Best regards
Leandro.

Creating a sharepoint 2007 search for a list (results only from that list)?

I have been researching this for some time, and have not been able to find a solution. I would just like to have a search bar that when an ID is entered, the search will return all the list items that have that ID.
I'm sure I am leaving out details (as I am a sharepoint novice), but any help would be greatly appreciated.
What you need is not search, but filter.
In the view of you library, follow these steps :
Put the page in edit mode
Add a web part "Text Filter Web Part"
Open its tool pane
Name the filter, "IDFilter" for example, and validate
Still in edit mode, select "Modify shared Web Part" --> "Connections" --> "Send filter values to name of your library"
Choose the field that holds your ID and click "Finish"
That's it. You can now type the ID in the field, and it will dynamically apply a filter on the ID field.
That said, you should post you future questions on http://SharePoint.stackexchange.com. this is a SharePoint dedicated stackexchange site.

Preset the jqGrid filter text box through code

We are using jqGrid for ASP.Net version 3.6.6.0. We are facing a problem in search/filter as described below:
We have created a jqGrid using ASP.Net (C#) having column likes Name ,Status etc. There is a hyperlink on Name column.
We are able to successfully populate the grid
User applies search on a column say “Name=’XYZ’” and grid is updated according to search results.
User clicks on Name link and is taken to details page of that Name.
Now when user clicks back from that details page ,search is lost.
We were able to persist the searched grid details using session however we are not able to set the searched text back in search text box.
i.e we are not able to set the value “XYZ” in search text box of Name Column.
Need your help in knowing which property or method is to be used to set the Filter text box through code.
If you use Advanced Searching the searching parameters are saved in the postData.filters property in the JSON encoded format. If you use the Single field searching another properties of the postData parameter of the jqGrid save the filter information: searchField, searchString, searchOper. So what you can to do is to same the filters in the cookie. To restore the searching filters you can examine the cookie and if needed extend the postData parameter with the corresponding properties (see here for details).
If you want that the searching filters will be not only displayed if one opens the Searching Dialog you can set additionally the search:true parameter of the jqGrid.
I recommend you additionally read the answer on the close question.

Resources