Disable sorting in LOVs?

Hi,
We have a lot of LOVs in our ADF 11g application. We noticed that using the sort function of the table inside the LOV sometimes causes errors. Since we don't need the sort functionality in our LOVs (we have appropriate ORDER BY statements in the queries that fill them), we would like to disable the sort function in LOVs. I can't find a way to do this. Am I missing something? Or is it simply not possible?
Best regards,
Bart Kummel

Hi Bart,
I don't know if I've understood the requirement well enough.
You mean, you have an LOV as one of the column in your table, for which you you want to disable the sorting?
If yes, you can set the sortable property to false.
Something like
          <af:column sortable="false" id="c1" width="105">
            <af:selectOneChoice label="Label 1" id="soc1" ... >
              <f:selectItems id="si1" .. />
            </af:selectOneChoice>
          </af:column>-Arun
P.S : Also make sure to remove if you have any sortProperty set for the column

Similar Messages

  • How to disable sorting for some columns in a ALV GRID?

    Hi i have requirement where I have to disable sorting for some columns in a ALV GRID. i am using REUSE_ALV_GRID_DISPLAY function module.
    Can anybody help me. how to acieve this? Any code snippets will really be appreciated.

    Hi,
    I have tried this but not completely successful. I think this can be done using the OOPS method.
      DATA: it_event_exit TYPE  slis_t_event_exit.
      DATA: w_exit TYPE slis_event_exit.
      w_exit-ucomm = '&ODN'.
      w_exit-before = 'X'.
      CLEAR w_exit-after.
      APPEND w_exit TO it_event_exit.
      w_exit-ucomm = '&OUP'.
      w_exit-before = 'X'.
      CLEAR w_exit-after.
      APPEND w_exit TO it_event_exit.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program          = w_repid
          i_callback_top_of_page      = 'ALV_TOP_OF_PAGE'
          i_callback_html_top_of_page = 'ALV_HTML_TOP_OF_PAGE'
          i_callback_user_command     = 'USER_COMMAND'  <- User command form
          is_layout                   = wm_layout
          it_fieldcat                 = wt_fieldcat
          it_events                   = i_events
          it_event_exit               = it_event_exit    <- Need to fill
          it_sort                     = wt_sort
          i_default                   = 'X'
    Now you can capture this events in the user command
    FORM user_command  USING r_ucomm LIKE sy-ucomm
                             rs_selfield TYPE slis_selfield.
      IF r_ucomm = '&OUP' and rs_selfield-SEL_TAB_FIELD = 'Your field name'.
      ENDIF.
    ENDFORM.                    "user_command
    In this form you will get the function code in 'r_ucomm' and the field selected for sorting in 'rs_selfield-SEL_TAB_FIELD'. But reseting 'r_ucomm' will not work.
    May be somebody else can give some help on this.
    But this will work if you follow the oop method.
    Please see this document for more info.
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an easy reference for alv grid control.pdf
    Thanks
    Vinod

  • Disable sorting and resizing columns on table view

    Is there a way to disable sorting and resizing columns on table view?
    Thanks

    Use
    setSortable(false)
    setResizable(false)
    on each TableColumn

  • Disabling sort button on the alv list display

    Hi,
       how to disable sort button on alv list display
    thanks

    Fill an itab
    1- Create an itab type SLIS_T_EXTAB.
    2- Populate it with the Function codes you want to exclude ('&OUP', '&ODN').
    3- Pass it as parameter to IT_EXCLUDING
    Regards
    Edited by: Jordi Escoda Ruiz on Apr 24, 2008 10:39 AM

  • Disable/enable popup LOV image anchor in tabular form

    Hello all,
    I am trying to find the solution how to enable/disable popup LOV's image anchor. When I disable the popup item, then only the text field is disabled but the image is still active and opens the LOV window. I have tried to implement some solutions but without success.
    I have created DA (fired after refresh of needed region) with code below which disables the needed field.
    $('td[headers="DEPTNO"] input').each(function(i)
                $('td[headers="DEPTNO"] input:text').disabled="disabled";
    $($('td[headers="DEPTNO"] input:text')[i]).addClass('apex_disabled');
    Could anyone help me with a code which will also disable the image?
    Thanks in advance!
    My testing appl:
    www.apex.oracle.com
    *WS:* kurintest
    *username:* [email protected]
    *passwd:* kurintest
    *appl. name:* disable_popup_icon
    -Jiri                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hello Jiri,
    Please see your page:
    I have changed the dynamic action:
    $('td[headers="DEPTNO"] input').each(function(i)
                $('td[headers="DEPTNO"] input:text').disabled="disabled";
    $($('td[headers="DEPTNO"] input:text')[i]).addClass('apex_disabled');
         $($('td[headers="DEPTNO"] a')[i]).click(function(e) { e.preventDefault(); });
    $($('td[headers="DEPTNO"] img')[i]).addClass('apex_disabled');
    Hope it helps!
    Regards,
    Kiran                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • OBIEE 11.1.1.5 disable sorting

    Hi,
    I am finding some issue when sorting the columns by ascending most of the time. The records are getting removed from the report. By default, now 11.1.15 introduced sorting on all columns including the measure columns as well and there is no way to disable them by column or remove this feature from the report as well. Did any one find any alternative way to disable this sorting in this version of OBIEE. Let me know the solution.
    Regards
    VM

    Yes, definitely there is a problem the way OBIEE 11.1.1.5 has made this a default behavior including all the dimension columns as well fact measure columns also available for sorting and it acts wierd for pivot table issue but doesnt throw any error for table view.
    Will be taken up by oracle support as a bug and might get fixed in its later version may be.
    Regards
    VM

  • How to disable find in lov-dialog

    hi,
    I'm having a java client application which uses LOV's. These LOV's provide a find functionality, but I want to diable it, because it doesn't work. Can anybody help me?
    thanx in advance
    Ruben

    You cannot disable Find on any document. Of course, if a document
    contains no text (e.g. scans) it won't suceed.
    Aandi Inston

  • Disabling the dropdown LOV for existing records in SQL updateable report

    Hi All -
    I have a SQL updateable report which has 3 columns. One of the column is a named-LOV. This report also provides the functionality of inserting new rows.
    Is there a way to only show the named-LOV dropdown list for only the new records to be inserted i.e. when we click on "Add Row". For existing records, I donot want to show the dropdown.
    Please provide your thoughts.
    Thanks,
    -Seenu

    Thanks Robert -
    I guess I didn't put my question right in my earlier posting.
    Basically this report provides updates and inserts both (Its a SQL Updateable report)
    One of the column is a Named-LOV (select list dropdown). For the existing records shown in this report, this select list should be disabled. But for the new records while inserting a new row into this report, the select list dropdown should be shown to the user with an option to choose values from selectlist.
    Thanks,
    -Seenu

  • Disable row in LOV or Poplist

    Hi Folks,
    Is it possible to have a poplist or an LOV with all values listed but some of them grayed
    out and not accessible !!!!
    Thanks
    Pranati

    May be Creating LOV on Non-Query Record Group, help you. It can't disable any lines. But you can keep required values in the Record group dynamically. So the LOV on that, will show only filtered data.

  • How to disable sorting in ListView component?

    Hi ,
    I am using a listview component and is there any option to disable the sorting option.
    Regards,
    Nagaraj

    Use fixed header size, that will stop resizing the column width at run time.
    Regards,
    Anjani Kumar C.A.

  • How to disable sort in inputlistofvalues popup

    I'm building custom bpm task list using jdeveloper 11.1.1.7 and in this page i've added input list of values
    this input list of values comes from view object but I've changed its value to my xsd element to save returned value in this elemnt
    Problem happens
         when I open the input list of values popup and try to sort data in the appeared table in the popup
         error says "class cast exception appear"
    I want to avoid this error by disable search in the popup or catch the sort event by java script and cancel it.
    can I make this or no

    this is the error that appears to me
    oracle.jbo.server.ViewObjectImpl cannot be cast to oracle.adf.model.bean.DCDataVO

  • Disable sort function in datagrid

    In my application I have a datagrid with four separate columns and I was wondering if there is any way of disabling the sort functionality on each column in the datagrid component?
    If not I'm open to suggestions but would prefer not to use four separate list components?
    Thanks
    Adam

    Sorry just found the answer...
    Setting sortableColumns="false" is all that was required.
    Adam

  • Disabling sorting for a table

    Hi All,
    I want to disable the sorting function for my table. How can I achieve this? Please help...!!!
    -sps

    If you are using a JTable, by default row sorting is unable. Infact, to provide you the Table sorting, you have to put the line
    JTable table = new JTable (...);
    table.setAutoCreateSorter (true) //this enableinto your code or writing a RowSorter.
    Otherwise there's no sorter for the Table and you can't do any kind of sorting.
    Regards,
    Maurizio

  • Disable sort option in ALV GRID DISPLAY

    Hi Experts,
    I have an Alv output with fixed layout, means user should not be allowed to edit/sort/toggle any of the columns, particularly sort functionality should be removed.
    I have already tried the function code logic with excluding table. That only makes the sort option disappear. Still when you select a particular column and right click, you will find that the Sort in Ascending order' and 'Sort in descending order' functions are still enabled. This was already raised as a thread but not answered.
    [alv sort option]
    Please help.
    Note: Disabling the icon doesnt help in disabling the functionality.

    Try by excluding the entire Sort group. Like:
    Data:
    t_toolbar_excld1 type ui_functions, "buttons to exclude
    wa_toolbar_excld&1 like line of t_toolbar_excld1.
    wa_toolbar_excld1 = cl_gui_alv_grid=>MC_FG_SORT.   " <<
    APPEND wa_toolbar_excld1 TO t_toolbar_excld1.
    CALL METHOD r_alv_grid1->set_table_for_first_display
      EXPORTING is_variant = w_is_variant1
         is_layout = w_is_layout1
         i_save = c_alv_save_cd
         it_toolbar_excluding = t_toolbar_excld1
      CHANGING it_outtab = my_table
        it_fieldcatalog = t_fieldcat1.
    Regards,
    Naimesh Patel

  • An option to be displayed as an disabled on an LOV

    Hello,
    I have a requirement to have two group of options in the same lov
    say for example: The primary languages in the first and the secondary languages in next
    ENGLISH
    GERMAN
    SPANISH
    CHINEESE
    JAPANEESH
    HINDI
    I need to have a separtor line in the display as above, but the same should not be selected (i.e. disabled).
    Can anyone please tell us how this is possible.
    Thanks in advance.
    Nattu

    Hi Nattu
    In the Region Footer setting for the region containing the select list, add in the following:
    &lt;script type="text/javascript"&gt;
    var x = document.getElementById("P1_LANGUAGE");
    var o = x.options;
    for (var k = 0; k &lt; o.length; k++)
      if (o[k].value == '-------------')
        o[k].disabled = true;
    &lt;/script&gt;Change P1_LANGUAGE to the select list's name
    Andy

Maybe you are looking for