Cannot enable sorting when user Order by in datwarehousing functions

I could understand why sorting is not possible when order by is specified in normal sql.
But getting
"sorting can't be used when query contains "ORDER BY" clause"
when my query has datawarehousing functions with order by, as below:
Select
col1, col2,
RANK() OVER (PARTITION BY col2 ORDER BY col1) rank_of_col1
from tab1;
Is it a bug in APEX?

I was curious about it so I turned on tracing in the session that the App Builder was using in the database. I then tried to create a report with an 'order by' clause in the text and here is what I believe to be the relevant section of the trace file:
=====================
PARSING IN CURSOR #19 len=226 dep=1 uid=102 oct=47 lid=102 tim=24632542803 hv=4042432842 ad='1c097028'
declare function x return boolean is begin begin
  if instr(upper(:F4000_P4651_PLUG_SOURCE),'ORDER BY')>0 then
    return false;
  else 
    return true;
  end if;
end; return false; end;  begin  wwv_flow.g_boolean := x; end;
END OF STMT
PARSE #19:c=0,e=967,p=0,cr=0,cu=0,mis=1,r=0,dep=1,og=1,tim=24632542796
BINDS #19:
kkscoacd
Bind#0
  oacdty=01 mxl=32512(32000) mxlc=00 mal=00 scl=00 pre=00
  oacflg=13 fl2=0001 frm=01 csi=178 siz=32512 off=0
  kxsbbbfp=08298300  bln=32512  avl=108  flg=09
  value="select
  app_id "Application ID",
  app_desc "Application Name"
from
  application
order by
  app_id
EXEC #19:c=0,e=4518,p=0,cr=0,cu=0,mis=1,r=1,dep=1,og=1,tim=24632547735
=====================It looks like it simply does an 'instr' for the text 'order by' in the source text area:
if instr(upper(:F4000_P4651_PLUG_SOURCE),'ORDER BY')>0 thenAt least that is my interpretation, but I could be wrong and corrections welcome, etc...
- Mark

Similar Messages

  • How Do I "Sort" by "User Order" ?

    Seems to me I knew how to do this yesterday... but today? Not so much.
    I have imported a slew of photos and at the moment they are appearing in the Library in their capture order. I would like to rearrange a couple of them.
    It seems to me that the last time I wanted to do that, I went to the sort order drop down menu in the tool bar and chose "User Order" and could then rearrange to my hearts content. Problem is presently "User Order" is not appearing as an option in that drop down menu.
    If I go to the menus at the top of the screen, under "View...Sort..." then "User Order" is available, and I can select it... but I still don't seem to be able to rearrange the images in the strip at the bottom or in grid mode.
    Seems simple enough... all I have to do is make it work...
    What's the trick?
    Thanks,
    --PS

    Trick, if you will, is to choose one folder to sort. Make sure you uncheck including subfolders.

  • Opening a bin of clips to Icon View defaults sorting to "User Order"

    It seems like almost any time I open a bin of clips directly into Icon view, Premiere always defaults to sorting them in a random "User Order," instead of by clip name (which would be preferred).
    Any setting I am overlooking that would cause this?  Premiere 7.1 on Mountain Lion 10.8.4
    Cheers

    That makse sense, I suppose, but I don't think I've ever consciously imported media from the media browser NOT in sequential order (in terms of hitting CMD-A, selecting all, and Importing)

  • Where is User Order (Manual sort)  in V3.5??

    I just installed v 3.5 and cannot manually arrange images anymore.  Is this a bug?  If so it's a huge one.

    View/Sort/User Order is greyed out.  Also refered to as "manual mode".   In gallery mode I used to be able to manually rearrange photos by dragging and dropping them --an order in which they would revert to when "user order" was selected. 

  • How to keep User Order when exporting a collection?

    I made a collection of about 300 VC's, chosen from many folders in my catalogue. These images were taken over a 10 year period, using 3 different cameras and having different names and file types. The collection was sorted by "User Order". I spent a good deal of time organizing the collection so that the images made visual sense when shown as a slide show on a digital album.
    I exported the collection to my hard drive as jpegs, and checked the box to place them back in my catalogue, in a designated subfolder within my parent folder. All went well except they are now completely out of order, and that order makes no logical sense whatsoever - not by date, metadata, filename, attributes, nothing that I can figure out. I have to start all over again to reorder them - something that will take several hours.
    What did I do wrong? How can I keep my designated user order when I export a collection? 
    I am using LR 4.3.
    Thanks for your replies.
    René

    sunhotmoon wrote:
    What did I do wrong? How can I keep my designated user order when I export a collection? 
    Hi Rene,
    Lightroom does not maintain user order upon exporting. It would make no sense when not exporting back to catalog, but when exporting back to catalog I can see that it may be desirable - consider making a feature request (Idea) here:
    http://feedback.photoshop.com/photoshop_family/topics/new
    In the mean time, I *think* what most people do to assure export ordering is to name the files according to desired order, then sort by filename. I could be wrong about that, but that's all I got.
    Beware: If said approach is adopted, one would not be able to do incremental exports and maintain such ordering (e.g. when single image added to publish service), so all files would need to be re-exported if such change was made.
    I have requested access to sort order and added-order via plugin for plugin-assisted remedy, but so far no go.
    Another idea (which may not be acceptable) is to use capture-time to maintain sort order of exported photos (via a plugin like Exportant), then it would be easy enough to maintain user order by manipulating capture time (of exported photos I mean, post-export), but then you'd lose the true capture-time, granted: capture time could be put into some other field, but that might foul things up downstream... hmm - sorry for rambling/brain-storming out loud.
    Maybe somebody else has a better idea.
    Rob

  • Cannot enable Admistrative user after already been enabled before

    I hope im not alone on this one but wat the hell, i need help asap. My problem is that I cannot enable my Administrative user( the built in one). I had enabled it long tym before, created a password, and then disabled it again just recently. now I can't
    re-enable this user account as I need an administrative password. I would have gladly entered the password if there was somewhere I could actually type it in but, no...there was none.
    I've tried all three methods but that was for enabling the administrative account without the use of a password or when enabling it for the first time. i cannot install anything and have lots of invaluable information on the admin acc. on the
    verge of breaking my notebook. Help Please. 

    Hi,
    Have you tried the option 3 (UI) and option 4 (GPO) to enable it.
    How to Enable or Disable Built-in Elevated "Administrator" Account Windows 8 and 8.1
    http://www.eightforums.com/tutorials/9650-built-administrator-account-enable-disable-windows-8-a.html
    Can we get this done?
    If there is any difficult or issue during these steps, please post back the detailed status here for further research.
    If we cannot get this fixed, we may need to reset or refresh the PC from installation media/image backup to fix the issue. 
    Kate Li
    TechNet Community Support

  • How to sort data in descending order when user clicks on the column heading

    Hi
    I have a report called "Top customers", which shows the top customers for a specific product line. It displays the customer name and one column with the total amount spent in the period for each product line. By default, the leftmost product line is sorted in descending order.
    If the user wants to know who are the top customers for another product line, they simply click on the column heading to sort the list by that column.
    The problem is that when you click for the first time on a sortable column heading, Apex sorts it in ascending order; you need to click on the same column heading again to sort in descending order.
    Is it possible to change this behaviour and sort the data in descending order in the first click? So the users don't have to click twice...
    Thanks
    Luis
    PS: Apex 3 running on Oracle 10.2.0

    Luis,
    See: Can I "catch" a click on a sortable column header of a report?
    Take a look at Anton Nielsen's answer with regards to hiding a column and displaying its value instead of the sortable column.
    Asumming the following simple report query:
    select product,sales
    from <table>
    Change that into:
    select product
    ,sales*-1 as reverse_sales -- Select this one as an extra column
    ,sales -- Hide this column
    from <table>
    In your report column attributes (of column reverse_sales), html-expression, type #sales#. It then displays the normal sales. However apex will generate a 'order by 2 asc' for the first time. The '2' will refer to the sales*-1 value: sorting it asc, is the same as sorting sales descending...
    Toon

  • PSD files move in User Order Sort

    I have posted on this subject a couple of times before, but have had little reaction and I can't believe this is not a major issue to a number of people - so here goes one more time!
    When user sort order is selected in library mode and a file is chosen for editing in photoshop, the original image and the edited image moves to the end of all the images displayed in that folder. This is very annoying as I then need to pick up the stack and move it back to where it started. PLEASE can this be fixed as it ruins a great product for me. Aperture doesn't do this. Does anyone else get frustrated by this or is it just me!?

    How can I move pictures within a collection. I accidently missed a row when moving the pictures into the collection and now cannot drag or otherwise move the pictures into the correct order for a slide show

  • Error on load: System.IO.IOException: The process cannot access the file : error in event viewer when users want to view documents from this third party deployed scan solution

    Error on load: System.IO.IOException: The process cannot access the file
    '\\server1\SCANSHARED\.pdf' because it is being used by another process.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
       at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
       at abc.Scan.Layouts.ICC.Scan.View.Page_Load(Object sender, EventArgs e)
    I faced this  error in event viewer  when users want to view documents from this third party deployed scan solution
    here I have two WFS servers  and they configured with load balancing in F5 .
    when I enable both servers in F5 I receive this error messages in 2nd server,
    when users want to view documents
    adil

    Do you have antiVirus installed on the sharepoint servers?
    These folders may have to be excluded from antivirus scanning when you use file-level antivirus software in SharePoint. If these folders are not excluded, you may see unexpected behavior. For example, you may receive "access denied" error messages when files
    are uploaded.
    Please follow this KB and exclude the folders from Scanning.
    http://support.microsoft.com/kb/952167
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Need to send a mail to group of users when sales order saved

    Hi
    user requirement is send a mail to group of users when sales order is saved

    hi Sanjay,
    Have a look on Michal's blog, it's for JMS, but it works for others: [PI/XI: Quick tip: Preserving attributes of XI messages via MultipartHeaderBean|PI/XI: Quick tip: Preserving attributes of XI messages via MultipartHeaderBean]
    Mickael

  • How to catch data from Purchase Order form, when user click CLOSE menu?

    Hi,
    I need do my own biz process when user click CLOSE in the Data menu to close a purchase order.
    But I don't know how to get data from PO form which opened by user.
    Can anybody give me some suggestions? thanks.

    Clicking "Close" is menuUID 1286. (Check this by going to View->System Information, and then hovering your mouse over "Close" in the menu. The menuUID is displayed in the bottom left of the screen)
    So catch the menu event, when menuUID and pVal.BeforeAction = True.
    The slightly tricky thing here is that pVal for a menu event doesn't give you the form, but it will be the active form, so you can do this:
    Private Sub SBO_Application_MenuEvent(pVal As SAPbouiCOM.IMenuEvent, BubbleEvent As Boolean)
         If(pVal.BeforeAction And pVal.menuUID = "1286")
             SAPbouiCOM.Form oForm = SBO_Applcation.Forms.ActiveForm
             //Now you have the form, when the user has clicked close, so process the data
             //from the form as normal
         End If
    End Sub
    Syntax might be wrong, I typed it up from memory and have no error checker!
    Edited by: njmog1 on Feb 28, 2011 10:35 AM

  • I have a Win7Pro SP1 PC locked down with a Group Policy as it is a public facing PC. PDF fillable forms cannot be completed when logged on as the restricted user. The forms work as a normal user. What are the user requirements/permissions needed to fill f

    I have a Win7Pro SP1 PC locked down with a Group Policy as it is a public facing PC. PDF fillable forms cannot be completed when logged on as the restricted user. The forms work as a normal user. What are the user requirements/permissions needed to fill forms?

    Well, try this (I was able to fix my with these steps):
    Go Utilities > Disk Utility
    Select your Startup Disk, e.g. Macintosh HD
    Then, under the First Aid Tab, click Verify Disk Permissions.
    If there are errors, then click repair Disk Permissions.
    After it is done, restart the computer and see if your problem is resolved.
    I hope this help.
    Zeke
    www.ZekeYuen.com/blog/

  • "User" Library in the FontBook is "Off" and I cannot enable it. Help!

    Few weeks ago I decided to speed up my new Mac little bit by turning all fonts in the "User" Library "Off". Yesterday I needed some fonts which are in the User library, so I opened FontBook and tried to enable "User" library, but I could not. I cannot enable it anymore. I can click on "Enable "User"", but nothing changes. It remains with the "Off" label, and shows no fonts in it, while in reality there are 50 fonts there (~/Library/Fonts). Any ideas how to enable it again? Please help. Thanks in advance!

    Guntis Bukalders:
    Unless you have a good reason for having FileVault turned on, I suggest you turn it off. I can cause a lot of grief i get a bit too much on our HDD. It utilizes your HDD space for a sparse image approximately the size of your Users Folder.
    Is there a reason why you wanted it turned Font Book off?
    I enabling User in the Edit menu doesn't do it try this. Shut down your computer completely. Then try starting up in Safe Mode, log in, empty Trash, retart computer and log in normally. Open Font Book and try enabling user again.
    Good luck.
    cornelius
    Message was edited by: cornelius

  • User order sort changes everytime in Lightroom 3.2

    I have been using Lightroom for a number of years with no troubles.  It is an important part of my photography business.  Lately with ver 3.2 my sort order gets all messed up every time I reopen a catalogue.  The sort can take 4-6 hours, so it is a real problem for me if the user order changes each time Lightroom is relaunched.
    Does anyone have any suggestions?  I am on a Mac, OS 10.6.5.   Is it a bug?
    I am installing 3.3 - maybe that will solve it.  Any tips would be helpful.

    Richard,
    At this point I would download the program again and start the process over. It sounds to me like a camera profile file is corrupt.
    Rich

  • Changing short name - cannot enable root user??

    Hi I encountered a problem trying to enable the root user in order to follow the steps to change my short name. As I follow the steps into opening Directory Utility and entering my administrator account name and password. Here's where I'm stuck at, there is no "Edit" button asking me to enable the root user. Anyone have any idea what I should do now?

    ow88 wrote:
    Alright I have no idea why I can't edit my own post, but anyways..
    You only have about 10 minutes to edit.
    did a little research, turns out it gets more complicating than that. It messes up your files, locks you out, and you lose being your own adminstrator? But since I have nothing saved, this doesn't affect me right?
    In Directory Utility.app (in utilities) unlock the lock, lower left by clicking on it. Then in the menu, top left on your screen, under Edit, click Enable Root user and proceed.
    You can also enable the root in a terminal by entering
    sudo passwd root
    and first entering your regular admin password and then selecting a root password, which should not be the same as your admin password for obvious reasons.
    After that you are on your own, but I suggest first backing the OS up since there might be unexpected consequences from changing the short name. Even if you have nothing saved, you might find that the OS gets hosed for some reason and you have to do a complete reinstall. Using a TM or clone backup makes this a trivial thing to do. Otherwise, it's starting from scratch and updating everything all over again.

Maybe you are looking for

  • JIT and Forecast delivery

    Hi Gurus, Got a question on sales scheduling agreements schedule lines. Our customer sends 10 weeks of forecast delivery schedules and 2 weeks of JIT deliveries. which one of these two are passed to MD04? Assuming only forecast delivery schedules are

  • Inventory Balances Details Report

    Hi, Is there any standard inventory balances(in qty & value) details report whereby we can view inventory balances breakdown by plants, storage locations and even batches if possible? Thanks, CW

  • How do I do a complete reset, clearing all current information

    How do I completely clear all information on my IPOD classic???

  • MIRO USEREXIT for change GL account

    I have the requirement when i post the invoicement for good receipt I need change the GL account by purchase group anyone can give me some suggestion about use which userexit?

  • Cannot export back to FCP

    I have a sequence that I mixed in STP. I have tried exporting the sequence back to FCP by using EXPORT>SEND FILES TO FCP SEQUENCE (worked before but not now). I have also saved it on the Desktop as a aiff file, but when I try to import it in FCP it s