How to reset the sort criteria on a sortable table?

Hi all,
How can I reset the sort criteria on a sortable table?
Regards

Hi,
Did you try with <af:resetActionListener> or refresh table in Bean using button make sure partialSubmit true for Button and use following code
acesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
adfFacesContext.addPartialTargets(UIForTable);Check following
http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_resetActionListener.html
http://www.adftips.com/2010/10/adf-ui-resetting-or-clearing-form.html

Similar Messages

  • ADF FACES: how to preserve the sort criteria for an af:table

    How can I preserve the sort criteria on an af:table across page invocations? I've searched all through the forum and I don't see anything on this topic.
    I simply want the sort criteria (from when the user clicks on a column header) to be remembered across multiple uses of the page. I know that the control handles this itself for multiple invocations of the same page (like when you page through the table). But I need to preserve the sort order so I can install it again when someone leaves the page and then returns to it.
    I've tried various attempts using a SortListener to record the sort criteria, but I can't figure out how to reinstall the criteria without generating exceptions from the table control.
    Any pointers on how to do this would be greatly appreciated.
    Thanks.
    Larry.

    Ok, I've solved the problems with the odd behavior by always creating a new model when the table data changes and copying the sort criteria into the new model, like this:
            // Construct our own CollectionModel from this result set
            if(_model == null) {
                // Construct the initial data model and set the starting sort criteria
                ListDataModel m = new ListDataModel(results);
                _model = new SortableModel(m);
                // Set the sort criteria to last name
                ArrayList criteria = new ArrayList();
                criteria.add(new SortCriterion("lastName", true));
                _model.setSortCriteria(criteria);
            } else {
                // Construct a new model so the table "sees" the change
                ListDataModel m = new ListDataModel(results);
                SortableModel sm = new SortableModel(m);
                sm.setSortCriteria(_model.getSortCriteria());
                _model = sm;
            }But, I end up with one final thing that doesn't work. In the "then" clause above, I try to set the initial sort criteria for the table - it has no effect. When the table is rendered, it is not sorted in any way.
    How can I specify an initial sort order for the table? Why is it ignoring the sort criteria on the model?
    Thanks.

  • How to modify the sort criteria for a Metadata Search

    I am migrating from Stellent 7.1 to UCM 10gR3 and have found a difference in the sorting of the output from a search of data/metadata copied from the old version. For the search, I have selected a specific Account with Results Per Page = 2000, Sort By = Title and Ascending set on both the 7.1 and the 10gR3 instances. In the 7.1 instance, the results are sorted by number, then A-Z with no emphasis on case. For the search on the 10gR3 instance, the results are sorted by leading spaces, numbers, capital letters (case), then A-Z.
    Example:
    7.1 Search Results:
    4-up Template
    Active Directory Plan
    ASGV Document
    List of Tools (ignores the space at beginning)
    Zforms
    10gR3 Search Results:
    List of Tools (sees the space at beginning)
    4-up Template
    ASGV Document (lists this before "Active" because it is in all caps)
    Active Directory Plan
    Zforms
    Is there a setting that will allow me to change the 10gR3 instance to match the 7.1 instance?
    Thanks.

    Hi,
    Did you try with <af:resetActionListener> or refresh table in Bean using button make sure partialSubmit true for Button and use following code
    acesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
    adfFacesContext.addPartialTargets(UIForTable);Check following
    http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_resetActionListener.html
    http://www.adftips.com/2010/10/adf-ui-resetting-or-clearing-form.html

  • ALV .  How to remove the sort buttons on toolbar in ALV report?

    Hi,experts
      As you know, in default case , the alv report will display two sort buttons(ascending ,descending) on its toolbar , So How to remove the sort buttons on toolbar in ALV report?
      Thanks for your help .

    Hi guixin,
    1. Before calling REUSE_ALV_LIST_DISPLAY
    2. Write this code :
    data : excl type SLIS_T_EXTAB.
    data : exclwa type SLIS_EXTAB.
    exclwa = '&OUP'.
    append exclwa to excl.
    exclwa = '&ODN'.
    append exclwa to excl.
    3. Then while calling the FM,
       pass this parameter also .
    IT_EXCLUDING     = excl
    It will work fantastic.
    regards,
    amit m.

  • The HP C4480 all in one series PRINTER that I got free with my i-Mac is printing TINY print despite that my computer is set at 13 font Helvetica. How to reset the printer to normal print?

    The HP C4480 all in one series PRINTER that I got free with my i-Mac is printing TINY print despite that my computer is set at 13 font Helvetica. How to reset the printer to normal print?

    Is the Paper Size: set to US Letter and Scale: set to 100%
    Dennis

  • Does anyone know how to reset the fan on a MacBook Pro 13-inch (Late 2011) to it's factory setting speed (Maybe Terminal may help?)

    I have a late-2011 13-inch MacBook Pro running OS X Yosemite. (Standard configuration).
    My problem is that I downloaded a fan control application and it worked perfectly, but it started to get annoying so I deleted it.
    Does anyone know how to reset the fan speed back to factory settings (Maybe a command in terminal?)

    Hello damo1177,
    It should help to reset your system's SMC and NVRAM.
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/HT3964
    About NVRAM and PRAM
    http://support.apple.com/kb/HT1379
    Cheers,
    Allen

  • How to display the sort value in the selection screen in the report title

    Dear All,
    How to display the sort value in the selection screen in the report title? I have selected a value in the selection screen for sorting , but i need that values by which i have sorted with in the report title. Can you please throw some light on this!!
    Good day,
    Thanks and regards
    Arun S

    Hi Arun,
    Try this.
    1, Set one dynamic parameter,
    2, Drag and drop that parameter into  your report title.
    3, Pass the value(sort value) dynamically from your application,
    4, Cheers..
    Other wise Try with Dataset, create a dataset and fill thev alue into that.. Then  set the data source from CR designer. and darg and drop that data column into the report.
    Hope this will work,
    Regards,
    Salah
    Edited by: salahudheen muhammed on Mar 25, 2009 11:13 AM

  • How to remove the sort function on the drill down and then save

    how to remove the sort function on the drill down and then save in the  change local view of the Query
    Is it possible to change the porperties of any characteristic in the local view and then save?
    If so please post the answer.

    I do not think that option is possible.
    Regards,
    Venkata Boga.

  • How to reset the password in macbook Pro? This is not related to apple id

    Hi,
    I gave my macbook pro for service. Initially there was no password set up in the system. However the service guys have put some password to install the applications. (This is not related to apple id and apple store apps). Can you please help how to reset the password?
    Regards,
    Arjun K M

    Welcome to Apple Support Communities
    As you have OS X Mountain Lion, try resetting the password from Recovery > http://discussions.apple.com/docs/DOC-4101
    It looks like OS X was reinstalled. After resetting the password, you will be able to log in and use your MacBook Pro

  • How to reset the iPad - the Location Services doesn't seem to work?

    How to reset the iPad - the Location Services doesn't seem to work?
    I can not get NFL Game Pass or Siri to work???

    Well you can plug it into itunes and under summary tab hit RESTORE. This should fix any software issues that you may be experiencing. About gamepass, I dont know, I dont have it. Siri is not on the IPAD2. Only on the 3rd generation Ipad, so you wont have it(going by ipad2 under your name).

  • How to Reset the EIM \ CIM System "sa" Password Procedure

    All.
    I have posted a document, "How to Reset the EIM \ CIM System "sa" Password Procedure" on this CSC site to assist you w\ the EIM "sa"user password reset procedure.
    I am also posting the procedure and word document attachment here.
    Let me know how helpful the procedure is.
    Bernard
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:10.0pt;
    font-family:"Times New Roman";
    mso-ansi-language:#0400;
    mso-fareast-language:#0400;
    mso-bidi-language:#0400;}
    Resetting The CIM \ EIM System “sa” Password Procedure
    Key: ‘ ‘ = Two single quotes.
    The following contain the query for blanking out the SA password for Partition 0 thru the backend.
    1. Go to SQL Server Management Studio and change the database to master database. USE “eGMasterDB”
    2. a. To verify user_name, and select user_id“save the results for backup.
        b. “SELECT user_id, user_name, password, case_insensitive_password FROM egpl_user WHERE user_id = 1”.
    Note: Be sure to save query and results, so that it can be provided for troubleshooting, if there is a problem.
    3. a. For Blanking out the SA password. UPDATE egpl_user WITH (ROWLOCK) SET password = ‘ ‘, case_insensitive_password = ‘ ‘ WHERE user_id = 1
    4. Verify the PW columns are now clear, by re-running the select cmd. “SELECT user_id, user_name, password, case_insensitive_password FROM egpl_user WHERE user_id = 1”.
    Then to successfully access and change CIM \ EIM “sa” User Account. (Partition 0)
    4. Go to login.  //<EIM server ip address>/system/
    5. Login with “sa” as the user name, no password.
    6. Navigate to Administration > Partition: System > Users, and highlight sa user under “List: Users”.
    7. Highlight the “Password” row, on the “General” tab, under “Properties: sa”.
    8. Select the box to the right of row and it will ask if you want to change the password.
    9. Select yes, enter new password.
    10. Save.

    It's great to have these types of procedures published on CSC!  Thanks, Bernard!
    -Paulo

  • How to reset the response status and response header

    Dear Masters
    Actually we are using NTLM Authentication process to get the system login id for our web application. The problem which I am getting is after running the NTLM Authentication Code I am not able to call the action class. It is telling 400 Server error bad request. I am using Struts Dispatch Action Class. In Dispatch Action I will be passing a name (eg. method) as a parameter in struts-config.xml file and using that parameter I will be calling the respective method in the Action class. The problem which I am facing is after running the authentication code I am not able to fire the action class. It is telling the error in the console as "parameter named method is not found". Actually in NTLM Authentication code they are setiing the response status to www-authenticate,NTLM. If I reset the response status back to the normal form I think i will be able to fire the action class. Please give me a suggestion on how to reset the response status and response header back to the normal form. Any solution to this is appreciated. Please respond your reply as soon as possible. Thanks in advance.
    Regards
    Ramesh

    Hi,
    I think, a servlet filter is what you need. Please check the following URLs on how to go about creating a filter.
    http://dev2dev.bea.com/pub/a/2005/05/decorators.html
    http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html
    http://www.onjava.com/pub/a/onjava/2004/03/03/filters.html?page=1
    Cheers,
    vidyut

  • How to get the sorted Groups in Adminstration Portal

    after adding a Child Group to the parent Group the Child Groups are not sorted.So
    how to get the sorted list when any child group is added to a parent group.In
    which class we have to make the changes to get the sorted group.

    Hi  Manorama,
    1) If you have already created a portal system as mentioned in following blog
                  /people/marcel.salein/blog/2007/03/14/how-to-create-a-portal-system-for-using-it-in-visual-composer
    2) If not, then try to create the same. Do not forgot to give the Alias name .
    3) After creating a system, log on to the VC, Create one iView.
    4) Now Click on "Find Data" button from the list which you can view in right side to Visual composer screen.
    5) After clicking on "Find Data" button, it will ask for System. If you have created your system correctly and Alias name is given properly, then your mentioned Alias name is appeared in that list.
    6) Select your system Alias name and perform search.
    7) It will display all the BAPIs and RFCs in your systems.
    8) Select required BAPI and develop the VC application.
    Please let me know if you any further problems.
    Thanks,
    Prashant
    Do reward points for useful answers.

  • How to reset the military usage value in GTS Business partner

    Hello Experts,
    Does anyone know how to reset the Military usage value='2' to blank on the Business partner within GTS?
    I tried putting a blank there, clicking on the accept entries button followed by  saving the Business partner.
    It does not seem to work this way.
    Does anyone know if it's SAP bug for not having blank as one of the allowable values for the usage except when it's that way while newly created?
    The GTS implementation details are as follows:
    Any help with regard to this will be much appreciated......
    Thanks,
    Prashant.

    Prashant,
    As I already informed you, it is not possible to re-set the indicator to <blank>.
    From the program code, I can see that the usage indicator is only transferred from the feeder system during the creation of a customer partner.  The value in GTS is set either to '1' or '2' during creation, and cannot be changed by any subsequent data transfer from the feeder system.
    I think that logic is related to the fact that usage records may be created for multiple Legal Regulations, and those records may then be changed individually by the user in GTS.  On that basis, it would not be reasonable to over-write the values by re-transferring the customer from the feeder system.
    Regards,
    Dave

  • HT2470 Why does this not explain how to change the sort order?

    Why does this (i.e. support at Apple.com) not explain how to change the sort order? I can "arrange" by Date Modified for example but it won't let me switch to use most recent dates first. Also, what is Apple-speak for arrange versus sort anyway? It seems I used to be able to click on a column heading in finder and get a drop down arrow allowing me to change the sort sequence.

    Arrange roughly translates to "group the items in the folder." Sort is how each group is ordered. If you have arrange set to none, you can sort by anything. However, there is no way in the Arrange/Sort menu to choose the direction. The only way to do that is in the List View, and you must have Arrangement set to None.
    I've submitted an Enhancement Request to allow choosing sort direction from the Arrange/Sort menu, but I haven't ever gotten a response, which is good and bad. Good because they will often respond that they have considered it and don't plan on implementing. Bad in that they've haven't implemented it.

Maybe you are looking for

  • Sick iMac - Help needed!

    _My set-up:_ 24" iMac 2.8GHz, 4GB RAM, 320GB hard drive 15.4" MacBook Pro, 2.4GHz, 4GB RAM, 200GB hard drive Airport Extreme 802.11n AppleCare _The problems:_ 1) My iMac will routinely, more often than not, have extremely slow connection speeds to th

  • How to open dat file in labview

    how to open dat file in labview.???how to make use of biomedical startup kit for doing so???

  • Photoshop open multiple image and add different texts

    Hi All, Hope you are all doing great. I just started doing photoshop scripting due to the requirement which I will mention in detail below. My scripting is knowledge is very basic so I was hoping you guys could be able to help me out with this. The r

  • [SOLVED] UEFI installation - booting failure

    Hi All, Setting in BIOS: UEFI boot mode, Secure Boot Off Booting from USB in UEFI mode, everything is OK. Then I did this: gdisk /dev/sda create new GPT partition cgdisk /dev/sda Part. # Size Partition Type Partition Name 1007.0 KiB free space 1 512

  • JTable cell

    How do you set a cell in a Jtable to non-editable i.e. when a user double clicks on the cell, no cursor appears???