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.

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

  • 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

  • How to disable sorting in hash map

    im adding like this ,
    Map Params = new HashMap();
    params.put("orderYear", "1");
    params.put("distrChannel", "2");
    params.put("salesOffice", "3");
    while iterating answer is coming like this
    1
    3
    2
    but i want
    1
    2
    3
    thanks in advance
    gowri

    while iterating answer is coming like this
    1
    3
    2You can print the Sorted HashMap values using the following way:
              HashMap map = new HashMap();
              map.put("1","First");
              map.put("2","Second");
              map.put("3","Third");
              ArrayList keys = new ArrayList();
              keys.addAll(map.keySet());
              Collections.sort(keys);
              Iterator it = keys.iterator();
              while (it.hasNext())
              System.out.println(it.next());
    Refer the outcome keys, and print the HashMap values, thats all.

  • 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 a listItem  in listView Component.

    Hi
    Jdeveloper- 11.1.1.7.0
    In one of my usecase i am using a listview where each listitem contains a "My Component" which has a image link. For few of the values of listitem i want to disable the image link in "My Component". How to disable this link in a component.
    Can anyone help me out.
    Thanks
    Suresh

    Hi,
    like for tables and tree, you cannot suppress the selection state of the component (unless completely disabled) so that your options are
    1) to hide the row that users are not supposed to select
    2) set the select option to "none" so that no row ise selectable. Instead you would use a command component in the list item to perform the action. In this case you can use CSS to indicate "non-functional" items
    Frank

  • How can we disable the a ias-component from backend

    Hi,
    can any one tell how to disable the ias-component from backend? I don't want some components to start during the start of OPMN processes. My OEM page is not accessible to disable the start of the components.
    Thanks and Regards,
    Vijay.

    The preferred way of disabling things is using ASC (application server control/enterprise manager).
    ASC makes a modification to $ORACLE_HOME/opmn/conf/opmn.xml.
    Every component has a tag named "status" which can be set to "disabled":
    <ias-component id="DSA" status="enabled" id-matching="true">
    If you use this method, do not forget to sync your modification with the dcm repository using:
    $ORACLE_HOME/dcm/bin/dcmctl updateconfig

  • How do I sort out 'Apple ID disabled for security reasons' after I had my old Email address and password erased but still showing ?? now I can't access my apple store Apps updates with new email address and password??

    How do I sort out 'Apple ID disabled for security reasons' after I had my old Email address and password erased but still showing ?? now I can't access my apple store Apps updates with new email address and password??

    You might try contacting App Store Support: http://www.apple.com/support/mac/app-store/

  • Help my i pod is disabled it says try in 21 million min how can i sort it out

    help my i pod is disabled it says try in 21 million min how can i sort it out

    Connect the iPod to its syncing computer and restore via iTunes.  If iTunes asks for the passcode and you can't enter the passcode or you do not have the syncing computer, place the iPod in recovery mode and then restore.  For recovery mode see:
    iPhone and iPod touch: Unable to update or restore

  • Sorting arrows how to disable

    Dear All,
    Looking for kind of a non standard solution. I want to disable sorting arrows in column heading in my report. They're placed like so they are taking some extra space according to text and so on I'm not able to see whole report on one screen. There is option to make some extra changes in css. I've tried to put this line: "pointer-events: none". Arrow where not available after that but still some space is taken. So physically buttons are still there. How to disable them.
    Please help !
    Anyone ?
    Edited by: 1002519 on 2013-04-25 07:57

    Thank you for feedback. My version is Oracle Business Intelligence 11.1.1.5.0. I tried to figure it out today but i'm afraid there's no option which allows switching off the sorting option. In my case there is such under the selected column in query in criteria but still when clicking in the place of sort arrows they immediately appear. There is an opportunity to switch the sorting off by using css in column heading options in results view but i don't have any reference to that technique in oracle BI. Hence the problem. If i knew where is the css and the class reference to headings in report.

  • How to disable auto-sort for AdvancedDataGrid

    Hello,
    I am using Flex 4, ActionScript 3.
    I want to disable auto-sort. Meaning I want the sort to be executed only when the user clicks the column header, not when new rows are added to the binded collection or when values are changed.
    So far, I've found only this on the Internet:
    http://]http://tomek.me/disable-sort-on-datagrid-edit-update/
    I'd like to avoid doing that if possible.
    Many months ago, I found a solution that involved using event.preventDefault() placed somewhere. I thought I wouldn't have a problem finding it again, but I am.
    Can someone please help? Thanks!
    Bon :-D

    Hi,
    I have created SSCCE. I do not like that jComboBox spread over the whole display. I would like that the jComboBox width is only about 2 inches (5cm). If you run example below you will see that jComboBox width auto resize.
    Regards,
    Primoz
    import java.awt.*;
    import javax.swing.*;
    public class PrimozComboBox extends JPanel {
        JLabel picture;
        public PrimozComboBox() {
            String[] petStrings = { "Bird", "Cat", "Dog", "Rabbit", "Pig" };
            String[] cityStrings = { "New York", "Ljubljana", "Chicago" };
            JComboBox petList = new JComboBox(petStrings);
            petList.addItem("This is very long pet name, which could spread over many lines");
            add(petList);
            JComboBox cityList = new JComboBox(cityStrings);     
            cityList.addItem("This is very long city name, which could spread over many lines");
            add(cityList);
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("ComboBoxDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            JComponent newContentPane = new PrimozComboBox();
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

  • How to disable end user personalisation for all webdynpro application.

    Dear Experts,
    I have a requirement where I have to disable the end user personalization of each and every
    webdynpro application in my server.
    I know how to disable the personalization of a single application or a single component, but my requirement is to disable the personalization of all applications.
    Request you to please suggest.
    Warm Regards,
    Upendra Agrawal

    Hi,
    As per SAP help,
    Customizing: User-Independent, Client-Wide Modifications
    While a single user u2013 during a personalization process u2013 can manipulate his or her own settings, an administrator has the option of executing Customizing settings for all users. Technically, this procedure is not different from personalization; both take place at runtime of an application. The difference lies in the range of the settings. In addition, for these global settings an application must run in a special administration session. This is always automatically the case if an application was started in the portal in the preview session. Independently of the portal, you can start an application in the following manner from within the workbench in administration mode:
    Double-click the name of the application in the object list.
    In the Web Dynpro Applications menu in the upper, left-hand corner of the Workbench window, choose  Test  Execute in Admin Mode .
    The configuration mode is passed to an application as the sap-config-mode=X URL parameter.
    Note
    All the adjustments made by the administrator in admin mode are stored as client-specific. Presently no option is available for structuring smaller user groups on an administrative basis. Since cross-client adjustment applies to the respective configuration, the structuring of smaller groups can be implemented currently through the maintenance of different configurations.
    End of the note.
    You start personalization by calling up the context menu for the respective UI element in your application. In the corresponding context menu for an administrator (that is, with URL parameter sap-config-mode=X), in addition to the standard settings administrators have the option within a UI element container to sort either single lines (Grid, Matrix aund RowLayout) or single elements (FlowLayout).
    Note
    Administrators require special authorization for client-wide modifications. This can be a developer authorization or the special authorization S_WDR_P13N. You cannot create configurations at design time with this authorization, but you can make modifications at runtime.
    End of the note.
    These modifications are valid for all users but take place in the current client only.
    Thanks,
    Chandra

  • How to disable App Caching in 10.9

    Hi All,
    As much as I think that the new memory management system in OS X 10.9 is a very nice idea, it really doesn't work for me because I have Virtual Machines stopping and starting and the despite the fact that they are only trying to pull 512MB each, the system just can't handle pushing that much to them.
    Is there a way to disable this app/file caching and get back to something more to the style of the old memory management system - I really want to have FREE memory available for when I actually need it - I really don't care if free memory is wasted memory, free memory is what works for me
    I have a Mid 2009 13" MBP with a 2.2Ghz Intel Core 2 Duo with 8GB of RAM
    Any help would be greatly appreciated, I can't bear my system grinding to a halt with several servers running in the background - the sort of thing that it could handle just fine under 10.8 - also, downgrading is not an option for me!

    leroydouglas wrote:
    Does this address your issue.
    http://www.cnet.com/how-to/how-to-disable-app-nap-in-os-x-mavericks/
    Unfortunately, no - App Nap only applies to running applications, and saving processing power and thus energy, whereas the app preloading is all about being clever about which files are in use and keeping as many as possible crammed into the memory.
    However, disabling app nap is a useful thing to know, thanks!

  • What's wrong with the IOS5 download, it downloads and then after its finished it says server timed out, how do i sort this out

    What's wrong with the IOS5 download, it downloads and then after its finished it says server timed out, how do i sort this out?

    The Firefox versions which come with many Linux distros have the default Mozilla Firefox updater disabled and use the distros built-in updater.
    See this - http://linuxforums.org.uk/netbooks/install-firefox-6-on-an-acer-aspire-one-running-linpus-lite-linux/

  • How to disable generic alv buttons in CL_SALV_TABLE?

    I am needing to disable individually the generic alv buttons in CL_SALV_TABLE. 
    I see how to disable buttons by group.  eg-
         lr_functions->set_group_export( abap_false ).
         lr_functions->set_group_filter( abap_false ).
         lr_functions->set_group_sort( abap_false ).
         etc....
    However, I cannot find source  codes to disable individual buttons.  Is it possible to do this?...   and if so would appreciate an example coding.
    Best Regards,
    Dean Atteberry.

    There are method available in the class CL_SALV_FUNCTIONS_LIST which can be helpful to active / deactive certain button.
    Like: To remove the SORT Ascending button:
      data: lr_functions type ref to cl_salv_functions_list.
      lr_functions = gr_table->get_functions( ).
      lr_functions->SET_SORT_ASC( ).
    Regards,
    Naimesh Patel

Maybe you are looking for