Sort-on-clicked-column in BC4J

Is there an easy way to create a sort-on-clicked-column in BC4J?
I was thinking about creating hyperlinks on the column headers with a URL-parameter added (for example param.name 'p_order_by'). Then this parameter could have values like 1,2,3 etc (=clicked column nr)
In the JSP I can read this parameter by means of:
<% if (request.getParameter(p_order_by) != null) {
String orderby = request.getParameter(p_order_by);
} else {
String orderby = "1";
%>
and alter my DataSource: orderbyclause="<%= orderby %>"
I assume this can work (I will test :), but I can imagine there is a more easy way to do this....
Thanks,
regards
Stephan

There is definitely an easier way in later JDeveloper releases, but using the <jbo:* > tag library the way involves either using the orderbyclause property of the <jbo:DataSource> tag, or programmatically invoking a method in your ViewObject or ApplicationModule's public service interface that internally accomplishing the same thing which is to invoke the setOrderByClause() API on the view object in question.

Similar Messages

  • We used to be able to sort by multiple columns/rows at once by right clicking on the header and choosing show more options-how do we do that in the new Numbers?

    We used to be able to sort by multiple columns/rows at once by right clicking on the header and choosing show more options-how do we do that in the new Numbers?  It doesn't appear anywhere.  Do I now have to sort massive tables by each column one at a time now?  Also there used to be an easier way to merge/unmerge cells without me having to go to the table menu each time.  Am I missing something?

    Multiple column sort is a missing feature in the new version.  Hopefully soon to return. You can do a multicolumn sort by sorting one at a time in reverse order of importance.
    For merging and unmerging cells, I select the cells and right click to bring up the contextual menu. Merge and unmerge are on the menu.  You could also create keyboard shortcuts for Merge Cells and Unmerge Cells in the Table menu.

  • Sort by clicking on the column heade with LIFO

    Good morning!
    I would like to sort by last entry is first (LIFO) in my report.
    To do that, I have to un check in sort:
    Home>Application Builder>Application ***>Page 1>Report Attributes*(Otherwise APEX shows: "Your query can't include an "ORDER BY" clause when having column heading sorting enabled.")*
    When I follow the APEX suggestion, my report lost feature to sort by clicking on the column header.
    I still want to keep sorting ability on any column just by clicking on the column header.
    Thanks in advance,
    Sam

    Sam,
    First remove the order by clause from your query and then try to set the sorting using the sort sequence. Thanks.
    Regards,
    --Manish                                                                                                                                                                                                                                                                                               

  • Can data be sorted by multiple columns in numbers version 3

    Since upgrading Numbers to version 3 (now 3.0.1) I have been unable to sort data in spreadsheets using multiple columns.  Anyone found a solution?
    Regards
    kurrajong60

    Here's a simple example. Say you want this sorted first by Region then by Name then by Amount.
    So if you set up a sort index column with a simple formula and all you have to do is this (two clicks):
    Giving you this:
    Of course you could do it as I think Hiroto is suggesting and manually sort first by column B, then sort by C, then sort by A.
    But that's a lot of trouble and it's easy to confuse the order so you end up having to start over again.
    SG

  • How do I sort data in columns using Pages

    How do I sort data in columns (alphabetically) using Pages?

    If you are referring to text or numbers in a column (not table), then get the free Service plug-in WordService, from Devon Technologies. Put it in the
    /Users/yourlogin/Library/Services folder location.
    Select your data to be sorted. From the Pages menu > Services > Sort Ascending will do the trick. This will work with Pages ’09 and Pages v5.2 or later, as well as Apple Mail, TextEdit, etc.
    The WordService files include a PDF (Read Me) that describes the services included with the package.
    The Service items will only appear in the Services submenu when you have selected your data prior to sort. If these WordService items do not appear in the Services menu as they should per the preceding sentence, then you will need to enable them.
    System Preferences > Keyboard > Shortcuts > Services. Scroll through the right hand list of services until you encounter Sort Ascending and ensure that it is selected.
    If you were referring to sorting a column of data in a table:
    Pages ’09
    Select all cells containing your unordered data. In the Table Inspector, under Edit Rows & Columns, choose Sort Ascending.
    Pages v5.2
    Select cells as before. In the Table heading (A, B, C, etc.) when you roll over the letter, a down-arrow appears. Click, and choose Sort Ascending from the drop down menu.

  • Get clicked column header not working

    Here's what I'm trying to do:
    Have a multi-column listbox of elements.  Allow the user to select a few rows he is interrested in (and the become highlighted).  Allow sorting of the listbox by clicking on the column headers.
    I've got the listbox populating fine, if nothing is selected, the sorting works fine (event structure based on mouseup event of the multi-column listbox, calling to the "get clicked column header" invoke node method sorts the data.  The part that is not working is that If the user has elements selected, sorts the listbox, the same elements are selected (not the same rows, but those same elements in whatever row they ended up after being sorted). 
    What happens is if I select a few rows in the listbox (listbox configured for 0-N elements selectable, highlight entire row), and then click on the column header, the event structure fires off a value change event for the listbox and changes to no elements selected.  if I then click the column header again, it fires off the mouse up event and I get the sorting, but now none of the rows are selected.  Weird thing is that first time I click the column header and it fires the value change event, a call into get clickced column header returns negative value so it won't tell me which column header the user clicked to "empty" the selection.
    Bugger!!!!  doesn't work how I want it to.
    Funny thing is if I change the listbox over to a 1-N elements selectable, and then select a few rows, and then click on the column header, the event structure fires off the mouse up event and I get the sorting and re-selecting exactly as I would expect. 
    What's the deal here?? is this a bug, or expected behavior.  If it's expected, it would be nice if it were a little more consistent between the different types of listboxes.  Also, any good suggestions as to how to allow users to have 0-N selected elements, and be able to sort the listbox and keep the selected rows selected?

    Sounds annoying.  Here is a variation of my goto method for these types of problems:
    Use the MouseDown? event to catch important info like the old value.
    Restore the old value at the end of the Mouse Up event.
    Some details, like making sure that the down and up clicks are in the same cell.
    Use Defer Updates to prevent flashing.
    One of many kluges I have around for the MC Listbox....
    Attachments:
    MCListboxKluge.vi ‏20 KB

  • How to enforce always sorting on a column in a TableView?

    Hello,
    I have a requirement to always sort on a column in a TableView.
    So basically, I need a TableColumn's SortType go from Ascending to Descending and back to Ascedning when user clicks on a column header repeatedly.
    I guess that means making sure a TableView's SortOrder list is not empty. Am I right?
    I tried to listen to SortOrder list changes like below:
    tableView.getSortOrder().addListener(new ListChangeListener<TableColumn<String, ?>>() {
         @Override
         public void onChanged(final javafx.collections.ListChangeListener.Change<? extends TableColumn<String, ?>> arg0) {
    if (tableView.getSortOrder().size() > 0) {
                   // fine. nothing to do
              else {
    // add the removed column back
    Is this the right approach?
    I'm not sure how to use arg0 and add the removed column back.
    Can people with experience in this area provide some sample code?
    Thanks.

    The solution I came up with was to save the last column added to the SortOrder list to a map.
    Whenever the SortOrder list becomes empty, I add the last saved column back to the SortOrder list.
    That seems work.
    Edited by: 925616 on Aug 3, 2012 3:33 PM
    Edited by: 925616 on Aug 3, 2012 3:33 PM

  • Defining sort on applet column

    Requirement is to define the sorting on the column,
    Normally in UI we have a columns as STATUS which can have values        Green--- Red—Yellow
    In UI if you click on column header. It will sort with either  Green—Red ---yellow or yellow ---red—green which is ascending or  descending  order.
    We need a change which need like this  Green—yellow--- Red or Red –Yellow-Green..can this be done?

    Hello -
    Is still an issue for you?  if yes, then can provide give us a little more information;
    1) What CZ Build are you using?  See Doc ID 313691.1: How to determine build level of Oracle Configurator Runtime and Developer.
    2) Can you provide a screen capture showing the User Interface with the colors?
    Thanks, Daniel

  • How can I sort alphabetically three columns?

    Hi to everybody!
    I've got some problems sorting alphabetically three columns. If I try to sort one column it changes also the others. I want three independent columns and each of them must be sorted out alphabetically.
    In Excel it's so easy: I just have to select the column and push the button "sort the column alphabetically". Why is that so difficult in numbers?
    Check it out: http://yfrog.com/j6screenshot01tj

    l,
    What is the nature of the content in the three columns? If the content is just data, and not calculations or the input to calculations, you can easily accomplish a single column sort in Numbers.
    I see from your screen shot that you are still in the Excel mindset. You have a large table with more rows and columns empty than occupied. To work most effectively in Numbers we usually use only as many rows and columns as necessary, and if we have data that is of another set and not related, we begin a new table.
    So, if your data meets the requirements of the first paragraph and you have trimmed away the excess rows and columns we can do the following: Click once on the label of the column you wish to independently sort. Then click again on this label and drag it up and away from the table to a blank area of the canvas. Perform the sort on the separated column. Then grab the sorted column in the same way as before and move it over the original table, watching the borders between columns highlight as you move over them. The double line between columns identifies the insertion point. When you have your sorted column in the right place, drop it back into the original table.
    Jerry

  • Sort descending a column generated by a simple formula?

    I have just upgraded to Numbers 3.2 from '09 and I have discovered this nasty problem where I can not “sort descending” a column generated by a simple formula.
    Imagine the sequence 1, 2, 4, 8, 16, 32, 64…
    — Let's add the first number, “1” in B1
    — Click on B2 and make it equal to B1*2
    — And so on, click your B2 cell and drop to bottom.
    We get this nice succession:
    OK. Now imagine we want to “sort-descending” this. We press on top and choose the descending option. And then we get this annoying result:
    How I can to fix this problem?
    This worked perfectly on previous Numbers versions ('09) and of course in Excel or OpenOffice. And it's a very “simple” and common feature.
    Or maybe I'm forgetting or misunderstanding something?
    Thanks for your support :-)
    Cristóbal Vila.

    Sorting has changed since the previous version.
    You can sort this by selecting the column with the sequence, then copy
    then select the menu item "Edit > Paste Formula Results"
    now sort
    another way is to place a "count" in column A... 0 thru whatever
    and place a formula to computer the power of two from that count:
    In this case I entered 0 in cell A1, then 1 in cell A2
    select cells A1 and A2 and fill down as needed by dragging the yellow dot that appears when you hover the cursor over to bottom edge of the selection
    In cell B1 I entered the formula "=2^A1"
    no select cell B1 copy
    select column B,  paste
    now you have a sort-safe table and may sort as needed

  • Sorting on Grid column

    Hello Experts,
    I have an UDF with a grid that I have to sort by one column.
    I'm manually filling the grid not using an sql query with DataTable, so I can't use the "order by" clause for sorting.
    Can anyone help me ?
    Thanks for your time in advance.
    Best regards
    Andrea

    Andrea,
    If i well understood I insert the new values in the grid already ordered using the row index parameter in method myGrid.DataTable.Rows.Add()
    Yes, that's correct.
    So why I'd need to catch the TitleObject double click event and re-order the grid's values ?
    You only need to do this in order to emulate B1 Grid's sort functionality. With it, if a user double clicks a column, the grid will sort it self.
    How can I find the right row index for the alphanumeric grid column ?
    What do you mean by "the right row index"?
    If you fill the grid, or more correctly, the Grid's DataTable row by row, just use myGrid.DataTable.Rows.Count -1 as the index.
    Regards,
    Vítor Vieira

  • JTable sorting when clicked on header

    In my JTable when clickedon JTable header of a column it doesn't get sorted. how do I make sort when clicked on hearder column?
    Thanks.

    Check out
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#sorting

  • Af:selectBooleanCheckbox get unchecked when do sorting on that column

    Hi,
    I am facing issue with af:selectBooleanCheckbox, this is inside a popup, table
    <af:popup childCreation="deferred" autoCancel="disabled" id="p21" contentDelivery="lazyUncached">
                      <af:dialog id="p31" title="#{penfaxviewcontrollerBundle.SELECT_MESSAGE_RECEIPIENTS}"
                                 closeIconVisible="false" dialogListener="#{pageFlowScope.composeMessage.selectMessage}">
    <af:panelGroupLayout id="pgl2" layout="horizontal" valign="top">
                          <af:outputLabel value="#{penfaxviewcontrollerBundle.EXTERNAL_USERS}" id="ol2"/>
                          <af:table value="#{bindings.PExternalUserVO1.collectionModel}" var="row"
                                    rows="#{bindings.PExternalUserVO1.rangeSize}"
                                    emptyText="#{bindings.PExternalUserVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
                                    fetchSize="#{bindings.PExternalUserVO1.rangeSize}" rowBandingInterval="0"
                                    selectedRowKeys="#{bindings.PExternalUserVO1.collectionModel.selectedRow}"
                                    selectionListener="#{bindings.PExternalUserVO1.collectionModel.makeCurrent}"
                                    rowSelection="single" id="t1" contentDelivery="immediate" columnStretching="column:c2">
                            <af:column sortProperty="#{bindings.PExternalUserVO1.hints.SelectUser.name}" sortable="true"
                                       id="c1" align="center" width="30">
                              <af:selectBooleanCheckbox value="#{row.bindings.SelectUser.inputValue}"
                                                        label="#{bindings.PExternalUserVO1.hints.SelectUser.label}"
                                                        required="#{bindings.PExternalUserVO1.hints.SelectUser.mandatory}"
                                                        autoSubmit="true"
                                                        shortDesc="#{bindings.PExternalUserVO1.hints.SelectUser.tooltip}"
                                                        id="it4">
                                <f:validator binding="#{row.bindings.SelectUser.validator}"/>
                              </af:selectBooleanCheckbox>
                            </af:column>
    facing two issue
    1: When this popup appears and in table I have say 5 rows. If i check any of the rows checkbox other then first row it shows checked but again shows that checkbox unchecked. But if I check again any row that remain checked.
    2. Now if i click to sort this checkbox column all checkbox become unchecked.
    So please suggest wht may be the cause. I am using Studio Edition Version 11.1.2.4.0
    Also I want to know how we can apply caseInsensitive sorting on table.
    Thanks

    The framework implements table sorting by re-executing VO's query with added ORDER BY clause (i.e. the sorting is not performed in-memory but through re-execution of the query). I suppose that the SelectUser attribute is a transient one. When the query is re-executed you lose the values of the transient attributes. This behavior is by design, it is not a bug.
    Dimitar

  • I have downloaded and installed the latest version of numbers on my mac. Everytime I save and then try to reopen that document, I receive a message telling me that I need a new version of numbers. Also, when I try to sort the date column, it sorts out of

    I have downloaded and installed the latest version of numbers on my mac. Everytime I save and then try to reopen that document, I receive a message telling me that I need a new version of numbers. Also, when I try to sort the date column, it sorts out of order. The last version sorted fine.

    Welcome to Apple Support Communities
    When you install the new iWork version, the old iWork version is kept, so it looks like you are opening your old version.
    To fix this, open a Finder window, choose Applications in the sidebar and drag the new Numbers version to the Dock, so you can access to it quickly. Open all documents from this version. I don't recommend you to delete the old Numbers version in case you need it.
    Respecting to the second question, you will get better answers in the Numbers for OS X forum

  • I can't sort a single column only (ignoring the next column)

    I can't sort a single column only (ignoring the next column) in NUMBERS

    Numbers sorting follows a database model in which each row is a 'record' rather than a collection of unrelated data items. When a table is sorted, the integrity of the individual records (rows) is maintained.
    If you need to sort a single column, that column (or its data) must be separated from the rest of the table.
    That can be done using copy/paste (as described above by Wayne), or by taking the column to be sorted out of the table, dropping it on the sheet to form a new, single column table, doing the sort, then returning the column to the original table.
    The 3 1/2 step process takes longer to describe than to do.
    Regards,
    Barry

Maybe you are looking for