Discoverer ignoring Order By

Hi all,
I have defined an order by rownum in a database view but when I report off this in Discoverer Plus the order by is ignored. Instead it decides to do a default sort on the first column containing text.
Is this expected behaviour and is there anyway I can get Discoverer to do the order by defined on the database?
Thanks.

I think I may have answered my own question.
The second column in my query was doing a COUNT (*) yet Discoverer was defaulting this to a SUM aggregate type. I changed this to do no default aggregations in Discoverer Administrator and it looks to have worked.
It is now sorting just fine.
Edited by: Brian1982 on Sep 20, 2012 3:14 PM

Similar Messages

  • SQL in Shuttle (DHTML_SHUTTLE) Seem to Ignore "order by" Substitution

    Using a literal "order by" in Shuttle SQL works.
    Using "order by :P1_My_OrderBy_Column" seems to happily ignore it. Using Debug does not reveal what happened.
    Your thoughts?

    Hi,
    This is not an APEX specific issue. Try running the following query in SQL*Plus
    SELECT *
    FROM emp
    ORDER BY :p_order_by_col
    It doesn't order the column. I found a few hits on Google about this, all suggesting to use a substitution string for the order by column (see Re: oci_bind_by_name and 'order by' clause in select statement? for an example). If you do this approach you should be aware that SQL injection could occur so you'll need to take all the steps to ensure that doesn't happen.
    Unfortunately I don't know why Oracle accepts the bind variable but doesn't process it (maybe you should post that question on the SQL forums.)
    Martin
    [http://apex-smb.blogspot.com/]

  • XML diff - ignoring order

    I'm working a project which basically involves producing a diff of 2 XML files. I recently discovered XDK and though that this would be the best way to do this.
    However, after I implemented the XDK solution, I found that it makes a distinction between files with different node ordering, even when these are logically equivalent. The files I am operating on have no ordering guarantees. Is there a way to accomplish a logical (rather than physical) XML comparison using XKD? Or should I look at another product?

    How are you processing the XML? Are you passing XML directly to merge or are you using XML Agent to transform the data to field nominated? Are you applying an XSLT?

  • How to order the Discoverer reports through MENU function sequence

    I created 20 Discoverer reports functions in the MENU form, there is a sequence column,
    but when the 20 Discoverer reports displayed on OSO, they are not ordered by the sequence number, looks like just randomly listed. How can I make the 20 Discoverer Reports ordered by the sequence number when displayed on OSO?

    Hi ram,
    There are steps to register in oracle applications so there wont be any login poped up.Below is the link in that viewer and plus acces with e-business suite
    http://ascbi.com/thirdparty_documents.htm_
    hope it helps you,award points.
    By,
    KK

  • Automatic sort made by Discoverer

    Hello everybody,
    I've got a SQL view, based on a query with a CONNECT By clause. I added it in the EUL, and want to display it in Discoverer Desktop. The problem is that Discoverer makes an automatic sort, based on the column he displays.
    Here is the view :
    select A,
    id
    id_father
    text_to_display
    level
    order
    from my_table
    connect by
    prior id=father_id
    start with
    father_id is null
    order siblings by
    order
    level
    The query works fine (thanks for her ;)), but when I display this view in Discoverer, it orders the rows by the text_to_display !
    Is there an option in Discoverer that forbid him to sort the rows ? Is there a workaround I haven't thought ?
    Thanks for your help,
    Edited by: user8290732 on 22 déc. 2008 02:55

    Actually, it's not so simple !
    The rownum that Discoverer displays is not the same than the rownum get in SQL Plus !
    For some records, the rownum is different ! How come this could happen ?

  • IP30 - Pass orders in the past automatically

    I have a problem. 1400 plans should be scheduled with the IP30, the problem is that many outlets have already been concluded, therefore it should ignore orders in the past.
    Does anyone know how to do it?
    I know you can skip to the ip10 shots, but 1400 plans are many.

    You've just uncovered something I don't really know.  I had naively thought the Central Database and Cache are one and the same (and that the [ Purge Cache ] button would clear saved settings), but now I'm not so sure. 
    I tested by changing the parameters of a raw file, and I didn't see any files inside the Cache folder change their modification dates, which is not at all what I expected.
    I don't really want to press the [ Purge Cache ] button to check it here, because I want to retain my own settings.  You could try it and see if it clears the white balance setting on a particular file.
    -Noel

  • DISCOVERER DEMO O PPT

    please anyone knows where to find a ppt or demo about discoverer in order to make a presentation...Thanks
    null

    Salut Michel
    Oui, on peut gagner Discoverer Viewer en francais. On fait la langue en francais sur le menu de la configuration et apres-ca, toutes les fonctions sont en francais.
    Desolee pour l'Analytic Power parce que je ne la connais pas.
    J'espere que cette information vous aider. :-))
    Salutations
    Michael
    How is my French? Yes, you can have Viewer in French. You simply set the language to be French and away you go, from there on the computer will display the screens in French.
    Don't know anything about Analytic Power though.
    Hope this helps
    Regards
    Michael

  • Best practices for file I/O within producer/c​onsumer loops

    I'm looking to add file recording and playback functionality to a pre-existing data collection program.  The original progam is based on a Moore-style state machine, which I have added four additional states to.  They are: Record Start, Record Stop, Playback Start, and Playback Stop.
    What I have done, and what has since been identified as poor programming practice, was to "initialize" (either create or load) the appropriate file within the state machine loop during the "Start" command (for record or playback functionality), and then provide the file reference as an indicator, which is linked to for the appropriate read or write operation(whether I'm playing back or recording).  The actual I/O occurs within the the Consumer Loop. (screenshots attached).
    This is my first labview project outside of tutorials or other small examples, so any advise and constructive criticisims are welcomed.  Specifically with regards to file IO and refnum routing (it gets a little hairy in the consumer loop)!
    I'm running Labview 8.6 on Vista business.
    Attachments:
    Playback Start.JPG ‏71 KB
    Consumer_Loop.JPG ‏122 KB
    File Playback subvi.JPG ‏14 KB

    jamoore84 wrote:
    Ben,
    Thanks for the suggestion.  I think it's a little outside my ken at this moment, but  I'll look it over.  Despite any grevious coding transgressions, I have experienced some limited success with the current setup.  While the use of Action Engines/Functional Globals may constitute the best practice, I might revise my post to read "acceptable and/or easily absorbable practices" instead.
    Are there any other opinions on this?  Let me start by listing a problem and posing a question:
    Problem:  I am able to playback a file only once.  Subsequent attempts at file playback do not work.
    Thanks in advance,
    jimmy 
    HI Jimmy,
    I don't give up easy.
    Let me try to exaplain the issue with race conditons with a contrived example, the
     "Command by Mail box" case.
    Imagine you had a job where you recieved your orders via an old fashioned mail box. You never really saw your supervisor but relied on getting orders via the mail box. Now imagine the mail box could only hold one message and any time a new message was inserted, the old one would fall into the trash.
    So you come to work each day check your mail box do what was ordered and everyone is happy.
    The next day you come in and without your knowing, you are assigned to do the work of two bosses. So as long as you check your mail box more often than the two of them assigne work everything is fine... until you take a day of vacation! So you come back in the day after vacation and check you mail box and work a way until you catch hell for ignoring orders !?! Wel it turn out the order from boss 1 was replaced by the order from boss 2 while you were on vacation. Oh bother!
    How can we fix it?
    1) Expand the mail box so it hold more than one order. You just process them in the oder they are recieved.
    2) Change to mail box to not accept a new order until you have removed the old.
    Now back to reality!
    Local variables act like the funky mail box. The last message insterted over-rides the previous.
    Multiple variable writer ar like multiple bosses.
    Queues operate like an expanded mail box, letting you handle each message in order.
    Action Engines operate like the "mutexed" mail box.
    Why I don't want to encorage you to "just patch up" what you have.
    All of the less than ideal solutions either over-sample (Check e-mail twice as often as bosses assign work, waste CPU, an exercise in futility if you are coding in a non-Real-Time envirionment like Windows) or use a mutex to control access to the shared resource ( in this case local varialbes).
    LV offers mutexes through semaphores (found on the syncronization pallete) but...
    WHY WORK SO HARD?
    In my AE Nugget I explain that the exection of an AE is automatically protected by LV. So in the long run it will actually be easier to learn how to use the AE programming construct than it will be to learn how to solve the problem without them.
    so GO FOR IT! Take the lazy route and learn how to use the AE construct. Use the Syncronization pallete for Queues.  
    Just trying to help,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Restrict data flow to MRP_ATP_DETAILS_TEMP

    Hi,
    we have a custom program which pulls the details of item availability for SOs through ATP rules. we are using the api MRP_ATP_PUB.CALL_ATP to pull the atp detail for the items.
    but when this program is run each time it inserts about *70million* rows into MRP_ATP_DETAILS_TEMP table. then we have to run the purge atp temp table program to truncate the temp table. But as per our DBA this is a risk for the db storage space. so we have stopped running of this program now.
    please answer my below 2 questions -
    1) is it really a risk if the table rows reaches 70 million records? upto what maximum number of rows it is safe?
    2) is there a way to stop data insert to atp temp tables when the api is called? any profile option or debug level responsible for this? we dont want data to be inserted into the temp table.
    Regards,
    Samir Kumar Das

    1) is it really a risk if the table rows reaches 70 million records? upto what maximum number of rows it is safe?
    There is no magic number. It depends on the size of your database. 70m is huge for a small company but peanuts for say, Boeing.
    2) is there a way to stop data insert to atp temp tables when the api is called? any profile option or debug level responsible for this? we dont want data to be inserted into the temp table
    Oracle uses this table to calculate ATP results. So if you use the API, it will insert records.
    Having said that, 70m for ATP check is excessive.
    Are you doing an ATP check for ALL open sales orders?
    If it is just one or even hundred order lines, 70m seems too much. You need to raise an SR with Oracle.
    If you are doing it for all open lines (and there are thousands and thousands) here are a few things you can try
    1) Find how many sales order lines the custom program processes. See if you can reduce it by putting more conditions (such as ignore orders more than a year old, ignore orders more than 2 months in future etc.)
    2) Try to process in chunks. Instead of calling purge AFTER your custom program finishes, try calling it from your custom program every time say x number of order lines are processed.
    Sandeep Gandhi

  • Bluetooth help pairing with Jabra BT2040

    On my 8300 the bluetooth is enabled but when I ask it to pair with a new device ( Jabra BT2040 headset) it doesn't find it.
    Is it because on the bluetooth options "discoverable" is set to "no" and there is a red lock symbol next to it meaning I can't change it to "yes".
    Any ideas

    1) I do not know if the Blackberry device has to be "discoverable" in order to work with your Jabra.
    2) you can ask your IT admin why they blocked the "Bluetooth discoverability". They did that in the IT policy. Maybe it's just an error from them.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Can't create a public connection

    I have searched the forums and none of the solutions worked.
    When I try to create a discoverer connection through AS control, I get this error:
    An error occurred:oracle.disco.oem.configuration.DiscoConfigurationException: Failed to create new Connection. ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "ORASSO.WWSSO_API_PRIVATE", line 244 ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "ORASSO.WWSSO_UTL", line 546 ORA-06502: PL/SQL: numeric or value error ORA-06512: at line 1
    I've been googling it (and searching this forum) for the past 2 days and can't get it to work. Help anyone? Where should I be looking at?
    I see in the error something about SSO, checked that component and it's up (like all the others) but its start time is N/A.
    Any help is appreciated. I must create a public connection in discoverer in order to put worksheets into portal!!

    Exception initializing 'oracle.dbtools.raptor.MonitorJDBCAddin' in extension 'Oracle SQL Developer': oracle.classloader.
    util.AnnotatedNoClassDefFoundError:
    Missing class: oracle.jdbc.OracleDriverThe Oracle driver is not on the classpath.

  • Simple transformation: dump ST_MATCH_FAIL

    Hello,
    I have written a simple transformation which works fine.
    However, I get the dump ST_MATCH_FAIL whenever the tags in the XML are not in the order specified in the ST or if the XML contains tags other than the tags specified in the ST.
    Is there a way to prevent this dump? The ST should just ignore order of fields and fields which are not stated in the ST.
    This is the ST
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
      <tt:root name="DocRoot"/>
      <tt:template>
        <DocRoot>
          <tt:loop name="wa_iram" ref=".DocRoot">
            <entry>
              <personnel_num>
                <tt:value ref="$wa_iram.pernr"/>
              </personnel_num>
              <email>
                <tt:value ref="$wa_iram.email"/>
              </email>
              <ldap_id>
                <tt:value ref="$wa_iram.ldap_id"/>
              </ldap_id>
            </entry>
          </tt:loop>
        </DocRoot>
      </tt:template>
    </tt:transform>
    Thanks
    Koen

    That particular example has no conditional operators specified in the template.  You have to identify the conditional frequency of the elements in order to stop dumps like that...

  • Price Break through the Pricing Agreement API.

    Hi All,
    I need to put Range price break on the pricing agreement conversion. I am using the OE_Pricing_Cont_PUB.Process_Agreement API to accomplish this, but couldn't find where and What do I need to put to take care of the Price Breaks.
    All pointers are highly appreciated.
    Thanks,
    Rahul

    Hi David,
    Advanced Pricing comes with 6 x seeded pricing attributes for cross-order volume d-iscounts: Period 1/2/3 Item Qty and Period 1/2/3 Order Amount ... which relate to the tables I mentioned previously.
    Those Periods 1, 2 and 3 are based on the values in the 3 profile options I mentioned. So if you have a quarterly volume d-iscount structure you might use 30, 60, 90 as the values (i.e. not 30, 30, 30) which would bucket 1-30, 31-60 and 61-90 and ignore orders older than 90 days.
    The Cross Order Volume Load takes place only for booked sales orders containing items/customers which qualify for a modifier/price list using cross-order volume pricing attributes/qualifiers+. To that end, when you're testing this, remember to run QP: Maintains the denormalized data in QP Qualifiers after creating/assigning qualifiers and before running the Cross Order Volume Load.
    It is also important to note that the order amounts which are accumulated are gross only – i.e. they are based on the unit list price not the unit sell price post d-iscounts etc. Also, the cross-order amount does not include the current order being priced since the expected process is that the Cross Order Volume Load will be scheduled to run periodically, probably at the end of the business day. (You may feel that these two riders reduce the value of this functionality - they do for me!)
    Note that there is also a Cross Order Volume Report which will list the accumulated data from the Cross Order Volume Load for you.
    Hope that helps...
    Regards,
    Jon

  • Correct way to select records WHERE X ≠ Y

    I'm just starting to learn to create dynamic pages and forms
    and everything has been going very well until now. I'm SURE there
    must be a very simple solution to this because it seems so basic,
    but I have tried everything I can think of and now I'm stuck.
    My table "VENUES" has a column named "ignoreVenue" setup as
    VARCHAR (6), Null (Yes) Default (NULL). I have a corresponding
    checkbox in my form named "ignoreVenue" with "ignore" as its
    checked value.
    I want to create a recordset that only selects records where
    the "ignoreVenue" field is NOT checked. Here is the SQL query I
    tried that seems the most logical to me:
    SELECT *
    FROM VENUES
    WHERE VENUES.ignoreVenue != 'ignore'
    ORDER BY VENUES.venueName
    When I test this with the TEST button in the Wizard dialog or
    in the finished menu on my testing server, there are no records
    listed when, in fact, all but one record should be listed because
    only one of them has "ignore" in the "ignoreVenue" column.
    So here are some variations I tried for 3rd line only, none
    of which worked either:
    WHERE VENUES.ignoreVenue = ''
    WHERE VENUES.ignoreVenue = null
    WHERE VENUES.ignoreVenue = NULL
    WHERE VENUES.ignoreVenue = 'NULL'
    If someone can verify for me that one of these should work
    and which one it is, then will try rebuilding the page once more
    from scratch. But it's a very complex page so I'd prefer not to go
    through all that if I'm on the wrong track to begin with.
    I hope someone has a (simple ;o) answer for me!
    Vera

    veramilomilo wrote:
    > My table "VENUES" has a column named "ignoreVenue" setup
    as VARCHAR (6), Null
    > (Yes) Default (NULL). I have a corresponding checkbox in
    my form named
    > "ignoreVenue" with "ignore" as its checked value.
    You don't say which database you're using, but since your
    column is
    VARCHAR, I assume it's MySQL.
    > I want to create a recordset that only selects records
    where the "ignoreVenue"
    > field is NOT checked.
    Given the description of the column definition, if the field
    is not
    checked, its value will be null.
    Here is the SQL query I tried that seems the most
    > logical to me:
    >
    >
    SELECT *
    > FROM VENUES
    > WHERE VENUES.ignoreVenue != 'ignore'
    > ORDER BY VENUES.venueName
    SELECT *
    FROM VENUES
    WHERE VENUES.ignoreVenue IS NULL
    ORDER BY VENUES.venueName
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Keyboard shortcuts synchronising between iOS and OS X?!

    I got a  super big problem.
    I have set many keyboard shortcuts in my iPhone. I just bought a new iMac recently. When I set the same iCloud account as my iPhone, the keyboard shortcuts in iPhone was synchronised to iMac!! I can see those shortcuts in setting/keyboard/text --- But I don't want them here!!
    I've tried to remove all from my iMac, but since I re-login my iCloud account those shortcuts will come back soon or one day later.
    I also tried to create another iCloud account. But as long as I use the same account in iPhone and iMac, the shortcuts appears in my iMac!!
    Is there any method to remove them permanently?
    my device:
    iPhone 5S - ios 8.1.3 (newest)
    iMac - os x Yosemite 10.10.2 (newest)

    Is there a setting change that will allow a bluetooth connection between my two devices (iMac & iPad), or a WiFi setting?
    Yes. Bluetooth needs to be on, bluetooth sharing needs to be enabled, and both devices need to be discoverable in order to pair the devices and share files. On your Mac, System Preferences > Bluetooth. On your iPad  Settings > Bluetooth.
    I am trying to share all types of files easily between all of my Apple products.
    Look into Dropbox and iCloud
    Dropbox
    Dropbox on the App Store on iTunes
    Apple - iCloud - Your content. On all your devices.
    Apple - iCloud - Learn how to set up iCloud on all your devices.

Maybe you are looking for

  • How do I add a hyperlink into a pdf document in OS X Mountain Lion?

    It appears that Mountain Lion does not allow you to add links to pdfs docs in preivew. Does anyone know a work around? Why would Apple remove this festure? Thanks, S.

  • Auto Matic Safe Mode?

    Hi. My family uses a WRT54GV2 router that is on my sisters computers and the rest of the computers have modems which connect to the router (wirelessly,if thats a word). Ok the problem started yesterday, the connection name went from barbara to barbar

  • Numbers ne s'ouvre pas

    bonjour j'ai télécharger numbers et je n'arrive pas à l'ouvrir un message d'erreur survient.. que faire??? merci d'avance

  • How to add fonts to Font window

    I use a variety of fonts in Pages and I would like to know how to move fonts (really the names of fonts, like Baskerville, Helvetica, etc.) into that little box that appears when you click on Fonts .... I have about 6 in that box or window now but I

  • Accept IDOC function module.

    Hi Experts, I am new to IDOCS. I have to update one already written function module to accept IDOC in SAP from external system. In the function module I see some IMPORT parameters like 'input_method' and 'mass_processing' and EXPORT parameters like '