Help Urgent! RowIterator retrieval doesn't respect the order by clause.

Hi,
Jdev 10.2.2
I'm using the RowIterator (source iterator) through a defined association to create rows in a destination RowIterator.
The creation of those rows must respect the order clause defined for the ViewObject => source Iterator.
I noticed that when I retrieve the rows through the RowIterator, the order clause is not respected?
Example of implementation:
Pre-defined weight levels for a postal tariff:
Product A:
From weight To weight
0 - 10
10 - 20
The user will have enter a price for each level.
I pre-create those rows so that only the price will have to be entered.
As you see the order of display/creation is important.
I there a way to make the RowIterator respect the Order Clause defined for the ViewObject?
I am a bit worried, please tell it's not the default behaviour!
Thanks
Frederic
For info my code:
RowIterator deliveryWeightIt = weightGroupImpl.getDeliveryWeightAssoc(); // source rows
if (deliveryWeightIt == null)
throw new JboException(getClass().getName()+".setWeightGroupId Detail row generation,. System error. DeliveryWeightAssoc is null.");
deliveryWeightIt.first();
Row currentDeliveryRow = deliveryWeightIt.getCurrentRow();
Row newPostalDetail = null;
try
while (currentDeliveryRow != null)
newPostalDetail = postalDetailIt.createRow();
SequenceImpl s = new SequenceImpl("SITE_POSTAL_REL_SEQ", getDBTransaction());
Number newSeq = s.getSequenceNumber();
System.out.println("numberOfGeneratedRows: "+numberOfGeneratedRows+", newSeq: "+newSeq+", FROMWEIGHT: "+currentDeliveryRow.getAttribute(DeliveryWeightImpl.FROMWEIGHT)); newPostalDetail.setAttribute(PostalDetailImpl.FROMWEIGHT,currentDeliveryRow.getAttribute(DeliveryWeightImpl.FROMWEIGHT));
newPostalDetail.setAttribute(PostalDetailImpl.TOWEIGHT,currentDeliveryRow.getAttribute(DeliveryWeightImpl.TOWEIGHT));
postalDetailIt.insertRow(newPostalDetail);
numberOfGeneratedRows++;
currentDeliveryRow = deliveryWeightIt.next();

Ok I think I found my mystake.
I was using the entity association instead of using a view link.
I avoid using links because I encountered Class Cast exception => similar to thread 10.1.2: view Link accessors in entity object return ViewRow ??????
Will there be patch available soon?
Regards
Frederic

Similar Messages

  • Please help URGENT : Chinese handwriting doesn't seem to work on Lion OSX. the handwriting trackpad appears but anything i write in Chinese doesn't appear in word, chrome,..... HELP PLEASE

    please help URGENT : Chinese handwriting doesn't seem to work on Lion OSX. the handwriting trackpad appears but anything i write in Chinese doesn't appear in word, chrome,..... HELP PLEASE
    And in system prefs/language and text/input languages, simplified chinese and traditional chinese are ticked as usual with handwriting options on !!!!

    Please search the forum for "chinese" to find the many other earlier posts about your issue, like
    https://discussions.apple.com/message/15746805#15746805

  • Help- Flex Start Page doesn't open the Start Page

    Help -> Flex Start Page doesn't open the Start Page.
    I see multiple bug entries regarding this resolved, but no description of what I can do to fix it.
    I'm running Flex Builder Professional on Windows XP

    I've heard this can be caused in IE when the pop-up blocker is enabled. Disable it so pop-ups are allowed, and the Flex Start Page may load.
    If this post answers your question or helps, please mark it as such.

  • [svn:osmf:] 11877: Fix bug FM-194: Calling seek consecutively doesn' t respect the last seek.

    Revision: 11877
    Revision: 11877
    Author:   [email protected]
    Date:     2009-11-16 17:21:29 -0800 (Mon, 16 Nov 2009)
    Log Message:
    Fix bug FM-194: Calling seek consecutively doesn't respect the last seek.  The fix is to let each subsequent seek through (previously we blocked a seek attempt if another seek attempt was underway).  Update base unit tests.  Modify ExamplePlayer's scrub bar to seek while you scrub, this is a good way to demo/test this behavior.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-194
    Modified Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/view/MainWindow.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/NetStreamSeekableTrait.as
        osmf/trunk/framework/MediaFramework/org/osmf/traits/ISeekable.as
        osmf/trunk/framework/MediaFramework/org/osmf/traits/SeekableTrait.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/traits/TestISeekable.as

  • Error : The ORDER BY clause is invalid in views, inline functions, derived

    Hi All,
    I am on 11g 6.2, Windows Server 2008, my db SQL server 2008, I am facing the error for the reports in which I am trying to edit one the column formula and do something like 'abc/sum(abc)*100'.
    10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 16001] ODBC error state: 37000 code: 8180 message: [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared.. [nQSError: 16001] ODBC error state: 37000 code: 1033 message: [Microsoft][ODBC SQL Server Driver][SQL Server]The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified.. [nQSError: 16002] Cannot obtain number of columns for the query result. (HY000)
    One of the solutions to this which I have found is to edit the EXPRESSION_IN_ORDERBY_SUPPORTED feature in the db properties.
    I want to know what does EXPRESSION_IN_ORDERBY_SUPPORTED means?
    When I create a calculations in 11g like abc/sum(abc) in the column formula for a column then i get this error.
    What does this error mean? Does OBIEE 11g doesn't support using these expressions in the report and the fact that it applies the order by clause to the reports, the report fail?
    Could anybody please explain the issue. There is very limited information on this over the web.
    Thanks in advance.
    Ronny

    Thanks svee for the quick response, actually i had resolved the issue by unchecking the EXPRESSION_IN_ORDERBY_SUPPORTED option in the database. I want to understand how does that makes the difference?
    What does EXPRESSION_IN_ORDERBY_SUPPORTED mean? Does it mean that if I give any expression in my answers report and since obiee uses a order by for all the queries, the expression won't be supported?
    Please explain.

  • The ORDER BY clause is invalid in views, inline functions, derived tables..

    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 16001] ODBC error state: 37000 code: 8180 message: [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared.. [nQSError: 16001] ODBC error state: 37000 code: 1033 message: [Microsoft][ODBC SQL Server Driver][SQL Server]The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified.. [nQSError: 16002] Cannot obtain number of columns for the query result. (HY000)
    I have already tried to follow this thread below, but no change.
    HI
    In this specific report ran above the offending sql uses a CTE.
    I am on 11.1.1.6.1, Windows Server 2008
    Currently in testing phase in migration from 10g.
    I know what the error means, just not how to resolve it or what setting may be causing this.

    In Physical layer, go to specific database(Physical layer's) properties, database features tab -> Un check the EXPRESSION_IN_ORDERBY_SUPPORTED.
    For that failed report, go to Answers-> advance tab-> Look for 'Advanced SQL Clauses'
    Check this box to issue an explicit Select Distinct
    Let me know updates
    If helps Pls mark correct or helpful

  • How to change the order by clause of a standard VO in OAF

    Hi All,
          I need to change only the order by clause of a standard VO (Which is attached to a messageChoice item).
    Steps followed:
    1)Created a custom VO by extending the standard VO .
    2)VO Impl class files are not generated as seeded VO has no such class files.
    3)Created a substitution
    4)Imported it
    5)When I try access the specific page, getting Sys Admin error without any clue about the error.
    Even I tried to create the custom VO without extending the std VO ,
    Still getting the same error .
    Please provide your suggestions on this.
    Thanks,
    Thavam

    When I set the FND:Diagnostics profile option , I could see what was the exact error . It was SQL Wrapper exception error.
    The VO which is extended , has a dynamic where clause with bind variables. The binding style of the extended VO does not match with seeded VO. It works when the binding style is changed.
    Thanks,
    Thavam

  • Help - My main computer doesn't create the "Creative Cloud files" folder

    My Imac (OsX 10.9.4) doesn't create the folder "CCF" .
    I pick time after time the "star synchronization" bottom, then start the wheel to run but nothing really happens in the end.
    However, I could create the folder without problems in my laptop, same OS.
    How could I solve this problem?
    Thanks!

    Hi,
    This looks like Creative Cloud is unable to create the Creative Cloud folder is your user home folder, are you certain that this location is 100% writable? there are no permissions stopping programs writing to this location?, its unusual that your Creative Cloud folder is missing, you must have manually moved or deleted it.
    Thanks
    Warner

  • Help!  My iMac doesn't see the hard disk!

    My old, reliable iMac (the old sunflower flat panel) suddenly froze up and when I did a hard break and restarted it, the dreaded folder with a question mark appeared.
    I tried starting it from an installation disk--which it did with no problems except it still didn't see the hard disk. I tried inserting the Apple Hardware Test disk, which worked. I ran it and it said everything was OK, but when I hit the Restart button it still didn't see my hard drive.
    I'm at my wit's end because, being a freelancer, I have a lot of important information on my iMac, which I stupidly haven't backed up for a long time. I have a little hope because the Apple Hardware Test ran and didn't find any problems (the Mass Storage test passed, which I'm assuming is the hard disk?).
    PLEASE! Can anyone help me? My main objective is to get my data off of the disk and onto either my PowerBook or my external USB hard drive.
    Thanks for any advice,
    Karin

    I tried starting it from an installation disk--which it did with no problems except it still didn't see the hard disk.
    Are you saying your drive did not show up in Disk Utility? Did you Try using Disk Utility to do a Disk Repair, as shown in this link, while booted up on your install disk.
    Let us know what errors Disk Utility reports and if DU was able to repair them.
    I'm at my wit's end because, being a freelancer, I have a lot of important information on my iMac, which I stupidly haven't backed up for a long time.
    I think we have all been there! If you need help with a better backup strategy, let us know!
    PLEASE! Can anyone help me? My main objective is to get my data off of the disk and onto either my PowerBook or my external USB hard drive.
    You can retrieve data using Target Disk Mode to your PowerBook. That's if the drive shows up.
    Also, here is Apple doc.#58042 on the flashing ? mark!
    Cheers! DALE

  • Using ROWID in the ORDER BY clause

    Hi,
    I can consider myself as a PL/SQL beginner. I need to query some existing tables created for audit scope.
    These tables have more duplicate rows respect to the same audit date: the precision is at "hour and minute and second" level.
    But I need to understand which is the more recent row for the same audit date. So I think to use in the SELECT statement
    the clause ORDER BY in this manner:
    SELECT ... FROM Audit_Table ORDER BY Audit_Date desc, ROWID desc.
    I'd like to use this ORDER BY also for the ROW_NUMBER function.
    Any suggests to me about this topic? Many thanks

    I don't need to provide an example, I can do better by pointing you to the documentation:
    http://docs.oracle.com/database/121/SQLRF/pseudocolumns008.htm#SQLRF00254
    "If you delete a row, then Oracle may reassign its rowid to a new row inserted later" - for example
    I can point you to asktom: https://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:912210644860
    "ROWIDs are NOT sortable" - for example
    Your example just happened to work, but you are using the rowid semantically incorrect.

  • Which clause is overridden by the ORDER By clause

    1. group by
    2. having
    3. select
    4. where
    5. from

    It implies that distinct, group by guarantees a
    sorted order. I have seen Tom Kyte disprove this lots
    of time....and 10.2 (in particular the hash group by) is going to screw up a lot of people who have mistakenly relied on this.
    SQL> with t as (
      2         select mod(rownum,10) as r
      3         from   user_objects
      4         where  rownum <= 100
      5         )
      6  select r
      7  from   t
      8  group  by r;
             R
             6
             7
             5
             8
             1
             2
             3
             4
             9
             0
    10 rows selected.
    SQL> with t as (
      2         select mod(rownum,10) as r
      3         from   user_objects
      4         where  rownum <= 100
      5         )
      6  select r
      7  from   t
      8  group  by r
      9  order  by r;
             R
             0
             1
             2
             3
             4
             5
             6
             7
             8
             9
    10 rows selected.

  • How can I make Numbers respect the row and column locks in an Excel workbook opened in Numbers???

    I have a Windows server app that generates Excel workbooks to be emailed to political campaign volunteers to be loaded into Numbers on an iPad, edited, then emailed back to be posted to the server database.  There are two problems encountered:
    1.  The Excel workbook has the first row (column headings) and first column (route identifier) of cells locked, so that they will not scroll off the screen, but Numbers doesn't respect the locks, so when the user scrolls horizontally or vertically, the column headings and/or the route identifier scroll off the screen.
    2.  The Excel workbook has pop-up "tool-tip" type comments in certain column headings in order to provide the user with the acceptable entries for those columns, but Numbers does not respect those.  When the user touches any of the commented column heading cells, a context menu appears instead of the comment.
    What must I do in the Excel workbook sheets, or what settings can be made in Numbers to correct the above?

    I imported a Numbers '09 file into Numbers on the iPad.  All comments were removed during import. Frozen header row and column were retained.
    Thank you for your responses I must ask, however, when you refer to "importing" the Excel file, are you referring to a two step process whereby the Excel file is first converted by some other process into Numbers format, then opened in the Numbers application - which is what I have to do in my PC application to generate the Excel file, and reverse that process to convert the Excel back into my database format - or are you simply referring to opening the file in Numbers as "importing" it?  And please excuse any ignorance, as I'm not at all familiar with Apple's terminologies.  In fact, I don't own an iPad myself, but rather I have to depend on one of my clients to do the testing for me.
    I imported an XLSX file into Numbers on the iPad.  The file used "freeze panes" to "freeze" the first column and row. Only warning on import was that it changed fonts. It imported without the first row and column frozen and with no comments. Nothing I can do about the missing comments but it was a simple matter to turn the first column & row into headers and freeze them.
    Unfortunately this would not be an efficient  solution, since the end users are, for the most part, elderly political campaign volunteers who are fairly computer illiterate.  These workbooks are actually canvassing lists - known as walklists.  Their purpose is for the volunteers to interview voters, record the results of the interviews, and post the results to a database, which provides the campaigns with valuable strategizing capabilities.  Also, these workbooks have multiple pages - as many as 10 or more.  and from what I infer from the above, the setting changes would have to be made on each page.
    My whole intent in developing this iPad/Tablet methodology was to significantly reduce volunteer's work - which is a recruitment benefit - and eliminate paper.  While the latter would be accomplished, the former would not, and in fact would tend to increase it.  It's necessary to keep the first row - column headings - and the first column - the route identifier - from scrolling off the page, so that the volunteer won't have to keep scrolling up and down and right and left to know what the data are.
    Conclusion: Comments are not supported on the iPad version of Numbers.  Frozen headers are not imported from Excel but can be recreated easily.
    I was previously directed to the Apple website  http://www.apple.com/ipad/from-the-app-store/apps-by-apple/numbers.html which extols the wonders of the Numbers application.  About halfway down the page there's a section regarding, "Sliders steppers and pop-ups".  The web page states that pop-ups can be set up but, being a marketing site, gives no indication whatsoever as to how it's done.  I was hoping someone could tell my if there's any way to carry them over from an Excel file.

  • Capture now doesn´t respect tc

    Why when I capture through of capture now with firewire doesn´t respect the tc of my camera?
    Thanks a lot.

    Well, if you have device control set to UNCONTROLLED DEVICE, that ignores timecode. Device Control must be set to Firewire NTSC (or Firewire PAL for Europe), or Firewire BAsic.
    Shane

  • I have a new MacBook and I'm having trouble with the help section. I would like to rearrange the order of my photos with in an Event, how do I do this? I follow the directions but it will not work. Thanks for some tips.

    I have a new MacBook Pro and I'm having trouble with some of the Help sections. I want to rearrange the order of my photo's within an Event. I have followed the directions but it will not let me do it, what am I missing?  Thanks for any tips.

    Are you talking about iPhoto? If you are please post this in the iPhoto forum, thanks!

  • Can I sync the order of the to-dos in Reminder?

    I like to put separation lines in the Reminders list to manage my tasks, it looks like this:
    meeting
    dinner with xxx
    =======today========
    hello world
    xxx
    yyy
    zzz
    =======tomorrow======
    but I found that when I use Reminders on the iPad,
    it doesn't keep the order of all the to-dos so it turns out to be a mess for me... and it seems that I can't change the order on iPad manually.
    could Apple help me solve this problem? thanks

    (P.S)    I use Macbook Pro with Mountain Lion and iPad2

Maybe you are looking for

  • What ways of communication between two java apps you know?

    Hi all Lame (but not for me) question. I have two java applications (first is web-app unning on server (tomcat or JBoss) and second is a standalone java app). Both are running on different JVM and both have to communicate with each other quite often

  • Multi-seat Leopard to Lion upgrade... thanks a lot Apple!

    So, if I understand Apple's stance that Lion will only be available through the Mac App Store, and that the Mac App Store is only available on the latest version of Snow Leopard, then my job to upgrade my company's 10 Macs has just become a nightmare

  • Self Service Time Customization

    Hi Friends I have a requirement to include an option button / listbox to show where the consultant worked. That is either onsite or offsite in Self Service Time Application. We are in 11.5.10 version. We dont have any descriptive flexfields in this H

  • Copy and paste multiple texts from Word to Indesign

    Hello!! I would like to simplify multiple operations where I need to copy multiple text boxes from a Word doc into multiple boxes in Indesign, and be able to specify the exact location of each box in the Indesign doc. For example, I would like to tak

  • Uzbl OS

    This is not finished yet. I am looking into some input on the problems I am facing. So I thought it would be a good idea to create "Uzbl OS", like Chrome OS. It is a very simple web oriented Linux distro. It starts up in "Kiosk" mode, so everything i