Generic search framework search result sorting accrding to header name

HI!
I need to implement new option to generic search result. There I should implement new sorting, user need to sort GS result according to header.
How can I add sorting option to to my GS results. Do I have to used existing option to add sorting option?
Thanks in advance.

Unless you explicitly specify type=nosort, the result list is by default sortable by a column. When you introduce the new option in the generic-seacrchbackend-config.xml, if you do not specify anything explicitly, then, the result can be automatically sorted by that column by clicking the column header.
Also, you can influence the initial sorting of the displayed result by a column. You can do so by specifying defaultSortSequence="ASCENDING" or "DESCENDING" as you desire.

Similar Messages

  • How to add a new field to an existing Generic Search result list?

    Good day,
    I'm new to the concepts of the Generic Search Framework.  I'm attempting to add a new field to an existing result list, and have that new field restricted to a value of "C".  This new field will not be displayed, it is only used to ensure that Invoice Documents with a DocStatus of "C" are returned to the B2B Application.
    From the *modification\generic-searchbackend-config.xml file, the existing
    <h4><property-group name="billing_resultlist_B2B_R3">
      <property name="BILLINGDOC" columnTitle="sbt.sbs.genericsearch.billing.invoice.title" parameterType="rowkey" hyperlink="b2b/documentstatusdetailprepare.do" linkParamClass="com.sap.isa.ui.uiclass.genericsearch.GenericSearchUIDynamicContent" linkParamMethod="buildAttributesForBillingDocumentDetails" linkTargetFrameName="form_input" />
      <property name="BILL_DATE" type="date" columnTitle="status.sales.date" writeUnderProperty="BILLINGDOC" defaultSortSequence="DESCENDING" />
      <property name="NET_VALUE" type="number" columnTitle="status.billing.detail.netvalue" fieldOutputHandlerClass="com.sap.isa.ui.uiclass.genericsearch.GenericSearchUIDynamicContent" fieldOutputHandlerMethod="buildBillingNetValue" cssClassName="amount" />
      <property name="CURRENCY" type="hidden" />
      <property name="PAYER" columnTitle="gs.hd.gl.partner" linkParamClass="com.sap.isa.ui.uiclass.genericsearch.GenericSearchUIDynamicContent" linkParamMethod="buildShowPartnerLinkSales" />
      <property name="PAYERS_GUID" type="hidden" />
      <property name="SD_DOC_CAT" type="hidden" />
      <property name="OBJECTS_ORIGIN" type="hidden" />
    </property-group>
    </h4>
    I'm trying to better understand how the R/3 tables and columns are specified in the Generic Search Framework.  I know that the R/3 table and field is: VBRK.RFBSK, but in the configuration XML files, I never see this exact information specified.   How it is specified to be a part of the result set?
    After reading the section in the Development and Extension Guide, I also learned about the "allowedValue" definition, and I believe that I will use that to specify the "C" value for the Invoice Document Status field.
    I would greatly appreciate any help.
    Thanks,
    _kevin

    Hi Kevin,
    this means you are working in this section of the generic-searchbackend-config.xml
                 <property-group name="SearchCriteria_B2B_Billing"
                                 useSearchRequestMemory="true">
    Below this property
                    <property name="IRT_BDH_BILL_TYPE"                    
                              type="box"
                              entityType="BEART_BILL_TYPE"
                              tokenType="EXP"
                              requestParameterName="rc_documenttypes"
                              label="gs.att.lbl.doc.type"
                              UIJScriptOnChange="GSloadNewPageR3(this);">
                        <allowedValue value="ORDER"           description="b2b.status.shuffler.key1val2"/>                   
                        <allowedValue value="QUOTATION"       description="b2b.status.shuffler.key1val1" />
                        <allowedValue value="INQUIRY"         description="b2b.status.shuffler.key1val11" />
                        <allowedValue value="ORDERTMP"         description="b2b.status.shuffler.key1val3" />
                        <allowedValue value="CONTRACT"        description="b2b.status.shuffler.key1val4" />
                        <allowedValue value="INVOICE"         description="b2b.status.shuffler.key1val5"  default="true"/>
                        <allowedValue value="CREDITMEMO"      description="b2b.status.shuffler.key1val6" /> 
                        <allowedValue value="DOWNPAYMENT"     description="b2b.status.shuffler.key1val7" />
                        <allowedValue value="AUCTION"         description="b2b.status.shuffler.key1val9" />
                    </property>
    please try adding this new property
                    <property name="DOCUMENT_STATUS(1)"
                              entityType="CL_CRM_REPORT_SET_STATUS"
                              tokenType="RAN"
                              type="hidden"
                              requestParameterName="rc_status_head1" value="C" />
    This should do the trick. Unfortunately, I don't have a E-Commerce scenario with an ERP backend for testing purposes available to you have to test it yourself. Keep me updated with the test results !      
    Philipp Koock
    SAP CRM Web Channel Consultant
    http://www.koock.net

  • Search results sorting

    hello ,
    I would like to have a custom control that sort search results  ( A to Z or Z to A ), so , i created a dropdownlist with two entry : A-Z  et Z-A.
    When user click A-Z , i would like that search results display in the right alphabetic order from A to Z.
    How to accomplish my goal step by step ? 
    Thanks.

    Hi Piing,
    To sort the search results, you need to define the results to sort by which managed property.
    As each result has many managed properties, I recommend to use Title managed property to sort the results.
    If that is the case, then we need to write the sort dropdown like this:
    [{"name":"A-Z","sorts":[{"p":"Title","d":0}]},{"name":"Z-A","sorts":[{"p":"Title","d":1}]}].
    After that, we need to edit the search results page and then edit the Search Results web part, then expand Settings and check Show sort dropdown. After that paste the above JSON inside the box and save the changes back to SharePoint.
    You can refer to the link below for details about how to write the JSON inside the sort dropdown:
    http://habaneroconsulting.com/insights/why-are-my-sort-orders-not-working-in-my-sharepoint-2013-search-results-web-part#.VK9Nz2Afodk
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • ATG search result sorting logics

    I would like to get the list of all sorting options in atg search results and the priority and order of each logic applied in the search result. Any one please help me ?
    I am listing below the sort options known to me
    1. The default sort order --> sort by relevance
    2. The secondary sort order specified using docSort, docSortOrder , sortProp and docSortPred parameters
    3. Search result rule positioning @ ATG Merchandising ( BCC )
    4. Search property prioritization @ ATG Merchandising ( BCC )

    i think this helps you
    docSort
    ATG Search returns a list of result groups in its query response. Normally, the result groups are sorted in
    relevance order, but you may want to allow users to sort the final results by some secondary criteria, such
    as date. This secondary sort does not affect what results are in the result groups, just the order of the
    returned groups. Secondary sorting is performed before paging, and is controlled by the following
    attributes:
    <query docSort="mode" docSortOrder="order" docSortProp="prop"
    dcSortPropDefault="def" docSortPropVal="val" docSortPred="predicate"
    docSortCase="bool"
    The mode value specifies how the index items will be sorted, and can be one of the following:
    relevance —The default value, return items in relevance order, assuming the item set
    is a category

  • Spotlight Search Results - Sort by Date Modified

    Running 10.5.2 on a Mac Pro.
    Is there a way to sort Spotlight search results by date modified?
    Am I missing something really basic or is Apple kinda going insane?
    I also don't like that I can't search my files by filename without also allowing Spotlight to index the contents of my hard drive. I don't want my content indexed.
    Why does Apple use AES encryption for FileVault? It has an NSA backdoor...
    And while I'm at it, I can't network with my PB180 running System 7.5.5 anymore (OSX 10.2 let me).
    GRRR! I hate when progress gets senile.

    Rants will get you nowhere on these forums except banned.
    If you want to report this to Apple, send Feedback and send bug reports and enhancement requests via its Bug Reporter system. To do the latter, join the Apple Developer Connection (ADC)—it's free and available for all Mac users and gets you a look at some development software. Since you already have an Apple username/ID, use that. Once a member, go to Apple BugReporter and file your bug report/enhancement request. The nice thing with this procedure over submitting feedback is that you get a response and a follow-up number; thus, starting a dialog with engineering.

  • Ultrasearch search results (sort)

    Does anyone know how to change the search results, so the results are sorted by description or author not by score?
    Thanks.

    Currently when searching using Oracle Text the results are always ordered by score and it can not be changed.
    This feature is being considered for a later release.

  • SEARCH results sorted by LOCATION

    does lion have the ability to report search results by location? alternatively, is it possible to /exclude/ a location once the search has returned results?
    i am very much in need of a tool that will sort my results by location so i can do something as simply as collapse the folder that contains the majority of the results and simply look at (or move) the results that are /not/ in this location. at the same time i would very much like to do and/nor results so that i could /exclude/ a location.
    for instance, i have a lot of times that i need this but for instance if i am trying to see if i have music files /outside/ of a certain folder it would be very helpful to be able to sort these so that i was looking at the results that weren't located in the correct location. right now i am doing a scroll through thousands of results while trying to keep my eye on the file path at the bottom of the finder window.
    i have done this in the past and particularly where there are files in lots of locations this can be tedious to the point of being unmanageable.
    is this something accomplished in OmniDiskSweeper or WhatSize by any chance?
    thanks for any thoughts.

    How are you using this portlet? Are you
    (a) allowing users to enter criteria to do a search and
    wanting the results page to group the results or
    (b) are you using it for automatically displaying content
    via auto query portlets?
    Depending on your version of portal it maybe possible to get functionality similar to what you want with multiple custom search portlets on a page. Beware, in some versions of portal there are some issues when you put multiple search portlets on a page, as they dont work independently. Therefore its not guarenteed that the following suggestions will work, but its possibly worth a try.
    (a)
    - Create a results page and add 4 custom search portlets
    - Customize each portlet
    - Set the Portlet Title to be the grouping title
    i.e Categories
    - Set the portlet so it only searches for a single results
    type,
    i.e. chose category for Content typee
    - For the results page option, choose 'Custom Page' and
    select the same page (this ensures a search from this
    portlet goes back to the same page).
    - Now set your portlet you are using to run the search
    to display results on the results page you have just
    created
    - When you perform a search, the user is taken to your
    results page and each portlet should take the search
    criteria and display the results of each type
    - The next and previous buttons may not work independently
    between the portlets depending on your versions, if this
    is the case i would suggest turning the summary off in
    the portlets
    (b)
    - similar to a, but set all the 4 portlets to be auto
    query and enter the criteria. Ensure the submission
    form is not rendered below the results.
    Hope that helps

  • How to exclude Web App from search results

    Hi
    Search results link to a unstyled Web App instead to the actual page it resides in.
    Please do this:
    1. go to: http://kinship.businesscatalyst.com/
    2. search for "Michael" on the top global search
    3. on the search results page click on the name (link).
    4. you will see Michael's web app item not the actuall page it resides in (http://kinship.businesscatalyst.com/About/the-team)
    How to avoid getting web app results in search?
    Thanks
    Micha

    Hi Micha
    Just add “&OT=35 “ at the end of the action in your search form:
    Ex:
    <form name=”xxxx” method=”post” action=”/Default.aspx?SiteSearchID=3566&amp;ID=/results&OT=35”>
    <div class=”search-box”><input type=”text” class= ............../>
    <input type=”submit” class=”cat_button” value=”search” />
    </div>
    </form>
    Here are the rest of the content types IDs, should you come across similar situations in the future:
    Web Pages = 1
    Literature = 6
    Announcements = 7
    FAQs = 9
    Forums = 43
    Blogs = 55
    Web Apps = 35
    Catalogs = 26
    Bookings = 48
    You can exclude multiple areas from a search, simply list them with commas: &OT=35,1,6

  • When I click on a yahoo news story, about 30 seconds into reading it, the page changes to one that says the page I requested can't be found, and it has a list of search results.

    I just upgraded to firefox 4 this morning. My homepage is yahoo.com. Sometimes when I click a news story, about 30 seconds into reading it, the page changes to a search result page with the heading that the page I requested can't be found. If I click the back button, it goes back to the page I was on. It doesn't happen on every one, and I haven't seen a pattern to which sites it happens on. It also happened when I was trying to make a payment on ebay.

    To revert to Google as your preferred search engine, please do the following.<br><br>
    * In the location bar, type '''about:config''' and hit Enter.<br><br>
    * In the filter at the top, type: '''keyword.URL'''<br><br>
    * Double click it and remove whatever's in there (probably Yahoo) and replace it with http://www.google.com/search?q=<br>
    The URL to add in "keyword.URL" becomes a link in this post, so right click it and choose "Copy Link Location" to copy it to the Windows clipboard. Then hit CTRL+V to paste it. Saves you having to type the whole thing.
    '''To reset your home page, do the following'''.<br><br>
    * Go to the site you want to set as your homepage.<br><br>
    * Click the orange Firefox button and go to '''Options '''| '''Options '''| '''General'''.<br><br>
    * Make sure it says "''Show My Homepage''" in the first dropdown menu.<br><br>
    * Click the button called "'''Use Current Pages'''" to set the homepage to the one you have on the screen.<br>

  • Safari 6 "Images" search results don't show digital storage size info anymore - Fix?

    I've now noticed, finally using Safari 6 more often now .... that when doing a google subject search (and selecting the "images" results versus the "search" results at the top header bar of Safari), that Safari 6 now only shows a huge listing the images themselves. If you slide your cursor over any of the images, a small black highlight bar appears under the image and shows its pixel dimensions  (as in 000 x 000 pixel dimentional size), but Safari 6 shows no digital size info of the image in kb's (kilobites) or posibly MB's (megebites) .... like it used to in the past.
    On previous Safari google "image" search results you saw the images, along with their pixel dimentional size (000 x 000) and their storage size ( 00kb / 00MB) listed in small text under the image.
    Is there any way to set Safari to show not only the "images" dimensions (which it now does), but also to show the images over all storge size?
    I know if you use the additional "search tools" selection text, that a sub set of selector menus appears, listing "any size", "any color", Any type" Any time" All results" .... but none of these will set "images" storage sizes (kb, MB, etc.).  Even using a "larger size" only selection setting doesn't always guarantee that a larger size only seach results will be of larger pixel quality.
    I often use Safari and google to find "comp" art images, etc. for rough art placement on projects, and it's now almost impossible to search through Safari's google "images" results without knowing what "quality size" the image can be found at.
    Any thoughts on this fix?

    Actually, as I forgot to mention .... is this above issue a Safari 6 or Google search result issue? I'm starting to think that it may be Google's "images" results that don't show the images storage size anymore, and possibly not Safari's problem.
    Either way, is there any fix to this issue ... a plug-in, etc.?

  • Sort Search Results by Topics in Forums

    Hi,
    is it possible to sort the search results by topics? Because I often get a lot of hits from the same topic but in different rows.
    Normally I click to a topic and browse the whole topic to look for my answer. If it is not answered it would be nice if you could skip this topic (it would be ok to have all hits of this topic one after the other) and don't find it again on place 47.
    Regards, Juergen

    To make this more generic. Is there any way to add columns to the search results. I would like to be able to sort by size as well.

  • How to sort web app items based on few fields of it on search result page?

    I have a web app and its search. The search results are on multiple pages means it has pagination. My client's requirement is to have a feature which will sort results based on some web app items. for example we have a field price so when user select the price it needs to sort from high to low. Any one have idea how to do it?

    I have just been playing around with this for something else, all you need to do is duplicate your price field into the weighting field and it will automatically sort from High to low for you.
    Cheers
    Duncan

  • Is it so difficult for Sun to sort search result and duke stars ?

    In the years that I have been visiting these forums I have frequently (well every year at least) asked Sun to sort the search results by reverse date. In the last few months I have asked Sun to sort the new format of the results of "My Duke Stars". Is is so difficult to add a 'order by' clause to the SQL or am I missing something?

    DrClap wrote:
    It would be nice if they could do that, and I asked them too several months ago. It would also be nice if they told you how many points you got for an answer (not how many points were originally attached to the thread) and the date and time you got them (not the original date and time of the thread). But those changes might take more than just an ORDER BY clause. (Or they might be implemented by just choosing the right columns from joined tables, who knows?)They seem to have all the functionality already there, it's just spread out across two pages when it should be all on one.
    http://forum.java.sun.com/myrewards.jspa
    http://forum.java.sun.com/dukesummary.jspa
    And has anyone ever come up with a sane explanation of all these numbers?
    Balance:  474
    Rewarded:  474
    Awarded:   40
    Duke Stars earned by program:   534
    Total Duke Stars earned to date  534
    Duke Stars spent to date    -60
    Available Balance   474

  • Sorting people search results

    Hi
    We tried to sort the PeopleSearch Results by LastName and then by FirstName using the Query Designer.
    In the preview everything works fine, buth when we save the web part settings and do a seearch on the people results page, the results are not sorted as excpected.
    Query Sorting, (sorting as expected in preview)
    People results page using the settings above:
    Not properly sorted
    Does anybody have an idea?
    Thanks,
    Stephan

    Wow! I was able to reproduce your problem. There seems to be no way to get the sorting to work correctly in the search results. I have been able to sort the results correctly using either a) Content by Search part or b) an App issuing a query through
    the API.
    I think you are going to have to replace the OOB people search page with a custom solution based on either the Content by Search part or an app.
    I have an Employee Directory app available on my CodePlex project here.
    http://apps.codeplex.com/releases/view/91377
    Scot
    Author,
    Microsoft SharePoint 2013 App Development
    Author,
    Professional Business Connectivity Services
    Author,
    Inside SharePoint 2013
    Blog, www.shillier.com
    Twitter, @ScotHillier
    SharePoint Trainer, Critical Path Training

  • Is it possible to sort search results

    Is there a way to setup the order of the search results
    during the project build process? Currently in my manual when a
    user searches for an item, the results come up in alpha order. If
    possible I would prefer to display them in order of relevance. Any
    ideas?

    mitchgrrt wrote:
    I see. It sort of, partly, does what I want. It seems like you can limit the search to one of the "places" that show up on the left side of Finder. So on my Mac I can choose to limit the search to Desktop, mitch, Applications, or Documents in my case (my username is mitch).
    That's an improvement, but can I limit the search to subdirectory mitch/dir1/dir2? That's what I would really like.
    of course. as I told you open mitch/dir1/dir2 in finder and start the search from there. the search will default to searching the whole mac but in the search toolbar you can switch to searching just this directory. and if you want you can save the result as a smart search and put in the the sideebar for quick access if you do this particular search often.
    Or can I sort the search results by where they are in subdirectories?
    no, you can't do that.
    Thanks.
    Message was edited by: V.K.

Maybe you are looking for

  • Can't get Outlook in Windows 8 to sync.

    When I open the iCloud control panel in Windows 8 the first thing it tells me is to set Outlook as default.  It already is default--I checked several times.  Then when I try to sync I am told there is an unknown error and to try again.  Trying again

  • How to delete flash of white

    Hi, I have imported a swf file which is only a banner of color with buttons, no animation into my dreamweaver html. When the html file loads that swf bar shows an instant flash of white and then loads the bar. I have been all over the net searching f

  • AOL always opens when I open my browser I don't use AOL!!

    When I open firefox AOL comes up as the Homepage.  I don't use AOL.  I have gone into the preferances and changed what I want for my homepage. I have even removed AOL from the list of possible browsers but as soon as I quit firefox when I open it aga

  • Latest version of itunes does not support Quicktime can not play movie from library

    Latest version of Itunes does not support Quicktime.  I can not play movies out of my itunes.  Please fix

  • I was updateing my ipad to use cloud and my ipad screen is frozen

    I updated my Ipad last night to use the cloud.  Tonight I wanted to sync to itumes so it updated everything.  Then when it started to update my Ipad it froze my ipad with the apple and a bar under it?  I can't turn it off now/  Any suggestions