Sort by the internal, not the displayed value?

Hi,
Am I being dense here?
Imagine a report that includes a couple of columns, N and C, where C is the displayed character value corresponding to the non-displayed numeric N, as in:
N C
1 High
2 Medium
3 Low
Clicking the column header for C gives High|Low|Medium, whereas we clearly want High|Medium|Low.
How can we sort by N when clicking the column header for C?
Thanks
John D

There is a new tip on HTMLDB studio showing how to do this.
http://htmldb.oracle.com/pls/otn/f?p=18326:54:3277414206611719541::::P54_ID:1402

Similar Messages

  • How to display the "display values" in READ Only mode for a SHUTTLE

    Hi,
    I have a form item of type *'Shuttle'* and using the following LOV.
       select DEPTNAME d, DEPTNO r
        from  DEPTIn normal mode..it displays the department name and internally store the Deptno..
    Now I converted this item to Read Only mode using Read Only Condition Type
    the problem is as soon as it becomes read only...it displays the deptno....not the department name
                Department-   10:20:30How can I display the "display values" i.e the actual department name in read only mode..
                Department-   Department1:Department2:Department3Thanks,
    Deepak

    Hi,
    It seems feature. Shuttle is span tag when it is read only.
    Work around could be that
    you compute display as text item with LOV display value according shuttle session state and show shuttle and this item conditionally depend case
    Br, JAri

  • Clearing the displayed value for a SELECT-OPTION

    How do I clear the displayed value of a SELECT-OPTION? 
    I have 2 SELECT-OPTIONs on my screen (standard basic report program screen).  I use code like this to populate the drop-down boxes for each one. 
    =====
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prgrp-low.
      PERFORM fill_prgrp_values.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prctr-low.
      PERFORM fill_prctr_values.
    =====
    The value the user picks for the first SELECT-OPTION will affect what values I put in the drop-down list for the second SELECT-OPTION. 
    If a user enters a value for the second SELECT-OPTION, and then goes back and changes the value of the first SELECT-OPTION, then I want to do two things:
    1.  Create a new set of values for the drop-down list for the second SELECT-OPTION (no problem; working fine);
    2.  Clear the displayed value from the second SELECT-OPTION that the user entered previously.  That value became invalid when the user picked a new value for the first SELECT-OPTION. 
    How do I clear that second displayed value? 
    I have tried CLEAR and REFRESH for the second variable using the formats s_prctr, s_prctr[], and s_prctr-low.  They will erase the values of the internal table or part(s) of it, but the displayed value stays on the screen. 
    I need to clear out the displayed value so the user will either leave it blank or enter or select a new value. 
    I am using F4IF_INT_TABLE_VALUE_REQUEST to build the drop-down lists, and it works fine, but I do not see any function module to clear the displayed value off the screen. 
    Thanks for your help.

    Sorry, but calling DYNP_VALUES_UPDATE did not work.  This is how I coded it. 
    fld_reset_rcd-fieldname  = 'S_PRCTR'.
      fld_reset_rcd-stepl      = sy-stepl.
      CLEAR fld_reset_rcd-fieldvalue.      "  re-initialize s_prctr
      CLEAR fld_reset_rcd-fieldinp.        "  what goes in here?
      APPEND fld_reset_rcd TO fld_reset_tbl.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname = 'ZFI_GL_BALANCE_NGL'
          dynumb = '1000'
        TABLES
          dynpfields = fld_reset_tbl
    <Added code tags>
    I have discovered that CLEAR and REFRESH of s_prctr will clear it somewhat.  If I enter multiple values, ranges, etc., they will all be cleared, EXCEPT for the one single value that is displayed on the main screen.  It is not cleared and it remains if you push the button to display the pop-up to enter ranges, etc. 
    To devrath.sampat  --  Thanks for your example for building the drop-down list, but that is not the problem I am having.  I am already able to build it just fine. 
    To repeat my problem, if I: 
    1.  first enter / select a value for the first SELECT-OPTION s_prgrp
    2.  then enter / select a value for the second SELECT-OPTION s_prctr
    3.  And finally go back and select a new value of the first SELECT-OPTION s_prgrp from its drop-down list,
         when I do, the program needs to clear the value displayed on the main screen for the second SELECT-OPTION s_prctr (any additional values, ranges, etc., are cleared by CLEAR and REFRESH, if I go look; but not the value shown on the main screen).
    Edited by: Scott Crosby on Feb 14, 2012 4:20 PM
    Edited by: Suhas Saha on Feb 15, 2012 12:03 PM

  • Expand the displayed values in a DropDown

    Is there a way to expand the displayed values within a dropdown? My binded values are only 2 digits, but the descriptions far exceed my field's width. Please advise.
    For reference, here is an HTML example of what I am trying to achieve:
    http://easylistbox.com/demoDropDownToolTip.html

    Figured out a workaround, hopefully someone can find a better solution. Essentially, change the width of the dropdown on enter, change it back on exit. See below:
    ProjectBLDGtype::enter - (JavaScript, client)
    this.w = "1.9375in";
    ProjectBLDGtype::exit - (JavaScript, client)
    this.w = "0.9375in";
    Not elegant, but works.
    Now I cannot figure out how to only display the bounded values instead of the both the value and description as a final output, but still displaying both when the full dropdown is displayed.

  • Is it possible to change the display value of a domain-based attribute?

    Hello,
    I've selected a domain-based attribute for one of the leaf member attributes in the same entity, aka parent id, since it's a self-referencing entity.  However, I cannot find a way to display anything but the code value in the drop-down (see below).
    Is there a way to change the display value so that I can choose the attribute from the entity from which I want the user to choose? In other words, I would like to display the hierarchy name instead of the code, which is really just the primary id.
    Thanks in advance!
    Ben Lezin

    1. In the explorer page, settings dialog, you can change the display format to show only name.
    2. We cannot use other freeform attribute as DisplayFormat, rather than Code Name. So there are 2 option here:
    a. Remove HierarchyName attribute and just use Name attribute. In the next release, we will allow give Name, Code attribute a displayname, so you can give Name display name as "HierarchyName" in the SQL Vnext release.
    b. Make a Business Rule to update Name when HierarchyName is changed.

  • My lov results into the return value instead of the display value in APEX

    Hi,
    For 1 of the columns I'm representing in APEX, I choose 'Display as text, based on a lov'. I'm using:
    select aan.id||', '||r.naam||', '||a.woonplaats d, aan.id r
    from wmo_aanvragen aan
    , wmo_dossiers d
    , wmo_relaties r
    , wmo_adressen a
    where d.avg_1_id = aan.id
    and d.rel_nummer = r.nummer
    and a.rel_nummer = r.nummer
    and a.id = (select min(e.id) from wmo_adressen e where e.REL_NUMMER = r.nummer
    and e.EIND_DATUM is null)
    and d.id = (select min(f.id) from wmo_dossiers f where f.AVG_1_ID = aan.id)
    But somehow it displays the 'aan.id' value instead of the display value. Does anyone know howcome?? In TOAD it works fine
    Niels
    Edited by: user6394263 on 10-apr-2009 1:22

    Hello Niels,
    Your LOV Displays your concatenated value, but returns the "aan.id" (into the Form field), just as expected. If you want to show the description on your Form, use a PopUp LOV - Displays Description Return Key value
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Setting the value of a textbox to be the display value of a selected item

    I have two seperate regions on the same page. In the top region I have a select list with submit and in the bottom region I have a textbox. I can get the value of the textbox to be set to the RETURN value of the select list, but it is merely a number. I would like for the value of the textbox to be set to the DISPLAY value of what the user has selected from the select list. How can I accomplish this?
    Thanks,
    BoilerUP

    Hi BoilerUP,
    Can’t you create an item based on a select, that returns the value you want?
    select text from mytable where id = :myselectlist_id;
    Regards Pete

  • Get the display values of a multi selection listbox

    Hello, I am creating a visual jsf project and I have a multi selection listbox component. I have bound this component with a table of my database. For the value of the listbox's items I use the "id" field of the table, and for the display value I use the "name" field. I know that with the method getSelectedValues() I get the values "id" of the listbox, but what I want is to get the display values of the selected items of the list box. How do I do that?I have tried this code:
    Object[] selectedareas=getSessionBean1().getAreas();
    String[] mySelections=getSessionBean1().getAreas();
    selareas=areasDataProvider.findAll("id", selectedareas);
    for(int i=0;i<selectedareas.length;i++){          
    some= (String) areasDataProvider.getValue(areasDataProvider.getFieldKey("are_name"), selareas[i]);
    but I get an java.lang.ArrayIndexOutOfBoundsException: 0 error. Any suggestions?Thank you in advance!

    The way I get it in my <f:selectItems> is by binding my multi select listbox, with my database. So what the code is on my jsp page is:
    <f:selectItems binding="#{addcases.multiSelectListbox2SelectItems}" id="multiSelectListbox2SelectItems"value="#{addcases.languageDataProvider.options['language.id,language.lang_name']}"/>and I don't know how to work from here..

  • How to display the display value of a select list

    I want to display the display value instead of the return value of a select list but don't know how to do it, can someone help me?

    When you created the select list item, you are ask to provide a list of values query which can either be a SQL query or a Static List, which both follows the pattern of
    Dispaly;Return.
    Example:
    SQL query -
    select 'Yes' col1, 'Y' col2
    from dual
    Static -
    STATIC:Yes;Y
    which will display 'Yes' but will actually, return 'Y'.
    how did you set your select list item?
    Thanks,
    Marilyn

  • Selected variable value is different from the displayed value

    Hi all,
    I have an issue with variable selection in portal. I have a IO - customer which is compounded to source system. So I have soem customers with the same key with different sources. And I have a variable created on customer. For ex - i have 3 customers like below. 
    SA/1234567
    BP/1234567
    F5/1234567
    1 - And when I search for a customer 1234567 - I find only one customer that is SA/1234567. And IO properties are set to read all the masterdata values and not infoprovider or posted values.  - thats issue one - I would like to see all the three and let the user select what ever he wants.
    2 - Now when I select SA/1234567 and run the report. It shows me data for F5/1234567 - which is correct data for that customer. But in the template I have a info field web item to display the selected variables on the screen. That info field shows the Customer as BP/1234567 - which is wrong and confusing. I checked the properties of the web item and everything seems ok.  So in the variable screen I get a value, the result set if of another value and the variable value that shows in the Info tab is another customer. - Driving me nuts
    3 - When I recreate the same scenario in 3.x query - everything works the way they should - this only happens in 7.0 query. What am I missing here??
    Any pointer or insight is appreciated - sorry for the long post.
    Voodi
    Edited by: voodi on Jun 8, 2010 2:26 PM

    Sorry - its not how its displaying the values rather what its displaying - it misses on 2 other values from the three - though the Bex setting in IO are set to read all the values from materdata table. And in the query I'm using IO properties. And display settings are ok

  • How to set the display value of subtotal

    Hi,
    I'd like to ask a problem,
    I'm using BIEE11.1.1.6, I created a table in BIP layout,there are 3 column,
    YEAR-------COMPANY----------SALES
    2009--------A----------------------100
    2009--------B----------------------100
    2010--------A----------------------100
    2010--------B----------------------100
    2010--------C----------------------100
    I want to add a subtotal row,like
    YEAR-------COMPANY----------SALES
    2009--------A----------------------100
    2009--------B----------------------100
    2009 total------------------------200
    2010--------A----------------------100
    2010--------B----------------------100
    2010--------C----------------------100
    2010 total------------------------300
    by default, it is
    YEAR-------COMPANY----------SALES
    2009--------A----------------------100
    2009--------B----------------------100
    ---------------------------------------200
    2010--------A----------------------100
    2010--------B----------------------100
    2010--------C----------------------100
    ---------------------------------------300
    how can it show the YEAR value||' total' ? like showing '2009 total'?
    thank you!

    Hi Christian,
    Have a look at this thread Re: Default the Date Picker to Today
    It covers this issue in detail.
    Regards
    Paul

  • Right side of a shuttle -  Retunr id and not the display value of the LOV.

    Hi all,
    The matter is how to populate/persist right-side of Shuttle in apex 4.0.1 after submit. The only problem I have is that the values
    on the right side of the shuttle are dispayed as (retun value of the LOV) and not as (dislay valueo of the LOV). What I'm missing.
    There is a way to pre-load dynamically, so depending on a query, a set of values on the right of the Shuttle, and then allow end user to change the preselection adding or removing values.?.

    On page load you need to set the page item value to a colon separated list. Basically just reverse what ever processing you are doing on submit.

  • Result Row of Formula is not using the displayed values

    Good Day,
    I got a query with following layout
                        Child Ship     Parent Ship     Rate
    Child          Parent          ST     ST     %
    Material A                         F6WH           F6WH     55     22     250,00
              F7D1           F7D1     55     33     166,67
              F8LG           F8LG     55     11     500,00
              Result                  55     66     250,00
    The child ship key figure has a setting calculate result as average to display the total shipment of the child. Rate is defined as formula  Child Ship %A Parent Ship.
    In the result row as Rate I require 83% (55 divided by 66).
    It seems that the Rate formular still uses the SUM of child ship 555555 (165 diveded by 66).
    Anyone an idea how to get the "wanted result" of 83% ?
    Thanks for all replies in advances (points will be assigned).
    Axel

    Hi,
    As far as i understand the issue is with the child ship keyfigure in that you have  selected calcualte result as average which is only for display purpose that result cant be used for futher calculations.
    If you want to calculate the average make use of exception aggregation.
    Make a new formula and put you keyfigure for which you need to calculate avg. then hit Aggregation tab---Exception aggregation as average and refernce characterstic choose on which you are getting unique set of values.
    Then continue with your other steps.
    Hope it helps.
    Regards,
    AL
    Edited by: AL1112 on Jun 8, 2011 2:35 PM

  • How to get the display value of selected item in list box?

    I have a page with an HtmlSelectOneListbox that is filled with an ArrayList of SelectItem objects.
    The SelectItem objects contain a Key and Value. The Value is displayed in the ListBox.
    The value parameter of the listbox is bound to a bean property which is called selectedListItem.
    The bean property selectedListItem contains the Key of the SelectItem that is selected.
    How do I obtain the Value of the selectedListItem?
    I need to be able to get the Value field that is displayed, not just the Key to the item that is displayed.
    Edited by: burferd on Nov 3, 2007 10:03 PM

    How are you filling in the value of the menu? Obtain it back by the same way. Or pass it along the key in a object.
    This article may give useful insights: http://balusc.blogspot.com/2007/09/objects-in-hselectonemenu.html

  • Desperate help on the displayed value

    Hi everyone,
    Currently am trying to print out a value via the backend just to check whether it could displayed properly right after the query statement. My jsp basically look like this
    eleave2.jsp
    void determineUsersOnLeave(HttpServletRequest request, String leave_from, String attributeName) throws Exception {
            Map typeMap = new TreeMap(); 
            Map typeCountMap = new TreeMap(); 
            // get users on leave
            Application application = Application.getInstance();
            EmployeeLeaveModule lm = (EmployeeLeaveModule)application.getModule(EmployeeLeaveModule.class);
            Collection list = lm.viewAllLeaveList(leave_from, null, false, 0, -1);
            System.out.println("---++++++++ list " +list);          
              if(list.size()!=0)
                  Iterator i = list.iterator();
                    while(i.hasNext())
                        System.out.println(i.next());              }
          }what i am trying to do is to print out the value from the collection. the funny thing is, it printed out a very funny value which look like : -
    ---++++++++ list [com.tms.eleave2.model.EmployeeLeave@230be4]
    com.tms.eleave2.model.EmployeeLeave@230be4
    It printed out a funny value that i couldn't understand. Anyone has any idea? Please help....

    It printed out a funny value that i couldn't understand. Anyone has any idea? Please help.... Thats the default toString(...) representation of an Object.
    When you use System.out.println(i.next()), the toString() method of the Object returned from the Iterator gets invoked.
    So you need to add a toString() method to your Object to return a String with meaningfull text.

Maybe you are looking for

  • Late '13 rMBP issues w/ Dell 4k Display

    I have the Dell p2715q 27" 4k screen and 2 rMBPs: Work - late 2013 with discrete GPU running 10.9.5 Personal - mid 2014 with discrete GPU running 10.10.2 When I first set up the monitor a few weeks ago, I used it for a few days with the work computer

  • Harvard Outline Template for Pages iOS version ipad and iphone

    Is there any way to create a Harvard Outline in the Pages ios 8 version for ipad and iPhone?  If not can anyone recomend and App that does?

  • Select * and Insert question

    I have my ResultSet and Query to get the data form an Oracle database. Would I use the same rs for an executeUpdate statement? Or how would I go about doing that? Basically I'm querying the database, getting the resultset, processing the data around,

  • ' Landscape in XI '

    Hi All    Can any one explain me what is land scape of XI in real time projects?    What it contains ? Any information on this is most welcome ! Adv..thanks and regards ---  Rakesh

  • Photoshop CC not saving preferences

    Hi, i am on OSX 10.9 and my Photoshop CC is not working properly: everytime i close the application (not forced quit!) it is not remembering any settings. Neither my workspaces nor any preferences i did manually. It always goes back to the default vi