Displaying the count of search result?

Hi,
We have built new search pages for our client to search for candidates registering in their iRecruitment site. The client prefers to see the no of records of each search result. Typically some searches may fetch around 50000 records.
How to achieve this. Currently we have set the VO_MAX_FETCH_SIZE for one responsibility as 50000. I think this will have a performance impact and it cannot display the exact count if it is > 50000. Is there any other way just to show the count of search records?
thanks,
Hem

Henry,
As Ram insisted before that if no. of records in your VO is more than max fetch size set in profile option, then it won't return excat number of records.You can very well use this method in normal flow, if you expect that your VO query will not return more than max fetch size records.
Otherwise run a separate query to get total, as discussed.
--Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • How can I display the vendor associated with result of my running total sum

    I have a report that lists vendors with their most vecent order dates.  I need to set up a rotation so that the vendor with the latest order date is next to be selected.  I used the running total summary to pick the latest date.  How can I display the vendor associated with result of my running total summary?

    If your "latest" order date means the "oldest" order date, why don't you try this:
    Go to Report tab -> Record Sort Expert -> Choose your order date in ascending order
    This will make your oldest order your first record shown. 
    You can then create a running total count for each record.
    Lastly, in your section expert under conditional suppress X+2 formula, write this:
    {#CountRecords}>1
    The result will only show the oldest record in your report.
    I hope that helps,
    Zack H.

  • How to Display Record Count on Search page?

    Hi
    I am new to OAF and one of the requirement is to display record count on Search page . I followed the same steps in Emp Search page as an example and created my search page.
    I followed the following steps
    1) I created a transietn Attribute in VO by name RecordCount
    2) I had written a method in AMImpl
    public void getRecordCount() {
    OAViewObject vo = getXXG2SourceAcctSearchVO1();
    int fetchedRowCount = vo.getFetchedRowCount();
    String msg = fetchedRowCount + " are retrived by query ";
    System.out.println(msg);
    String xfetchedRowCount = Integer.toString(fetchedRowCount);
    System.out.println("xfetchedRowCount : " + xfetchedRowCount);
    OARow reportRow = (OARow)vo.createRow();
    System.out.println("in set attribute");
    reportRow.setAttribute("RecordCount",xfetchedRowCount); // I am using this way and trying to display record count into RecordCount view Attribute
    }//getRecordCount
    3) on the SearchPG, I created a new messageStyledtext by name RecordCount and assinged VO and viewAttribute accordingly
    I am not able to see record count when i run the page ?
    Am i missing any steps ?
    I see the messages in the log file but not in Record count box ?
    Any suggestions?
    Thanks
    Ravi

    Hi Anoop
    i made the code change according to you and because of the following condition, it is createing a" new row" in the search page
    Row row = vo.createRow();
    vo.insertRow(row);
    For every search it is creating a new blank row in search page .
    I did some more research and modified my code as
    public void getRecordCount() {
    OAViewObject vo = getXXG2SourceAcctSearchVO1();
    int fetchedRowCount = 0;
    fetchedRowCount = vo.getFetchedRowCount();
    String msg = fetchedRowCount + " are retrived by query ";
    System.out.println(msg);
    //vo.setMaxFetchSize(0);
    //vo.executeQuery();
    if (fetchedRowCount == 0 )
    Row row = vo.createRow();
    //row = (OARow)vo.first();
    row.setAttribute("RecordCount", "0");
    else
    String xfetchedRowCount = Integer.toString(fetchedRowCount);
    System.out.println("xfetchedRowCount : " + xfetchedRowCount);
    Row row = vo.createRow();
    //vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    // Set the primary key value for this single-row VO.
    row = (OARow)vo.first();
    row.setAttribute("RecordCount", xfetchedRowCount);
    and in AM , I am calling this method in PFR as follows
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am1 =
    (OAApplicationModule)pageContext.getApplicationModule(webBean);
    am1.invokeMethod("getRecordCount");
    now i see the record count on the search page . but after 2-3 searches, the record count value is not populating the correct value. its weird
    Any suggestions
    Thanks
    Ravi

  • How to display the count of a list item in Sharepoint Designer?

    How to display the count of a list item in Sharepoint Designer? please reply with the proper code line to add for this.

    Hello,
    What version of sharepoint you are using? Try below approach:
    http://sharepointlogics.com/2010/03/total-count-of-items-in-list-in.html
    Hope it could help
    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer
    Please feel free to unmark answer if does not resolves your problem.

  • How to limit the number of search results returned by oracle text

    Hello All,
    I am running an oracle text search which returned the following error to my java program.
    ORA-20000: Oracle Text error:
    DRG-51030: wildcard query expansion resulted in too many terms
    #### ORA-29902: Fehler bei der Ausführung von Routine ODCIIndexStart()
    ORA-20000: Oracle Text error:
    DRG-51030: wildcard query expansion resulted in too many terms
    java.sql.SQLException: ORA-29902: Fehler bei der Ausführung von Routine ODCIIndexStart()
    ORA-20000: Oracle Text error:
    DRG-51030: wildcard query expansion resulted in too many terms
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)
    When i looked up the net, one suggestion that was given is to narrow the wildcard query, which i cannot in my search page. Hence I am left with the only alternative of limiting the number of results returned by oracle text search query.
    Please let me know how to limit the number of search results returned by oracle text so that this error can be avoided.
    Thanks in advance
    krk

    Hi,
    If not set explicitly, the default value for WILDCARD_MAXTERMS is 5000. This is set as a wordlist preference. This means that if your wildcard query matches more than 5000 terms the message is returned. Exceeding that would give the user a lot to sift through.
    My suggestion: trap the error and return a meaningful message to the user indicating that the search needs to be refined. Although it is possible to increase the number of terms before hitting maxterms (increase wildcard_maxterms preference value for your wordlist), 5000 records is generally too much for a user to deal with anyway. The search is not a good one since it is not restricting rows adequately. If it happens frequently, get the query log and see the terms that are being searched that generate this message. It may be necessary to add one or more words to a stoplist if they are too generic.
    Example: The word mortgage might be a great search term for a local business directory. It might be a terrible search term for a national directory of mortgage lenders though (since 99% of them have the term in their name). In the case of the national directory, that term would be a candidate for inclusion in the stoplist.
    Also remember that full terms do not need a wildcard. Search for "car %" is not necessary and will give you the error you mentioned. A search for "car" will yield the results you need even if it is only part of a bigger sentence because everything is based on the token. You may already know all of this, but without an example query I figured I'd mention it to be sure.
    As for limiting the results - the best way to do that is to allow the user to limit the results through their query. This will ensure accurate and more meaningful results for them.
    -Ron

  • How to create a Display template for people search results

    Hi,
    I've just installed Sharepoint 2013 and started to play around with it. Seems to be many improvements - among these are the ability to create Display templates.
    On my publishing page there is a default "employee lookup" app which returns prefferred name, title and department as default when I try to search.
    I would love to return mobile number aswell so I have tried to do the following:
    I made a copy of Display _Catalogs/Masterpages/Display Templates/Search/Item_Person.html
    Edited that one with the following:
    1. Added 'MobilePhone':'MobilePhone' to the "Managed Property mapping" in the top of the html   document:
    <mso:ManagedPropertyMapping msdt:dt="string">'AboutMe':'AboutMe','AccountName':'AccountName','BaseOfficeLocation':'BaseOfficeLocation','Department':'Department','HitHighlightedProperties':'HitHighlightedProperties','Interests':'Interests','JobTitle':'JobTitle','LastModifiedTime':'LastModifiedTime','Memberships':'Memberships','MobilePhone':'MobilePhone','PastProjects':'PastProjects','Path':'Path','PictureURL':'PictureURL','PreferredName':'PreferredName','Responsibilities':'Responsibilities','Schools':'Schools','ServiceApplicationID':'ServiceApplicationID','SipAddress':'SipAddress','Skills':'Skills','UserProfile_GUID':'UserProfile_GUID','WorkEmail':'WorkEmail','WorkId':'WorkId','YomiDisplayName':'YomiDisplayName'</mso:ManagedPropertyMapping>
    2. Set a var in the <body> with:
    var has_MobilePhone = !$isEmptyString(ctx.CurrentItem.MobilePhone);
    Created the following based on "DepartmentField":
    if(has_MobilePhone == true) {
    _#-->
    <div id="MobilephoneField">
    <!--#_
    var encodedMobilePhone = $htmlEncode(ctx.CurrentItem.MobilePhone);
    var displayMobilePhone = Srch.U.getSingleHHXMLNodeValue(hhProps, "MobilePhone");
    if ($isEmptyString(displayMobilePhone)) { displayMobilePhone = encodedMobilePhone}
    _#-->
    <div id="MobilePhoneValue" class="ms-srch-ellipsis" title="_#= encodedMobilePhone =#_"> _#= displayMobilePhone =#_ </div>
    </div>
    <!--#_
    Saved the document to the masterpage galary and edited the search result page to (people search core results webpart) to "use a single template to display items" and selected my display template.
    Now the search result is still working but I get no mobile numbers to show up in the user info (only in the details which is default).
    Anyone has some bright ideas of what i'm missing?. I'm not used to code (which might be the cause :-)). If you also have an idea on how to make the value of the number = Mobile: <mobilenumber>. So the "Mobile:" static text is displayed
    aswell.
    Thanks a lot for your time.

    Hello,
    I did the same with my new SharePoint 2013 (I would like to display the mobile phone too) but without any chance. Have you done anything else ?
    This is my User Property "CellPhone" :
    http://www.cladstrife.com/CellPhone_Prop.png
    The ManagedPropertyMapping :
    <mso:ManagedPropertyMapping msdt:dt="string">'AboutMe':'AboutMe','AccountName':'AccountName','BaseOfficeLocation':'BaseOfficeLocation','Department':'Department','HitHighlightedProperties':'HitHighlightedProperties','Interests':'Interests','JobTitle':'JobTitle','LastModifiedTime':'LastModifiedTime','Memberships':'Memberships','PastProjects':'PastProjects','Path':'Path','PictureURL':'PictureURL','PreferredName':'PreferredName','Responsibilities':'Responsibilities','Schools':'Schools','ServiceApplicationID':'ServiceApplicationID','SipAddress':'SipAddress','Skills':'Skills','UserProfile_GUID':'UserProfile_GUID','WorkEmail':'WorkEmail','WorkId':'WorkId','YomiDisplayName':'YomiDisplayName','CellPhone':'CellPhone','HomePhone':'HomePhone'</mso:ManagedPropertyMapping>
    The "if_exist" variable :
    var has_cphone = !$isEmptyString(ctx.CurrentItem.CellPhone);
    And the "display" code :
    <!--#_
    if(has_cphone == true) {
    _#-->
    <div id="CPhoneField">
    <!--#_
    var encodedCPhone = $htmlEncode(ctx.CurrentItem.CellPhone);
    var displayCPhone = Srch.U.getSingleHHXMLNodeValue(hhProps, "CellPhone");
    if ($isEmptyString(displayCPhone)) { displayCPhone = encodedCPhone}
    _#-->
    <div id="CPhoneValue" class="ms-srch-ellipsis" title="_#= encodedCPhone =#_"> Mobile: _#= displayCPhone =#_ </div>
    </div>
    <!--#_
    _#-->
    If I delete the test lines in the display code (if(has_cphone == true) it show "Mobile:" but without any mobile number.
    Thanks for your help if any idea :)
    Best regards
    Gabriel

  • How to extend the WebUI product search results with customer attributes

    Hello,
    We are using CRM 7.0. We want to extend the WebUI product (Object) searches with customer attributes and to display customer attributes in the search results. We found the note 1026956 that explains how to extend the WebUI product (Object) searches with customer attributes. We want to know if there is also some note that explains how to display customer attributes in the search results for products/Objects.
    Thanks in advance,
    Sergey Kozyrev

    Sergey,
    I doubt whether there exists such note. The note 1026956 which you mentioned is for enhancing the Search for Custom attributes. For Enhancing the Result list you need to do custom development.
    Regards,
    Harshit

  • Change the colour of search result highlight?

    Hi i am wondering 2 things. Firstly, why the default colour that a search result is highlighted in is a strange medium-dark blue, and secondly why there is no option to change it.
    Its really hard to see any search result on almost any document, and its common knowledge that almost all documents in general have black text.
    I thought the main purpose of any search tool anywhere in the world was to save time trying to find a word amongst hundreds or thousands of other words.
    I guess adobe with their millions of dollars and experienced team weren't able to think of this.

    Click calendars at the bottom of the page the click on the i symbol for info and then you can select the colour you'd like.

  • I once used this add on which when I hover the mouse on a word/link, a pop up will show of the meaning/image of the word, or search results. What's the add on?

    I am looking for this particular add on or app which allows me to hover my mouse over a word or link and a pop up will appear beside such word or link showing either a picture or meaning of the word or a preview of the link. Sometimes it shows suggestions of sites relating to the word (almost similar to search results). I used it before but I cannot remember anymore what it was called. I would like to use it again.

    Hi. I have had a look around I think I have found something that may help. Give an addon called "Wiktionary and Google Translate" a go. You can find it [https://addons.mozilla.org/En-US/firefox/addon/google-dictionary-and-google-t/ here].
    Feel free to leave the developer of the addon some feedback if you like it. It looks really useful, I might be tempted to use this one myself.

  • How can I reduce the width between search results and the preview fly-out?

    Hello, I am using a custom masterpage that reduces the overall width of page content but I am seeing an issue with my enterprise search site. The search results look fine but there is a large horizontal gap between the results and document preview window
    (when mousing over a word/excel/powerpoint result). This means that the preview fly-out is hardly visible unless the user scrolls horizontally to the right. Can someone tell me how to set a reduced width between the results web part and the preview window?
    Example:

    I think the issue is with the Callout orientation, have you customized the page and if so then you can customize the callout.
    check "beakOrientation" and you can set values like topBottom, leftRight as per your requirement.
    see here for more information -
    http://msdn.microsoft.com/en-us/library/office/dn135236(v=office.15).aspx
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Why doesn't OTM display the Count of test cases when a Filter is applied

    Hi,
    I would like to know if there is a way to get the count of test cases returned when a filter is applied in OTM
    Though the Group By condition returns the number/count of test case, why a particular filter when applied, does not display/return the count of test cases?

    User just wants to get a count when a filter applied? If a report has to be created for a query/filter, then that conveys that OTM lacks usability.
    How about users who does not access to Reports Tab, users who dont have access to create reports?

  • Always displays the default saved search in af:query

    hi,
    The saved search drop down lists the saved searches but could not select another saved search. The dropdown selected value always point to the default saved search, as well as it's UI in criteria region. The same behavior in saving a new search, it will always refresh to the default. What seems to be the problem here? The current QueryDescriptor point to the new search but the UI always displays the default.
    Thanks in advance.

    Found the solution. The queryDescriptor getter calls again the default value that's way it doesn't change. Thanks for the time.

  • Since upgrading to Mavericks, Mail does not display the count of unread messages

    Hi,
    I upgraded to Mavericks from Snow Leopard (on a Macbook Pro mid 2009) when Maverick went out.
    Since then the count of unread messages in the Inbox is not displayed on the Dock Icon, nor in the app itself (the label Inbox does not change to bold with a count of unread messages when I do have unread messages).
    I did when to see the preferences of the app to see if the move from Snow Leopard to Maverick changed anything but I could not see anything odd.
    Anyone having the same problem?
    Thanks in advance.
    Cheers,
    Martin Monnier

    You have posted in an Exchange Server forum, not a Communigate forum.  I recommend that you post in a Communicgate forum, or you can try the Outlook forum: 
    http://social.technet.microsoft.com/Forums/en-US/outlook/threads
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • Displaying Video in Google Search Results

    Hello,
    I'm not sure if I am posting this in the right place. So I appologise if I have it wrong.
    I am trying to get my video thumbnail to appear along with my website in Google Searches. I have found examples of the HTML markup and the video sitemaps and modified them to suite my needs, I have included the HTML into my website and uploaded the sitemap in Google Webmaster Tools a couple of weeks ago. However, the video still doesn't apppear in the Google Searches. I used Dreamweaver CS6 to embed the video file into my HTML4 website. Google has accepted the sitemap and everything seems to be ok, except that it still doesn't display in the Google Searches.  I have placed the code I used below. Can someone please help me with where I have gone wrong.
    HTML MARKUP ADDED TO WEBSITE
    <div id="video" itemprop="video" intemscope itemtype=”http://schema.org/VideoObject” name="Andersens Carpet Cleaning Sunshne Coast" description="Carpet, Upholstery, Tile and Grout,
         Vinyl Cleaning Sunshine Coast" thumbnailURL="images/video-thumbnail.hpg">
          <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="322" height="276" id="FLVPlayer">
            <param name="movie" value="FLVPlayer_Progressive.swf" />
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="scale" value="noscale" />
            <param name="salign" value="lt" />
            <param name="FlashVars" value="&amp;MM_ComponentVersion=1&amp;skinName=Halo_Skin_3&amp;streamName=images/media/vi deo&amp;
            autoPlay=false&amp;autoRewind=true" />
            <param name="flashVars" value="image=banner.jpg" />
            <param name="swfversion" value="8,0,0,0" />
            <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
            <param name="expressinstall" value="Scripts/expressInstall.swf" />
            <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
            <!--[if !IE]>-->
            <object type="application/x-shockwave-flash" data="FLVPlayer_Progressive.swf" width="322" height="276">
              <!--<![endif]-->
              <param name="quality" value="high" />
              <param name="wmode" value="opaque" />
              <param name="scale" value="noscale" />
              <param name="salign" value="lt" />
              <param name="FlashVars" value="&amp;MM_ComponentVersion=1&amp;skinName=Halo_Skin_3&amp;streamName=images/media/vi deo&amp;autoPlay=false&amp;autoRewind=true" />
              <param name="swfversion" value="8,0,0,0" />
              <param name="expressinstall" value="Scripts/expressInstall.swf" />
              <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
              <div>
                <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
              </div>
              <!--[if !IE]>-->
            </object>
            <!--<![endif]-->
          </object>
        </div>
        <h5 class="embold" itemprop="name">Andersens Carpet Cleaning Sunshine Coast Video</h>
        <p intemprop="dexcription"><em>Carpet and Upholstery Cleaning and Stain Removal Services Sunshine Coast</em></p>
        <meta itemprop="thumnail" content="images/video-thumbnail.jpg" />
        </div>
    </div>
    VIDEO SITEMAP MARKUP
    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" 
    xmlns:video="http://www.google.com/schemas/sitemap-video/1.0">
    <url>
    <loc>http://www.andersenscarpetcleaningsunshinecoast.com.au/</loc>
    <video:video>
    <video:content_loc>http://www.andersenscarpetcleaningsunshinecoast.com.au/images/media/video.flv</video:content_loc>
    <video:thumbnail_loc>http://www.andersenscarpetcleaningsunshinecoast.com.au/images/video-thumbnail.jpg</video:thumbnail_loc>
           <video:title>Carpet and Upholstery Cleaning and Stain Removal Services Sunshine Coast</video:title>
    <video:description>Andersens Carpet Cleaning Sunshinec Coast Video</video:description>
    </video:video>
    </url>
    </urlset>
    Aslo I was wondering if there is a way with Dreamweaver to add the "Play" button onto the video clip itself instead of having it underneith the clip on the player controls.
    Can someone please help me with what I am doing wrong?
    Thanks,

    @Ken: Good find! I didn't look into the code in detail.
    @potzki: No, your markup for sitemap seems fine. But like Ken said, the image is not available on the server. Also, do note that the sitemap is only an 'indicator' for Google and will help Google in understanding how your site is laid out - since it is you, the sitemaster, that creates the sitemap and pushes it to Google. But, it's not end of the road for Google. It will cache other areas of your site - unless you've explicitly told Google not to using robots.txt file.
    One more observation - your domain name is like way tooooooo long - forget google, for regular people to type into. Is there a specific reason you chose this one rather than a short, concise one?

  • Firefox 14.0.1 is NO longer showing the Norton SAfe Web icon in seacch results. The toolbar is there but NOT the safe web icon next to the URL in search results

    After updating to Firefox 14.0.1 my search results NO longer show the Norton WEB Safe Icon next to each result. It worked fine before the upgrade. The Norton tool bar is there and when you click on the site the safe web report is there but NOT the icon in the search results.

    Norton released updates for Firefox 14 early the same morning as the release of Firefox 14. Norton usually releases updates on the same morning as new Firefox versions. Have you updated Norton through their LiveUpdate?
    *See --> https://community.norton.com/t5/Norton-Toolbar-Norton-Identity/Firefox-14-Support-for-Norton-Toolbar/m-p/760924
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

Maybe you are looking for

  • Create Procedure - How to Detect Compilation Errors

    Hi, I am working on an application where users will be able to type in their own stored procedures. I perform some basic parsing of the function spec, to make sure it is well-formed, but that's all the parsing I do. I assumed an SQLException would be

  • Data flow using a WLAN controller

    Can someone explain the flow of data from wireless client to some destination in the internal network (or the Internet) using a WLAN Controller? Use a 4402 as an example. Specifically, I am wondering if client traffic actually passes thru the WLAN Co

  • Creative Centrale Crashes with Windows 7 64 bit

    /CI bought a zen style 300 mp3 player. The Creative Centrale program crashes everytime I try and use it trying to access files on the Zen. Anybody have this program working? Any suggestions? I have tried to load the software twice. I can see the Zen

  • [SSRS 2012] export to html (instead of mhrml) without attach file

    Dear all, I enable export to HMTL format on reporting services. But the issue is the file is sending in attachment instead of seing directly on mail body. How I can have my report directly on mail (like MHTML export, but didn't work here (mail are se

  • How to find 0PROFIT_CTR

    Hi All, I have a need for a master data reporting on 0MATERIAL. 0MATERIAL, DESCRIPTION and PROFIT CENTER. But profit center is not an existing attribute, so I put a request to enhance the master data. In the mean time some one claims that profit cent