Inserted rows are not sorted in ascending order

Hi,
in my code when i click on a button (UpdateSchedule) certain rows are displayed in the result table. My problem is the displayed data is not in ascending order I know by keeping sort enable on a particular field we can sort the data as req. But the first time the result which is displayed is not an ascending order , i want to tackle this issue.
As whatever rows are displayed are not yet committed in database so modifying the query using order by clause also wont solve the issue . This data gets committed on a click of another button(ok).Can this be tackle programmatically ?
I hope i have given proper elaboration of the issue.
Regards,
Anant.

Reading this from Javadoc and understanding your requirement makes me feel that achieving it would not be easy, or may not be possible at all unless FWK provides some override to these rules.
Restrictions & limitations:
Sorting is performed by requerying the database.
May not work well with view objects (VOs) that contain custom 'expert-mode' SQL. Basically the VO.setOrderByClause() is invoked on the VO using the column name associated with this web bean. An alternative for 'expert-mode' SQL may involve overriding the view object setOrderByClause() and performing custom logic. Note: The orderByParameter will be the column name plus either " desc" or " asc".
Will not work with view objects that contain the view attribute expression "See the SQL...". To sort on these view attributes, modify the VO XML directly and change the view atttribute expression to the SQL column name.
Sorting is not allowed for tables that allow inserts.
Sorting is not supported for tables containing updateable columns (unless the updateable columns are mapped to transient VO columns.) No exception is thrown if the table contains updateable columns, since there may be a rare case when it makes sense, for example a table where the contents fit on one page.
Modified transient columns will be reset. This is normal and expected behavior.
Sorting is not supported on the 'Select' column - this is the first column of a table when it contains a checkbox or radio button.
The table bean will invoke the following two methods on the view object to perform sorting. Debugging can be performed by setting a break on these methods on the VO (or a superclass of the VO.)
viewObject.setOrderByClause(orderByClause);
viewObject.executeQuery();
Thanks
Tapash

Similar Messages

  • Verifier Error: Exception handlers not sorted in ascending order by the off

    Hello,
    Java Card 2.2 did not convert my Applet !
    Java Card 2.2.1 & 2.1.2 do not report this Error and the Applet is working !
    What's wrong here ?
    D:\save\smsTest>C:\Programme\Java\jdk1.5.0_06\bin\java -classpath D:\java_card_kit-2_2\lib\converter.jar;D:\java_card_kit-2_2\lib\offcardverifier.jar com.sun.javacard.converter.Converter -config SMS_JCDK_2_2.opt
    Java Card 2.2 Class File Converter (version 1.3)
    Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
    warning: You did not supply export file for the previous minor version of the package
    parsing D:\save\smsTest\com\gieseckedevrient\jctt\smsTest\IExceptionConstants.class
    parsing D:\save\smsTest\com\gieseckedevrient\jctt\smsTest\ITestConsts.class
    parsing D:\save\smsTest\com\gieseckedevrient\jctt\smsTest\InfoData.class
    parsing D:\save\smsTest\com\gieseckedevrient\jctt\smsTest\SMS.class
    parsing D:\save\smsTest\com\gieseckedevrient\jctt\smsTest\StringConsts.class
    converting com.gieseckedevrient.jctt.smsTest.IExceptionConstants
    converting com.gieseckedevrient.jctt.smsTest.ITestConsts
    converting com.gieseckedevrient.jctt.smsTest.InfoData
    parsing D:\java_card_kit-2_2\api_export_files\java\lang\javacard\lang.exp
    converting com.gieseckedevrient.jctt.smsTest.SMS
    parsing D:\java_card_kit-2_2\api_export_files\javacard\framework\javacard\framework.exp
    parsing U:\_Tools\java\43019-560\Annex_B_Export_Files\sim\toolkit\javacard\toolkit.exp
    converting com.gieseckedevrient.jctt.smsTest.StringConsts
    writing D:\save\smsTest\com\gieseckedevrient\jctt\smsTest\javacard\smsTest.exp
    writing D:\save\smsTest\com\gieseckedevrient\jctt\smsTest\javacard\smsTest.jca
    Verifier Error: Exception handlers not sorted in ascending order by the offset of the handler
    Verification failed

    Hello again,
    it seams this error only occurs when using javac from JDK 1.5/1.6 (1.4 not tested).
    When I us jdk1.3.1_11 to compile the java sources this error never occurs during conversion !

  • I just upgraded to iPhoto 11. My events are not sorted in date order even though I have chose it to under the view tab????

    I cannot get my photos in date order in iPhoto 11 What can I do to remedie this?

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • The formula field is not sorting both ascending and descending

    Dear All,
                   I am designing scoreboard the net amount contains the formula field, i sorted with asceding order by using sort,but it is not sorted both ascending or descending ,
                  Suppose if i used to sort the database field it is sorted properly  so any one help me very urgent
    Regards
    Selva.D
    Edited by: Rui Pereira on Aug 8, 2008 11:32 AM

    Dear Suda,
                     The scoreboard i designed via query print layout. So i calculated  by using formula field ie totalsales- sales return for that i used formula and i follow the below steps
    Choose repetitive area -
    > Right mouse click---> sort
    in the sorting i choose the formula uinque id and i choose Ascending then summary, after i click ok
    Suggest me the solution
    Regards
    Selva.D
    Edited by: Rui Pereira on Jul 8, 2008 5:18 PM

  • I'm on a windows laptop using iTunes sharing through the family to connect with Apple TV. After choosing the folder of photos to be shared and displayed on the appletv and when I choose to show on screen, they are not shown in the order they are in the or

    I'm on a windows laptop using iTunes sharing through the family to connect with Apple TV.
    After choosing the folder of photos to be shared and displayed on the appletv and when I choose to show on screen, they are not shown in the order they are in the original folder.
    How to pair show in a certain order, for example, sorted by name.
    grateful
    Julio Cesar

    Not that I'm aware of. You just export JPEG copies to a folder that you can point iTunes to. For instance, I have created a folder in my Pictures folder called Apple TV. And within that folder I have other folders of pictures that I can choose from in iTunes to share with Apple TV. But there doesn't seem to be any way to share a Lightroom slideshow. If you have laid to create a video file that would probably work. Apple TV is a little clunky in my opinion. Some things are a little more difficult to do now than they were a while back. I probably haven't provided you with much help, but just keep experimenting and I think you will figure it out.

  • In my library, under the Artist column only...items are not listed in alpha order.  How can I get that to happen?

    In my library, under the Artist column only...items are not listed in alpha order.  How can I get that to happen?

    Same deal as your other thread but with Artist/Sort Artist:
    https://discussions.apple.com/message/25561674#25561674
    For more info. on how iTunes organizes things see Grouping tracks into albums.
    tt2

  • Rules in Outlook are not processed in the order listed

    I have created a new rule today to filter out all email that is not directly sent to me to a folder called "process later" hanging off "Inbox"
    Problem is, even thou it is the last rule created, and appears to be at the bottom of the list, this seems to be the first rule that is executed.
    In order to fix, I need to go into "process later" folder and run all rules on it.
    Is there a way to fix this, w/o trying to re-create all the rules (I have like 40-50).

    I have same issue where rules are not processed in the order they are written.  All rules are "Client Only".  I sort email based on the information contained in the subject line.  Some should get filed into sub folders, some in the
    parent.  So,  I have a folder called QA and a sub-folder called QA-Project 1.
    #1 rule -- processes subject line looking for QA-Project 1 and puts it in QA-Project 1 folder
    #2 rule -- processes subject line looking only QA and puts it in QA folder
    Problem is when I run both these rules,  the email with subject "QA-Project 1" ends up in the QA folder and not the QA-Project 1 Folder.  So the rules are not processing sequentially.  Please help. 

  • Partner determination functions are not determine in sales order

    Dear Sap Gurus,
    I have made a new partner function (P2) and have been configure it in partner determination procedure, although i hv made new customer master for the same account group. All th partner function are showing in the customer master data but these are not determine in sales order, one error is coming...this partner procedure is not defined.......kindly give me advide how to resolve this problem.
    Regards
    Parul Deshwal

    Hi
    Have you assigned the Partner determination procedure to your sales document type?
    Also have you assigned the Partner function to your Partner determination procedure.
    Also do the same to the sales order item partner determination
    regards
    Prashanth

  • Some photos are not sorted correctly by date

    I just imported some photos from my friends camera who were on the same trip. However, I noticed that a couple (not all) of his photos are not sorted correctly by date in the Event. A photo from day 3 somehow comes before the photos from day 2. I checked the extended information and the dates on the photo are correct. Has anyone had this problem and know of a solution? Thanks.

    It might be of some help to delete the photo cache. Please see this link - http://support.apple.com/kb/TS1314

  • HT4221 Lightroom 3 Win 7- iPad 3 iOS 5.1.1 - images are not sorted by file name in albums

    photos are not sorted properly. thougts? suggestions?
    20050518 - 18.12.05 - 0001.jpg
    20050518 - 18.52.24 - 0002.jpg

    I found that mobile data stopped working on my iPad once upgraded to IOS 5.1. I have resolved the problem by re-applying the settings in Settings > Cellular Data > APN Settings which had (very bizarrely) been over-written as a result of the upgrade process.
    Clearly your APN settings will be specific to your data plan, but if you contact your contract provider, they should be able to tell you what they are.
    Hope this helps.

  • I transferred my iPhoto FACES to my mini iPad and: (a) they are not in the alphabetical order I had them in, (b) some of the FACES have been deleted, (c) the EVENTS I checked off in iTunes do not all appear in the iPad?

    I transferred my iPhoto FACES to my mini iPad and: (a) they are not in the alphabetical order I had them in, (b) some of the FACES have been deleted, (c) the EVENTS I checked off in iTunes do not all appear in the iPad?

    Go to your Pictures Folder and find the iPhoto Library there.
    Right (or Control-) Click on the icon and select 'Show Package Contents'. A Finder window will open with the Library exposed.
    Look there for the iPod Photo Cache. Trash it. Start iPhoto and try sync again.
    Regards
    TD

  • When I sort bookmarks in "organize bookmarks" they are not sorted under the bookmarks pulldown menu. Latest additions are not integrated into the sort

    When I sort bookmarks in "Organize Bookmarks" they are not sorted under the pulldown menu on a regular page. Recently added bookmarks are not inegrated into to sorting.

    See this:
    [https://support.mozilla.com/en-US/kb/Sorting+bookmarks#Sorting_by_name]

  • Scheduling parameters are not defined for production orders

    Hi All,
             when i convert the planned order to production order  i got this massage popup coming  Scheduling parameters are not defined for production orders . please let me know this .

    Hi,
    One of major customization steps for the order type is missing. Run OPU3 and maintain settings for the order type you are using. You may copy settings from an older type.
    Regards.

  • My photos from camera row are not going all to photostream in any device, iphone 4s and ipad mini What can I do, please.

    My photos from camera row are not going all to photostream in any device, iphone 4s and ipad mini What can I do, please.
    Both devices have the Icloud on.

    Try this on All Devices...
    Close All Open Apps...  Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430

  • TS2512 i m trying to convert dpx files to mov in colour 1.5.3 but in file browser files are not seen in proper order for ex files names are 12345 it is coming as 23145 bcoz of which in output also its coming in wrong order

    i m trying to convert dpx files to mov in colour 1.5.3 but in file browser files are not seen in proper order for ex files names are 12345 it is coming as 23145 bcoz of which in output also its coming in wrong order

    1) What you downloaded should be a packed file (zip, tar.gz, etc) that needs to be unpacked into the directory of your choice.
    2) & 3) are answered by Ant's installation documentation (the page you're quoting from):
    http://ant.apache.org/manual/index.html

Maybe you are looking for

  • Can't playback on Blackmagic Decklink HD extreme 2

    Hi all, I am looking to crossgrade from FCP7 to Premiere CS6 so I have the Master Collection Demo installed on my work station along with FCP. It's on a 2008 Mac Pro with 2 Quad core 3.2G Intel Xeons, 16GB ram, ATi 2600 HD 250mb graphics and a Blackm

  • PowerShell 2.0 - When to use SqlServer Snap-In

    Hello there, Just started learning about sending Sql Server command through PowerShell. I understand that we can use .Net objects like SQLConnection, SqlCommand (just like we do in C#) to send the CRUD request to Sql Server database (as $sqlcmd = New

  • [SOLVED] enlightenment17 fails on enlightenment_start

    Hi all, recently did a system update; among other things e17 was upgraded (to 0.17.0-1) but also several other things. ~/.xinitrc exec enlightenment_start doing startx starts X, then attempts to start enlightenment, then X fails: /usr/bin/enlightenme

  • Getting error during validating in struts

    Any one can help me, Iam getting this type of problem am using validate method of ActionForm to validate my form i am getting the folowing error after submit this my code and error protected boolean isEmpty(String data)           boolean flag=true;  

  • Flex2 CompilerException: Encountered invalid display object Window :

    Hello, I'm using VC 7.0 with SPS 14 and the new Flex 2 runtime. When I deploy an existing Flex VC 7.0 model with the new runtime I get the following Flex Compiler exception: Flex2Compiler.Compile: FlexCompilerException: Encountered invalid display ob