Servlet+pagination+search Result

can u help me please it is very urgent code for pagination in servlet
if i type anything into the search textbox and display 4 records per page then the 5th records should be in the next page
i have used this query for search either number or character in the search textbox
"Select * from record where sn LIKE ? OR NI LIKE ?";
Where sn=Sanction number and NI =Name of the university
if i search either sn or ni in the search box it will display all records per page
i want to control 5 records per page how to do that in servlet
in jsp page if i click on next and it should show the next page there i can seee the 6 -10 records
Regards
Akshatha

Read the DB specific documentation how to retrieve subsets of records using SQL. In for example MySQL you can use the LIMIT and OFFSET clauses for this.

Similar Messages

  • Form pagination based on search results. Classic report

    hei folks,
    can anyone give me idea how to implement form pagination based on report search results on other page?
    and im using Classic Report.
    pagination by default gives me 1...count(rowid) number of pages
    best regards,
    Simon

    Done.
    Process Get Next or Previous Primary Key Value has a field Optional WHERE clause, you can repeat the 10 store high Where clause from your original report (on page 1). If report includes more then one table - use a view, because inside Optional WHERE clause you can only use one table/view.
    nJoy,
    Simon

  • How to change search result list entries?

    Hi together,
    I'd like to fit the TREX search result list to my own requirements. I've edit the Search Result Renderer Settings, Search Result Layout Set, Search Component Set and the Search Option Set. But that's not enough.
    1.) I would like to display the relevant index name, in which the document was found.
    2.) For special indexes (not for all!) I want to change the content link:
    For example: if TREX is finding an xml-File in index "abc_index" I would like to change the content link from
    "https://portalserver/irj/go/km/docs/folder/p76.xml" to
    "https://portalserver/irj/go/km/docs/folder/p76.htm"
    and from
    "https://portalserver/irj/go/km/docs/folder/p76_data.xml" to
    "https://portalserver/irj/go/km/docs/folder/p76.htm"
    3.) I'd like to display a special part of the document as a explanatory text in the result list.
    I think point 1 and 3 are possible with properties and HTML-extractors. But point 2 I'm afraid I have to create my own component.
    But how to manage this? I cannot find any code snippets or tutorials or pattern to copy and develop further.
    Is it possible or advised to write a WebDynpro? Are there other possibilities? I don't know how to start.
    I would be pretty delighted to get any idea...
    Thanks a lot
    Steffi

    Hi Stefanie
    1) If you want to be able to show the name instead, you should write your own property renderer. Heres the link for the documentation: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c739e546-0701-0010-53a9-a370e39a5a20 -> How to Implement Flexible UI
    Components -> Property Renderer
    2) Documentation will be send in a matter of minutes.
    3) I also think the web property extractors only work with the web repository manager, because as far as I know that is the only repository manager, where you can select a web property extractor upon creation. I guess you could open an OSS to SAP and ask if its not possible to extract properties in your scenario just to be sure if its not possible. But my guess is that you either have to develop your own repository manager or publish your files on a web server in order to meet your requirements.
    Best regards,
    Martin

  • 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

  • Search Result Page Error

    Hi All,
       We have a trouble in SharePoint search result. we have custom page where we have search result webpart in it. Here, the site is anonymous and extended for it.
       The search webpart and pagination is working fine for authenticate users. When anonymous users search the result shows and we we click on the next page we are getting sorry something went wrong. Below are the exceptions we are getting
    Entering monitored scope (Request (POST:http:0/en/_vti_bin/client.svc/ProcessQuery)). Parent No  
    12/04/2014 10:56:19.60  w3wp.exe (0x5914)                        0x4C98 SharePoint Foundation          Logging Correlation Data       xmnv Medium  
    Name=Request (POST:http://80/en/_vti_bin/client.svc/ProcessQuery) e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:19.60  w3wp.exe (0x5914)                        0x4C98 SharePoint Foundation          Authentication Authorization   agb9s Medium   Non-OAuth
    request. IsAuthenticated=False, UserIdentityName=, ClaimsCount=0 e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.00  w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          Asp Runtime                
       aj1kl High     [Forced due to logging gap, cached @ 12/04/2014 10:56:19.60, Original Level: Verbose] SPRequestModule.PreRequestExecuteAppHandler e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.00  w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          Monitoring                
        aeap2 High     [Forced due to logging gap, Original Level: Verbose] Set diagnostics context correlationid {0}, trace level {1}, isDevdashboardenabled {2} e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.00  w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          CSOM                  
            agw10 Medium   Begin CSOM Request ManagedThreadId=111, NativeThreadId=16640 e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.00  w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          Logging Correlation Data       xmnv Medium  
    Site=/ e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.02  w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          CSOM                  
            ai3c0 Medium   Do not Check SPBasePermissions.UseRemoteAPIs permission. Site.ClientObjectModelRequiresUseRemoteAPIsPermission=False, IisSettings.ClientObjectModelRequiresUseRemoteAPIsPermission=True e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.02  w3wp.exe (0x5914)                        0x4100 SharePoint Portal Server       Microfeeds                  
      aizmk High     serviceHost_RequestExecuting e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.05  w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          General                
           xxpk Medium   Unable to open Lookup list '{d7966e0d-e36c-40c2-a2fe-adea5b11239b}'.[Error was 0x81020026] e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.05  w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          General                
           xxpk Medium   Unable to open Lookup list '{030c1db3-ae0c-4049-81f4-f8fccb68d7b2}'.[Error was 0x81020026] e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.07  w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          Database                
          fa42 Monitorable A large block of literal text was sent to sql (length 44546).  This can result in blocking in sql and excessive memory use on the front end.  Verify that no binary parameters are being passed as literals, and
    consider breaking up batches into smaller components.  If this request is for a SharePoint list or list item, you may be able to resolve this by reducing the number of fields. Call stack:    at Microsoft.SharePoint.Utilities.SqlSession.OnPostExecuteCommand(SqlCommand
    command, SqlQueryData monitoringData)     at Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand command, CommandBehavior behavior, SqlQueryData monitoringData, Boolean retryForDeadLock)     at Microsoft.SharePoint.SPSqlClient.ExecuteQueryInternal(Boolean
    retryfordeadlock)     at Microsoft.SharePoint.SPSqlC... e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.07* w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          Database                  
        fa42 Monitorable ...lient.ExecuteQuery(Boolean retryfordeadlock)     at Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName,
    String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback,
    Boolean& pbMaximalView)     at Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags,
    ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallbac... e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.07* w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          Database                  
        fa42 Monitorable ...k, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)     at Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient
    pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback,
    ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)     at Microsoft.SharePoint.SPListItemCollection.EnsureListItemsData()     at Microsoft.SharePoint.SPListItemCollection.get_Count()    
    at Microsoft.SharePoint.SPList.GetItemById(Str... e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.07* w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          Database                  
        fa42 Monitorable
    Please help me out
    Thanks in advance 

    Hi Moorthy,
    can you please enable below setting to get search result for anonymous access.
    To get rid of it please do the following.
    Under the SharePoint Site go to Site Settings.  Search Administration -> Search and offline availability -> Indexing ASPX Page Content, Enable the option "Always index all
    Web Parts on this site"
    Under Search Service Application, do a Full Crawl for the content source to resolve this issue.
    see below link for more details
    http://blogs.msdn.com/b/sowmyancs/archive/2010/07/16/sharepoint-2010-search-not-showing-any-results-for-anonymous-users.aspx
    Hope this will help you.
    Regards
    Soni K

  • Customize the layout set used when opening a folder in search result list?

    Hi,
    I have created a search result iView that uses a predefined search query to show a list of folders. If I click on a folder <i>(rnd:displayname(contentLink)</i>) its content is displayed in a new window. Here the layout set Consumer Explorer (default profile?) is used.
    I want to use a custom layout set in this window. How can I achieve this?
    Regards,
    Mario

    Hi Mario,
    here the answers:
    > <i>1. Develop an own UI Command where you can give
    > the LayoutSet as a parameter</i>.
    >
    > Do you know where I can find some code sample?
    You can either check the <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/Implementing%20Flexible%20UI%20One-Step-Screenflow.article">Implementing Flexible UI One-Step-Screenflow</a> tutorial by Thilo Brandt or search here on SDN for "UI Command implementation" examples.
    > <i>2. Create a Layout Profile with your own Layout
    > Set and define it as the Default Layout Profile.</i>
    >
    > How can I find out for which operations/standard
    > iViews in KM (copy, move, create link...) the default
    > layout is used to avoid surprises when changing the
    > default profile?
    Normally, as you can see in the above mentioned <a href="http://help.sap.com/saphelp_nw04/helpdata/en/25/59bb2eece725498427334e0e21b80c/content.htm">Priority of Settings</a>, whenever the KM Navigation component (com.sap.km.cm.navigation) is opened without a specific layout set the global default layout set is used. As you can give this parameters by different ways (as URL parameter, in the KM Navigation iView configuration, via OTH file definition, hardcoded or configured in the configuration of an UI Command, etc.) it is nearly impossible to find <b>all</b> situation where your users will get this default profile.
    The UI Commands (with selection) you mentioned like "copy","move","create_link" use the configured LayoutSet (ConsumerOnlyFolderSelector) from the KM Configuration (of the command).
    > <i>3. You can also create a Layout Profile and go to
    > the root folder(s) of the search on "Details" ->
    > "Settings" -> "Presentation" and select your profile
    > in the tab "Settings for all users".</i>
    >
    > I think it is to complex to change all existing KM
    > Navigation iViews to forced mode.
    >
    One idea would be to use the <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/0f/764b87dfb948fcb13fd7695e157892/content.htm">Multiple Property Replacement</a> feature by SAP.
    > Can you give me a hint on the other possibilities you
    > want to publish?
    Of course. One other possibility I have in mind is to work with OTH files. You might also search here on SDN to see how to use them for setting the layout set for specific folder paths.
    Hope this helps,
    Robert

  • Search results in 2D array format

    Hi,
    I need to display the search results in HTML TABLE (obtained as bean objects from Arraylist) using a JSP. But the display format should be like below:
    searchResult_1 searchResult_2 searchResult_3
    searchResult_4 searchResult_5 searchResult_6
    Next set of results should be on next page and so on.......
    Can someone please help/suggest as how to accomplish this:
    1: Display the results across first (say upto 3), and then down
    2. pagination
    Thanks
    Message was edited by:
    singalg
    Message was edited by:
    singalg

    You first need to learn HTML tables. That should be easy enough. Then you can search Google for pagination code, which I'm sure there's a few million examples out there.

  • Show the custom popup window on clicking the people name in sharepoint people search result

    Show the custom popup window on clicking the people name in sharepoint people search result
    We are doing the below code to open a popup but while clicking on name link its postback the page and not opening the popup in first click but opening in second click.The same issue occurs while navigate to second page using pagination
    The below code used to show name in item template
    <button id="NameFieldLink" class="temp" style="font-size: 12px;text-decoration:none;color:#0072c6;border:0px solid #fff;background:transparent;margin-left: 1px;height: 15px;padding: 0 10px 17px 0px;text-align: left;cursor:pointer;font-family:
    Arial, Helvetica, sans-serif;" title="">_#= DisName =#_</button> 
    The below jquery code used to open popup in control search template
    ctx.OnPostRender = []; 
    ctx.OnPostRender.push(function () {
    $(".temp").on("click", function(event)
    event.preventDefault();
    $('#fadeout').show();
    $('#pop1').find('.tab-content-people').html($(this).closest('.emp-card').find('.pop-content').html());
    $('#pop1').show();
    return false;

    I believe the issue is that you are not actually searching against the result source you made in step #1.
    It's not enough to make a result source, you have to tell the search results web part to use it.
    Try this:
    1. Go to the Pages library of Search Center
    2. Create a new Search Results page
    3. Edit the page, then edit the search results web part
    4. Change the source for the search results web part to your source
    5. Add the page to your Search Center navigation
    6. Run the search on that page
    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

  • TREX Search Result Layout: Can you change it?

    Hi,
    Is it possible to have different flavors for the TREX Search Result Layout?
    Ideally would be through the use of parameters in the typical TREX URL.  I know that "Navigation.xml" file is hard-coded.....
    Thanks.
    Dick

    Hi Thilo,
    Thanks.
    But I want to use my new LayoutSet using the URL-based interface to TREX:
    https://xxxx.xxxx.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.service?startpage=searchpage&configfilename=navigation.xml&resourcelisttype=com.sapportals.wcm.searchresultlist&searchtype=ctrlpers&selectedsearchin=from_here&selectedsearchfromhere=/room_extensions/cm_stores/pm_storage/workspaces/d4919b6d-ff00-0010-439b-9a59dec17c56&querystring=dog&searchvisible=false&showoptions=false&allowedsortprops=false&selectedsearchaction=fuzzy&selectedmatchesperpage=5&enablesearchsorting=false.
    Dick

  • SEARCH results - shows file name. Can I change this?

    I am using TCS2 in Windows XP.
    In Robohelp when you search the online help, it brings back the search results but they are displayed under the filename heading. Can I change that? I don't necessarily want my filename displayed to users... maybe the Chapter name?
    TIA
    -Adriana

    Hi--
    I have no solution yet but am having very  much the same problem, and would like to get in on this conversation while I continue experimenting. I'm working TCS2 (Frame 9 and Robo 8), linking the Frame book to Robo to create CSH. I'm a long-time Framer but a newbie to Robo and TCS2.
    As far as I can tell from reading through the thread, I've got some kind of variation going: some of my CSH Search results show the heading, and some show the filename. I haven't yet discovered what is the difference in the Frame file, although I believe that's where I'll find it. It's consistent from search to search. (That is, if it a topic shows up in Search results as the filename once, it does so consistently. Ditto others showing up as the heading.)
    In addition to hereby signaling moral support (!) and an interest in a solution, I'd like to provide my settings here and see how yours compare.
    The marker I created to manage output CSH filenames is "FileName." I'm working with engineers who are not native English speakers and have never implemented  CSH. For the 30 or so (out of 75) topics that actually are going to be  linked from the application, I created FileName  marker text that starts with "LinkTo_<menupath>." (Example:  "LinkTo_WebSecurity_ServerSecurityGroups_Adding.") The idea is to help  them see what to link up where. (It also made editing map IDs faster: I just select and automap any topic name  starting with LinkTo_.)
    So I'm getting Search results that look like this:
    Things to know about xyz
    text text text...
    LinkTo_Statistics_Events
    text text text...
    My "File > Project Settings > Edit  conversion settings... > Other" settings are:
    Context Sensitive Help Marker: blank
    Topic Name Pattern: grayed out but is "(Default)"
    Topic Name Marker:  FileName
    Not sure this is optimum. (As I said, a Robo newbie.) Also, my chapter titles and H1 thru H3 are set up to paginate, although I  realized later that filling Topic Name Marker field disables pagination.
    Thanks, will keep working on it --
    Anne

  • How do you filter search results?

    Hi,
    We have a search button on our website that does a sitewide search, and I was wondering how you get about making it so that the search results display in date order (most recent items first). At the moment it seems to display things at random, with items as old as 2005 being listed first. Can anyone help please?
    Many thanks,
    Tracey

    I'll share my newly found work around.
    I use this.  I put a huge number in the resultsPerPage argument and then process the results with a JS sorting plugin like this: http://datatables.net/index
    {module_searchresults,_blank,100000}
    That plugin it particular is better than the built in functionality as it has better pagination and can sort columns if you display it in a table.
    I have to warn you, this is not something someone can do with out good working knowledge of HTML & JS/Jquery.

  • How to separate search results onto different jsp pages?

    Hi,
    I'm using struts framework and I'm a newbie to this technology as well as JSP.
    Let's say, this is an online shop portal and a user has decided to search by category for the products he wants. After submitting the search string, the servlet will return a collection of product value objects to the searchResult.jsp.
    Since this collection may contain alot of products, I will have to allow the user to choose to view the search results by 5, 10, 20 products etc. Now, how do i divide the collection? Do i have to code this function in the action servlet or at the jsp pages? And how do i code them?

    I had a similar problem which I resolved by:
    1) load results into a ArrayList
    2) Have a ValueListHandler with getNextElements(int) & getPreviousElements(int) - see J2EE patterns book for code egs
    3) Then I put logic in display jsp along lines of if ->, call ValueListHandler.getNextElements(10), else call ValueListHandler.getPreviousElements(10)
    Good luck
    Eddie
    Hi,
    I'm using struts framework and I'm a newbie to this
    s technology as well as JSP.
    Let's say, this is an online shop portal and a user
    r has decided to search by category for the products
    he wants. After submitting the search string, the
    servlet will return a collection of product value
    objects to the searchResult.jsp.
    Since this collection may contain alot of products, I
    will have to allow the user to choose to view the
    search results by 5, 10, 20 products etc. Now, how do
    i divide the collection? Do i have to code this
    function in the action servlet or at the jsp pages?
    And how do i code them?

  • Search criteria region and search results regions

    I have a page where the user can enter some search values into some input boxes. Then once the search button is pressed I want the search results region displayed and not when the page is loaded. Eg I want the search result region to be hidden on page load until the search button is pressed. I though about a hidden item that is initialized to null and set after the search button is pressed.

    John - The hidden item's Source Type can be Static Assignment, the Source value should have no value and the Source Used attribute should be "Only...". Now the page will run in one of three ways:
    1) when you link to it and you want the search results region to be hidden you pass in the item and a null value (f?p=app:page:session::NO::P1_ITEM: or reset the page in the link: f?p=app:page_session::NO:1 assuming it's page 1)
    2) when the page branches back to itself after the search criteria are submitted, the branch passes P1_ITEM:xxxx or something
    3) when you branch or link to the page from somewhere else (including for pagination requests) and you want the previous search results to be retained/reused, don't pass anything in the link for P1_ITEM and don't reset the page.
    Scott

  • Google search result causing spry error on webpage

    I have a webpage with some dynamically generated spry elements. The webpage seems to work as is should and generates no errors. However, when the page is accessed through a Google search the page generates the following error...
    Caught exception in Spry.Data.Region.prototype.evaluateExpression() while evaluating: {ds_RowID} == {ds_CurrentRowID} Exception:SyntaxError: invalid object initializer
    This error is being caused by Google generating malformed URL in its search results; like the following...
    mywebpage.php?row={ds_RowID}
    I suspect that this error is being caused because the link is being generated by JavaScript which Google is having difficulty interrupting. Is there a way that I can fix this and make Google interpret the link correctly?
    Thanks

    OK I think that I have found the problem. On the first page of my website I have the following Spry element.
    <div spry:state="ready">
                <h4 spry:repeat="dsNews"><a href="mywebpage.php?row={ds_RowID}">{Caption}</a></h4>
                <p spry:repeat="dsNews">{Front_Page} <a href="mywebpage_2.php?row={ds_RowID}">read more ></a></p>
    </div>
    This is where Google must be picking up the link. My question now is how do I properly link the elements on my first page to correct Spry data elements the supporting page, so that the page keeps functioning like is now does.
    Thanks again for your help.
    Example of first page of website that links to the supporting page.
    http://128.121.66.175/spry/index.php
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
        <link href="css/frontPage.css" rel="stylesheet" type="text/css" />
        <link href="css/frontPage_layout.css" rel="stylesheet" type="text/css" />
    <script src="js/cufon-yui.js" type="text/javascript"></script>
    <script src="js/cufon-replace.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryURLUtils.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryPagedView.js" type="text/javascript"></script>
    <script language="JavaScript" type="text/javascript">
    <!--
    var pageOffset = 0;
    var pageSize = 1;
    var pageStop = pageOffset + pageSize;
    var dsNews = new Spry.Data.HTMLDataSet(null, "ENGdata");
    //Define the Data Set
    var params = Spry.Utils.getLocationParamsAsObject();
    function MyPagingFunc(ds, row, rowNumber)
        if (rowNumber < pageOffset || rowNumber >= pageStop)
            return null;
        return row;
    function UpdatePage(offset)
        var numRows = dsNews.getUnfilteredData().length;
        if (offset > (numRows - pageSize))
            offset = numRows - pageSize;
        if (offset < 0)
            offset = 0;
        pageOffset = offset;
        pageStop = offset + pageSize;
        // Re-apply our non-destructive filter on dsStates1:
        dsNews.filter(MyPagingFunc);
    -->
    </script>
    <style type="text/css">
        .SpryHiddenRegion {
            visibility: hidden;
    </style>
    </head>
    <body id="page1" onload="UpdatePage(pageOffset - pageSize);">>
    <div class="col1 comments">
                <div class="preview-box">
                        <noscript>
            <p class="nojavascript" style="margin-top:15px;">Your browser does not support JavaScript or JavaScript is turned off in your web browser. To view this site properly JavaScript needs to be enabled in your web browser.</p>
              </noscript>
        <div id="loopedSlider2">
          <h1></h1>
          <div class="container">
            <div class="slides">
              <div spry:region="dsNews" class="SpryHiddenRegion">
      <div spry:state="loading"><img src="images/ajax_loader_green.gif"/></div>
      <div spry:state="error">Failed to load news data!</div>
           <div spry:state="ready">
                <h4 spry:repeat="dsNews" style="padding-top:20px;"><a href="spry_test.php?row={ds_RowID}">{Caption}</a></h4>
                <p spry:repeat="dsNews">{Front_Page} <a href="spry_test.php?row={ds_RowID}">read more ></a></p>
                </div>
              </div>
            </div>
          </div>
          <div class="pagination-container" style="margin-left:600px; width:75px;">
          <input type="image" value="Prev" src="images/button-prev.gif" onclick="UpdatePage(pageOffset - pageSize);" />
          <input type="image" value="Next" src="images/button-next.gif" onclick="UpdatePage(pageOffset + pageSize);" /></div>
        </div>
            </div>
            <div class="SpryHiddenRegion">
    <table width="100%" id="ENGdata">
      <tr>
        <th width="35%" scope="col">Caption</th>
        <th width="39%" scope="col">Front Page</th>
      </tr>
      <?php do { ?>
        <tr>
          <td><?php echo $row_conn_front_page['caption']; ?></td>
          <td><?php echo limit_text($row_conn_front_page['front_page'],140); ?></td>
        </tr>
        <?php } while ($row_conn_front_page = mysql_fetch_assoc($conn_front_page)); ?>
    </table></div>
              </div>
    </body>
    </html>
    <?php
    mysql_free_result($conn_front_page);
    ?>
            </div>
          </div>
          <div class="pagination-container">
          <input type="image" value="Prev" src="images/button-prev.gif" onclick="UpdatePage(pageOffset - pageSize);" />
          <input type="image" value="Next" src="images/button-next.gif" onclick="UpdatePage(pageOffset + pageSize);" /></div>
        </div>
            </div>
            <div class="SpryHiddenRegion">
    <table width="100%" id="ENGdata">
      <tr>
        <th width="35%" scope="col">Caption</th>
        <th width="39%" scope="col">Front Page</th>
      </tr>
      <?php do { ?>
        <tr>
          <td><?php echo $row_conn_front_page['caption']; ?></td>
          <td><?php echo limit_text($row_conn_front_page['front_page'],140); ?></td>
        </tr>
        <?php } while ($row_conn_front_page = mysql_fetch_assoc($conn_front_page)); ?>
    </table></div>
              </div>

  • Own Search Result Layout Set

    Hi,
    as following the document "How to remove the 'details' link from the search results page" (https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how to remove the details link from the search results page.pdf) we copied the SearchResultLayoutSet and renamed it.
    Now we changed the own SearchResultCollection Renderer of FlexibleUI via the KM User Interface to fit our requirements.
    To activate our own SearchResultLayoutSet we updated the file /etc/search.oth to use it instead of the standard one. It was necessary to reload the OTH with the following steps (EP6 SP2 Patch3):
    - Activate UI Superusers (wdfproxy)
    - Then a link “Rendering Information” within the Search page Results will be displayed.
    - Clicking this the Debug info page opens, here the button "Reload OTH" was available.
    - Clicking this, the OTH is reloaded and the new own layout set is activated.
    Now, when we moved to patch 27. This procedure differs a little:
    - Activate UI Superusers (wdfproxy)
    - Then a link “Rendering Information” within the Search page Results will be displayed.
    - Clicking this the Debug info page opens, here the button "Reload OTH" is not available anymore, instead there is a link "OTH Overview".
    - Clicking this, the OTH overview with a "Reload" button appears.
    - But clicking the reload button does not have the desired result: search.oth reloaded and the new own layout set is activated.
    How can a own SearchResultLayoutSet be activated globally in the Search OTH? Is there another way with Patch 27?
    Thanks,
    Erik
    Message was edited by: Erik Mueller

    Hi Erik,
    I mean it appears most likely to be an error in the
    location or contents of the search.oth file. If no
    errors are showing up in the log, I would guess the
    modified content is not being found. I think you need
    to check some of your basic assumptions. Try looking
    at the oth folder as a WebFolder and verify that the
    file is there and has the expected content.
    Another thing you might consider is making a different
    oth change that you can verify is taking place to
    check whether the oth is actually reloading.
    Also, if somehow the search criteria in the oth file
    are messed up, then it might silently (without an error)
    just not work, since, although it would be properly
    loaded into the oth, the critera would never get matched
    at runtime.
    I hope that gives you a couple of things to try to close
    in on your problem.
    Regards,
    Darin

Maybe you are looking for