Sorting of the result on the page

I have a set of records say 100, I am showing 10 at a time, now on each column name I have made a link, on the click of the same, I want to sort the data in the page alone, based on that column.
How to go about it?
TIA,
Shanthi

It depends on how you are going about. If you are writing for IE5 alone and receiving XML data, you could just use MS's XSL to sort data in a page.
If you are writing for other browser and browsers are getting data as HTML, then you have to have a sort parameter in XSQL script and use it in ORDER BY clause. Just passed it along with skip-rows parameter.

Similar Messages

  • Sorting without reloading the page

    Hi,
    I'd like to know how processing several sorting operations without reloading and ask the database each time the sorting of the elements is made.
    For that I guess a copy of the result tree obtained by the sql query, written in the xsql page, must be present in memory and always available for the several sorting processes (but is this a temporary xml document which is created? How handle and use this "copy"?). So, one and only one access to the database would be required.
    But I don't know how such a thing works?
    Thanks a lot to help me on this point.
    Bye

    You can easily do that by implementing the apex error handling function.
    See this working example http://apex.oracle.com/pls/apex/f?p=46417:10
    Login as test/test
    By default APEX shows an javascript alert message, I actually overwrote the native alert to show a message div using jquery
    function alert(message) {
    //    console.info(message);
    var msgBox = $('#msg-box');
      if (msgBox.length === 0) {
          msgBox = $('<div />', { 'id': 'msg-box'}).hide().prependTo('body');
      msgBox.html(message+' <a href="javascript:void(0);" onclick="$(\'#msg-box\').hide();">X</a>').fadeIn(500);
    }See {message:id=10735215}

  • Sorting row-elements without reloading the page

    Hi,
    I'd like to know how processing several sorting operations without reloading and ask the database each time the sorting of the elements is made.
    For that, I guess a copy of the result tree obtained by the sql query, written in the xsql page, must be present in memory and always available for the several sorting processes (but is this a temporary xml document which is created? How handle and use this "copy"?). So, one and only one access to the database would be required.
    But I don't know how such a thing works?
    Thanks a lot to help me on this point.
    Bye
    null

    You can easily do that by implementing the apex error handling function.
    See this working example http://apex.oracle.com/pls/apex/f?p=46417:10
    Login as test/test
    By default APEX shows an javascript alert message, I actually overwrote the native alert to show a message div using jquery
    function alert(message) {
    //    console.info(message);
    var msgBox = $('#msg-box');
      if (msgBox.length === 0) {
          msgBox = $('<div />', { 'id': 'msg-box'}).hide().prependTo('body');
      msgBox.html(message+' <a href="javascript:void(0);" onclick="$(\'#msg-box\').hide();">X</a>').fadeIn(500);
    }See {message:id=10735215}

  • To create a sort of "browse the pages" in a page with DWCS6: how?

    Hello all again,
    as usual i'm here with something that for me seems impossible and maybe it's super easy... i checked online but i couldn't find any answer. I start with a description of what i want to accomplish:
    - i have 1 database (mySQL) with a table called "Books", inside i have these fields: Title (VARCHAR 60), Author (VARCHAR 20), StoryText (LONGTEXT)
    - i have 1 page for me, where i insert with a form a book when i want to update the DB
    - i have 2 PHP pages, one that has links where the user chooses, for example, the name of a book and the other that gets that name from the URL and show the content (x chapters of the story, tale or whatever)
    - i'm the user and i click on the link "The Little Prince", the page loads and shows me the title, the author, the text of x chapters (let's say 4 chapters)
    - that text has to be "divided" in more than one page because it's too long for a single page, so i want to see something like:
    Example when you enter the page:
    The Little Prince
    Once upon a time......
    Page 1 | >> | Last page
    and example when you reach page 9:
    The Little Prince
    The little prince....
    First page | << | Page 9 | >> | Last page
    All of this has to be in a single page though, no links to somewhere else or so. It's not a page itself but it appears in a PHP page like a table, textarea and so on. The closer thing i can think about it's a photogallery, where you press left and right and shows the pics but here, instead of pics, there's text. And if possible, i wouldn't want to create a table in my database everytime i insert a new book. What i'd like it's something that "splits" the text i have in a field called "StoryText" (table "Books") and let the user browse the pages. If i have, for example, a book 1000 lines long, i want to make a page every 50 lines so i get 20 pages. Those 20 pages need to get a sort of recordset navigation bar but... not about a recordset, only about a text in that page.
    Resuming, what i need is:
    - a way to split long text in x pages (like the example, 1 page every 50 lines of text)
    - add a navigation bar or some sort of control to browse those pages
    Is it possible something like that? Thanks.

    The example below shows you how to split the article into pages using [PAGEBREAK] inserted into the database but it only gives you the option of NEXT | PREVIOUS
    Split article into multiple pages
    I'm positive you can do exactly what you require - it's a matter of finding and piecing the code together. Entering [PAGEBREAK] into the database isn't very practical either. I'd be looking for an example that extracted a certain number of words.

  • I made some changes to my header, I did not like the results, so I changed them back and now I cannot edit the content of the page.  It is all grayed out..

    I was making some changes to my header file.  I did not like the results of the changes, so I changed them back.  When I did make the change back, I lost the ability to edit the page.

    Unfortunately, a picture of the code is not useful.
    The best way for us to help is if you put a copy of your problem page on a server and post a link for us.
    (rename it to avoid disrupting your live site)
    A less desirable method is to copy & paste your code in a post in the the web forum (not by email)
    https://forums.adobe.com/thread/1615559

  • In the Pages Program template on the 4 column page a text is wrapped around a violinist photo How do I prepare the photo for a similar result

    In the Pages Program template on the 4 column page a text is wrapped around a violinist.
    How do I have to prepare the photo to have a similar result.
    Thanks

    You need to have an image with a more or less even background or at least contrasting to the main part.
    Menu > Format > Instant Alpha > run the cursor over the parts you want to eliminate
    With the image selected > Inspector > Wrap > check Image causes wrap > click on 2nd icon > Text Fit > 2nd icon
    Play with Extra Space and Alpha to get what you want.
    Peter

  • 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>

  • How to display the query results in several pages?.

    Hi,
    i want to display the query results in several pages. for example my query result found 50 matches, now i want to print 20 per pages next 20 will be in next pages. iam using only jsp & mysql.
    Regards
    Chinna

    Hi, what you are trying accomplish is known as pagination.
    You could use JSTL tags with Custom Tags to perform pagination in your JSP pages.
    evnafets showed me DisplayTags , you could use those as well http://displaytag.sourceforge.net/11/tut_externalSortAndPage.html
    Here is one article on paging:
    http://www.javaworld.com/javaworld/jw-07-2004/jw-0726-pagination.html

  • Is there a way to sort a PDF file with multiple pages by a specific field within the PDF? All pages have the same invoice format and i would like to sort by a field within and then print the documents. (Vendor, PO

    Is there a way to sort a PDF file with multiple pages by a specific field within the PDF? All pages have the same invoice format and i would like to sort by a field within and then print the documents. (Vendor, PO#, Date, ect.)

    When you say field, do you mean specifically a form field, such as a text field? Or is the information regular text on the page?

  • Reports included in the page keep looping without retrieving any results

    We are facing an issue related to the behaviour of Siebel Analytics when more than 1 answer are included in a dashboard page. When a report is generated, the other reports included in the page keep looping without retrieving any results, but if I manually click on 'cancel' link, the reports successfully appear with consistent data. This behaviour is not stable since sometimes the page works fine, sometimes not, but it's not clear what it depends on. Can anybody please let me know if this behaviour is a known bug.

    Hi Deb,
    Could you please explain me in more detail?
    The problem is we are able to see the old reports that we were already moved into Q environment. The newly moved 5 reports are giving this error message.
    Please help
    Thanks
    Sri

  • Firefox is displaying pages incorrectly, spreading portions of content horizontally, while the rest of the page is okay. E.g- Amazon's header is stretched, with spaces between letters & words. Google results headings spread. Wells Fargo has problems too.

    I am using Safari to send this question, as I am upset by in Firefox on many sites, where the horizontal spacing is busted. e.g.:
    My display is 1920x1200 but still not wide enough to show the whole site horizontally in these sites! In addition, the text is all over the place.
    At https://www.wellsfargo.com/biz/ for example, it is as if Firefox is not reading the css for the text, some of which is in narrow columns and some scattered!
    Amazon.com, -- the header at the top is so wide I have to scroll to see it and many of the words have huge gaps between letters. In the home page body, most of it is okay, but down the right some items have prices that look like this: $56. 3 8
    At Google, the linked heading of the results are stretched out horizontally.... not all, but on some searches it was prevalent.
    What on earth is going on? I think I am going to try to get back an earlier version from my backup and reinstall that for the meantime... this is really a drag.
    I put amazon in the url below, but note the examples above too.

    Thanks anyway, but neither of these suggestions applies to what is happening.
    The fonts on the websites I mentioned are not garbled and fonts on my machine are not corrupted.
    The characters on the pages in question are correct, just spaced too far apart or appearing in the wrong places, e.g. scattered around the page or scrunched up in narrow columns.
    In addition, portions of some web sites are enormously stretched horizontally, too, which leaves long horizontal gaps in between some words and characters.... and also makes it so that even my 1920x1200 monitor can't display, for example, the top header of Amazon.com without horizontal scrolling. Other portions of that page are a normal width, but I have to scroll way over to log in or find "view cart".
    It seems to me more like the css for those sites is not being read or interpreted correctly.
    Also, some sites appear normal, while others display these problems.
    Something like this is happening in Safari too, though, I have discovered. Hmmm.
    I should mention, too, that the sites look normal in an old version of Firefox I happen to have on an older Mac here, version 2.0.20. It's obsolete for some things, true, but it displays these problem sites perfectly.
    And the problem does NOT happen in Opera at all (latest version)!
    All the sites I gave as examples look completely normal in Opera!
    Hmmm. I will have to start browsing with Opera, it appears if I can't find the answer.... :-( I usually only use it to check pages I have designed.

  • Search criterias in one page, the query results in another page?

    Hi, can I put search criterias in one page, and get query results in another page?
    Need help
    Thanks in advance
    karman

    If you meant a situation like: Page 1 has some items and page 2 has a report which refers page 1 itemsThen your report _query would fetch proper results provided the page 1 item values are available in the session_.
    That is, after submitting their values(using page submit,dynamic action,ajax etx) to session state , their values would be available in any page (anywhere in that session ) , until the page cache for the item page(page 1) is cleared.

  • Found 0 results for While browsing eBay, when I watch or bid on an item, and later view it again, many inches of white space appears before item appears. If I delete the clear recent history box, the pages will come up as they should for several times, th

    While browsing eBay, when I watch or bid on an item, and later view it again, many inches of white space appears before item appears. If I delete the clear recent history box, the pages will come up as they should for several times, then go back to a lot of extra white space. How can I prevent this? Thank you, Rick in English
    == This happened ==
    Every time Firefox opened
    == About a month ago

    As stated in 1.:
    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem.
    Obviously, it will not harm your computer provided you follow the instructions. However, if you don't post your results in the thread where you were given those instructions, then the person helping you cannot help you further. As he asks at the end, "please post the test results on Pastebin, then post a link here to the page you created."

  • Insert and then show the result and refresh page problem

    hi all,
    I collect the form value and put them into db, and then display this student 's inform out from db including the one we just submit, first I do it on this way
      insertpayment(UserId, FeeType, DuteDate, OfficerReason, OtherReason, CompleteDate,
                            InterviewDate, ApprovalDate,PaymentYear);
                   studentRecords= getFound(UserId);
                     userSession.setAttribute("studentRecords", studentRecords);
                     RequestDispatcher disp;
                   // disp = getServletContext().getRequestDispatcher("/WEB-INF/jsp/   studentRecords= getFound(UserId);");
                     disp = getServletContext().getRequestDispatcher("/showPayment");
                    disp.forward(req, res); then whenever I refresh my showRecords.jsp" I call the insert function. THAT IS HORRIABLE.
    I try to move the studentRecords= getFound(UserId); to my showPayment servlet and then forward the result to showRecords.jsp, but I alwarys get error
    PWC4011: Unable to set request character encoding to UTF-8 from context /report, because request parameters have already been read, or ServletRequest.getReader() has already been called
    How should I handle this kind of problem??

    Karan, thank you for the link, i read a few articles, I only get the sample part part use res.sendRedirect("/myfolder/showPayment"); in my insert servlet and use forward to display the page
    userSession.setAttribute("studentRecords", studentRecords);
                  RequestDispatcher disp;
                  disp = getServletContext().getRequestDispatcher("/WEB-INF/jsp/secure/admin/showRecords.jsp");
                   disp.forward(req, res);   
    this solute the refresh page problem, but bring the new problem I can't use the following way to disable the back button. not the perter solution
    maybe I did not understand PRC more advice!!
    response.setHeader("Cache-Control","no-cache"); //Forces caches to obtain a new copy of the page from the origin server
    response.setHeader("Cache-Control","no-store"); //Directs caches not to store the page under any circumstance
    response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
    response.setHeader("Pragma","no-cache"); //HTTP 1.0 backward compatibility

  • I click on a new tab, then do a google search in the bar at the top of the page. Results come up in a different tab that I didn't want to disrupt. Erg! Mac OS

    I click on a new tab, then do a google search in the bar at the top of the page. Results come up in a different tab that I didn't want to disrupt. Erg! Mac OS

    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access the about:config page.<br />
    *Use the Filter bar at the top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default via the right-click context menu if they are user set
    *Preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean) or by double-clicking the line with the pref
    See also:
    *http://kb.mozillazine.org/about:config

Maybe you are looking for