CAF specifying sort order in a findBy

I'm fairly new to CAF and was wondering if there is a way of specifying the sort order when doing a findBy query.  I can't seem to find any information on this but it seems like a very basic need when querying a db.
Thanks,
Cindy

Hi Cindy,
Unfortunately there's no way to specify order by or paging in CAF findBy operations. This will be available in the next major CAF release.

Similar Messages

  • Specified Sort Order not working correctly in InfoView

    Hello All,
    We are running Crystal 2008 version 12.2.0.290 with Infoview 12.1.0 and are having a problem with specified sort orders working correctly.  In Crystal we are using the 'Chart Expert' to set the specified order of the percent bar chart.  It works just fine in Crystal 2008 and shows the stacked bar in the order we would expect.  We then save the report to InfoView and run the report on a schedule and it comes back in a completely different order. Not the order we specified in designing the report.  Any ideas on what is going on?
    Thanks in advance.

    We are experiencing a similar issue with the sort order in Infoview. We are using Crystal XI.5.8.26 and Infoview.
    The specified sort order works correctly in Crystal but in Infoview it comes back with a different order. Are there any suggestions on resolving this disparity?
    Thank you.

  • Crosstab specified sort order

    Post Author: Jan_Hauptmann
    CA Forum: Crystal Reports
    Hi,I am quite new to Crystal Report (XI), especially crosstabs. Currently I am trying to create a crosstabwhere selected customer are shown on the top of the crosstab and all not selected to be counted as 'Other'. This is no problem as long as I have always the same customer I want to show(via Cross-Tab goup option - specified order). But what I would like is to enter the customer via the parameters and than apply it as specifiedsort order and all not mentioned customer from the parameters to be calculated as 'others'. Is there any chance to achieve something like this? Thanks in advanceJan

    We are experiencing a similar issue with the sort order in Infoview. We are using Crystal XI.5.8.26 and Infoview.
    The specified sort order works correctly in Crystal but in Infoview it comes back with a different order. Are there any suggestions on resolving this disparity?
    Thank you.

  • Would like to specify sort order in link from chart

    Hi Folks,
    I have a chart for which I would like to provide drill down functionality, so that when a user clicks on the "Initial Budget" bar, they navigate to a financial report for the select business user sorted by Initial Budget.
    Here's what I've found out so far. By playing with the financial report, I found that I could specify the sort column by change the n value of the "fsp_sort_n" in the Request portion of the URL. However, there is also some "RP&" syntax in the ClearCache portion of the URL that is stumping me. Without the RP& syntax, the resulting report is not properly sorted, so it seems necessary.
    The syntax is "RP&fsp_region_id=4674145661723938".
    The question is, where is that number coming from? Can I find out what it is dynamically? Is the number static (it seems to be within one application)? I would prefer not to code magic numbers, but am not so proud that I wouldn't do it if necessary. :-D
    Thanks so very much,
    Petie
    Message was edited by:
    Petie

    I just tried playing with the RP& syntax in the ClearCache portion of the URL. If I put that into the link, it prevents the bars from being displayed in the SVG chart. Hmmmm. Just a bit more info.
    Petie

  • Error: The sort order specified for distinct count records is incorrect

    When processing a measure group with a distinct count measure in it, i get the following error:
    "The sort order specified for distinct count records is incorrect."
    I have no idea what this means - any ideas?

    I had the same problem and your fix worked.  In more detail, the problematic field was contract_no.  I added a named calculation to the table in the Data Source View with the formula CHECKSUM(contract_no).  Then I created the distinct count measure on that named calculation.  And, lo and behold, the errors disappeared! 
    Thank you to Frank.
     - CindyCindy P Hoskey

  • Specifying alphabetic sort order for other languages.

    The alphabetic sort order differs slightly for other languages then the English one. I rewrite the alphabetics in the special text flow of the Reference Page of the index file, regenerate the index file, but the result is wrong. The special Group Title characters for greek, hungarian, czech, russian etc. languages are combined among latin Group Title characters.
    We work in FM 8 to create 3000 pages technical documentation in 14 languages. The output will be pdf file and help system. Our main problem now the index Group Titles sort order. Could you help me to solve this problem?
    Thank you so much
    Eva

    Michael,
    Thank you so much for your answer. It works great. I have a promlem only one letter, which is in the Czech alphabetics: "Ch". This letter would be after the "H". I have edited the sort order like this:
    Symbols[\ ];Numerics[0];A;B;C;Č;D;E;F;G;H;Chch;I;J;K;L;M;N;O;P;Q;R;Ř;S;Š;T;U;Ú;V;W;X;Y;Z 
    <$symbols><$numerics>Aa Bb Cc *Čč* Dd Ee Ff Gg Hh Chch Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Řř Ss Šš Tt Uu Úú Vv Ww Xx Zz
    The result in the generated index is, that the index entries beginning with Ch comes on below "C" and the GroupTitle "Ch" is disappearing. Take a look at the result in the generated index file, what I am talking about:

  • Sort order in list wrong: in CAML and in view

    Hello,
    When I order my list with document sets by ID, the order is wrong. It is wrong in the list and with caml.
    This is my view (I just set the sort on the ID column):
    The first 4 objects are created by the Client Object Model; the last 4 are created by a SharePoint webpart that I developped myself...
    My code for creating document sets in COM is something like this:
    ListItemCreationInformation newItemInfo = new ListItemCreationInformation
    UnderlyingObjectType = FileSystemObjectType.Folder,
    LeafName = _strLeafname // = date in format YYYYMMDDhhmmss
    ListItem newListItem = myList.AddItem(newItemInfo);
    newListItem["ContentTypeId"] = targetDocumentSetContentType.Id.ToString();
    newListItem["Title"] = title;
    newListItem.Update();
    clientContext.Load(myList);
    clientContext.ExecuteQuery();
    The code in the webpart is this:
    SPContentType docsetCt = myLst.ContentTypes[p.GetFromResourcefile("xxxxxxxxxxxxxx")];
    Hashtable properties = new Hashtable
    {"DocumentSetDescription", ""},
    {"Title", txtTitle.Text}
    SPFolder parentFolder = myLst.RootFolder;
    int newId = GetLastId(myLst) + 1;
    DocumentSet ds = DocumentSet.Create(parentFolder, newId.ToString(CultureInfo.InvariantCulture), docsetCt.Id, properties, true);
    ds.Item["Title"] = title
    ds.Item.Update();
    why is the sort order wrong?
    if i do this query in the U2U Caml builder, the order is also wrong
    <OrderBy><FieldRef Name='ID' Ascending='FALSE' /></OrderBy>
    if i order by "created", the order is also wrong....
    i don't get it....

    Document Sets are great tools for grouping multiple documents together. However, if every set has exactly one document, it would be better to just upload the file and not place it within a Document Set:
    Uploading documents using object model - http://msdn.microsoft.com/en-us/library/office/ms454491(v=office.14).aspx
    Uploading documents using web services -
    http://cecildt.blogspot.com/2010/10/upload-documents-to-sharepoint-2010.html
    If you have requirements to use Document Sets, keep in mind that this adds a layer of complexity beyond a simple Document Library. Behind the scenes, each Document Set is treated as a separate folder, and although can you query items within it, there might
    be extra steps for getting the sort order to ignore the folder structure. Can you try setting the Scope to be "Recursive" and also specify that you are looking only for files and not folders:
    <Eq><FieldRef Name='FSObjType'/><Value Type='Lookup'>1</Value></Eq></Where>
    Dimitri Ayrapetov (MCSE: SharePoint)

  • SORT ORDER WITHIN GROUPS

    Post Author: Kara
    CA Forum: General
    Hi,
    I am using version 9. I have designed a report based on an access control database. It shows a person's time in and time out, then totals these hours. My report is grouped as follows:
    Department
    Date/Time
    Unique ID
    The main data of the report is shown in group footer 3 (Unique ID) and is displayed in numerical order. I need to change the sort order to display by last name, first name but because I have grouped by unique ID I can't seem to be able to do it!
    Any help gratefully received,
    Kara

    Post Author: CoolTowers
    CA Forum: General
    I use a similar report to track service personnel who also have a unique ID.  I have mine set up as follows - maybe this'll help.
    I used selection expert to specify the dates I want to see. 
    Group 1 sorts on the unique ID. Instead of printing the unique ID field in the group header, I have Employee.EmpName.  They'll come out in their unique ID sort so the names might be a little out of order. If that's a problem you could put sort option on that field.
    Group 2 sorts by the Job ID, with the group header suppressed.
    Detail line has location, job id, date, time on, time off, total time in hours and if it's completed.
    Group 2 summarizes at date and amount at the job ID level.
    Group 1 summarizes at technician.
    I get very accurate reports to match against their hand written time cards.
    Perhaps if you re-arranged the grouping?

  • How to keep sort order in Shuttle item's source and destination boxes?

    I have defined a shuttle item on a page and the list of values in the source box is populated by a SQL with sort order specified. In the Settings of the shuttle item, Show Controls value is set to Moving Only instead of All. When a user moves selected values from the source box to the destination box or vice versa, the list of values does not maintain the original sort order. For example, if I have 26 values A through Z, a user can put value Z before A in the destination box. And when a user move A from the destination box to the source box, A is the last item in the source box. The reset button clears everything in the destination box and resets the source box to the original sorted list. This is not the solution that I am looking for. I would like to see the items in the source and destination boxes to maintain their original sort order all the time.
    Is it possible?
    APEX v4.0.1.00.03
    Oracle 11g (v11.2.0.1.0)

    Hi,
    See if this post help
    Re: Sort Shuttle Right
    Regards,
    Jari

  • Moving Multiple Albums & Album Sort Order Questions

    Hopefully this is a really easy question to answer, but I just can't figure out how to do this.
    1. Can you move multiple albums around in Aperture? I just imported my iPhoto libraries and I'd like to groups a set of the albums that I have into one project. The problem is that I can only move one album at a time.
    2. Can you specify the sort order or manual set the order that albums appear in projects or folders? It seems that Aperture automatically sorts them alphabetically.
    Thanks!

    1. Can you move multiple albums around in Aperture?
    unfortuantely, as far as i am aware you can only move one at a time
    2. Can you specify the sort order or manual set the
    order that albums appear in projects or folders? It
    seems that Aperture automatically sorts them
    alphabetically.
    you are correct, automatically alphabetically only ... i haven't been abble to change this at all ... the only way to force something else is by adding a ~ or other character that is ahead of 0 ...

  • Mapping in TopLink workbench: Sorting order for one-to-one mapping field

    Hi,
    we have a requirement; though it is one-to-many relationship, we wanted to map it as one-to-one, so that we get latest of the mappped entity based on attribute:*noOfVisits*. For this, I am trying to make descending order by noOfVisists in workbench; but no provision there.. it is available only for one-to-many relationship;
    If I map as one-to-many, I can specify the sorting order; but is there any option to limit the max rows of it to *1*.
    Pls suggest the solution; I am trying to avoid to write named query for this; and wanted to get from the entity itself by navigating to one-to-one relationship entity.
    Thanks,
    Dhana kumar.

    Hello,
    If you want strictly JPA options, I'd either not map it and query for it (which you can then store it in the object if you want in a transient attribute), or map it as 1:M with the order by and have a getSingleVistedChild type method that returns the first element if its noOfVisits value is 1.
    Mapping it using the 1:1 as you are asking can be done. All that is required is that you add selection criteria for the query used in the mapping as described here:
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/MappingSelectionCriteria
    Best Regards,
    Chris

  • Oracle 10G gives in sorted order without order by ,in 11g it is not.

    we are facing a strange problem.
    we have M Views on which we perform select operation ,we put joins of M Views and get the results by select operation , the results was in sorted order (asc) and we were not using any order by clause in the select query , this was in oracle 10G.
    The compelte schema where these M views are and also the underneath tables are now migrated to oracle 11g using import/export option.
    Now the queries which was giving the result set in sorted order (asc), are not given the result set in sorted order anymore. it is in different order but I think at always return the same order not asc or desc but an specific random order .
    we can not change the query as of now as there are 1000+ and each query would require a order by statement .
    Do we have any parameters which can be change , so that we can force oracle to use a different plan so that it gives result in order ?
    the select queries are very simple ones not complicated no extra function or group by is used in most of the queries.
    Please suggest possible solutions . Thanks much.

    Su**** wrote:
    Please guide me how to go to this doc link ,i am newbi, and do not how to go to this link.
    MOS Doc 345048.1 ('Group By' Does Not Guarantee a Sort Without Order By Clause In 10g and Above)
    Go to http://support.oracle.com, log in to My Oracle Support, and search for 345048.1 If you don't have a My Oracle Support account, you'll need to contact whoever manages your company's Oracle support and ask them to create an account for you.
    Basically, no version of Oracle has ever guaranteed the order of results if you don't specify an ORDER BY clause. In 10g, the only algorithm that was available to implement a GROUP BY happened to sort the results as a side effect. 11g introduced a new algorithm for grouping results that is more efficient and does not have the side effect of ordering the results. Most likely, your query plans have changed to use the more efficient grouping algorithm.
    If you want the results to be sorted, you should add an appropriate ORDER BY clause. If you go through the MOS document, there will also be suggestions for ways that you can disable the new grouping algorithm though I would not recommend that.
    Justin

  • Wrong sort order for rapid sequences of images

    When I have a sequence of shots taken at high speed, i.e. a number of them have the same timestamp, being taken within the same second, I find that LR displays some of them out of order. For instance, I have a sequence of 5 frames all with timestamp 9/4/07 2:17:32pm and the file names show up in this order - 1740, 1742, 1741, 1743, 1744 (these are the file names assigned by the camera)
    The frames show in this order with any of the sort order options selected except, of course, File Name, and in that one instance they display in the correct order.
    Is there a way I can specify in LR that I want to sort in Capture Time order then within that in file name order? This would give me the result I want. The reason I don't want to simply use file name order is that with images from different cameras with differing file naming conventions, or with file names I may have applied, that would not give me correct time sequence as shot. I want to see a whole day's images in correct time sequence regardless of file name.
    If there is not a way to specify this in LR, should I add this to the Feature Request list?

    Capture Time and Import Order do the same thing.
    Additional information - I see the same wrong sequence is presented in the import dialog when I try to import the same photos again (they happen to still be on the card). So, I think it is initially caused by the order that the camera lays down the photos in the file structure on the card, or in the way that Windows reads them off the disk. (I have a Canon EOS 30D, SanDisk CF card, using a card reader rather than plugging the camera to the PC.)
    If I use the import dialog's renaming process (in my test I chose filename - sequence) and apply a sequence number to the images the sequence number ends up wrong. So LR is importing the photos in the wrong order (may not be LR's fault?)
    So, this modifies the definition of the problem and of the feature request. No longer is it simply the sort order displayed in the library; it needs to be addressed at import time as well.
    Here is my attempt to redefine the feature request:
    - when importing images that are taken in rapid sequence (multiple shots within the same second) LR should allow for sorting the images by camera-derived file name to correct out-of-sequence delivery from the card/camera. This sort order, when selected, should re-arrange the preview thumbnails so the photographer can verify the images will be imported in the correct order.

  • Sort order issue in with Evaluate function ( Next Quarter measure)

    Hi All,
    I have report requirement where I have to show measures for a particular geography for previous, current and next quarters in a pivotal view.
    ---------------Previous Quarter| Current Quarter|     Next Quarter
    Geography               
    ABC|xx|xx|xx
    PQR|xx|xx|xx
    XYZ|xx|xx|xx
    Next quarter values are displayed for other geography like
    ABC value is shown for XYZ and XYZ value is shown for PQR
    I have derived measure for pervious quarter using Time Series Function > Ago function,
    However the problem is with next quarter. I used following Evaluate Function to derive measure for next quarter.
    EVALUATE ('LEAD(%1,1) over (order by %2)' AS DOUBLE PRECISION , X, Y)
    Here X = Measure and Y = Level (Quarter)
    X is delta of two other measures A and B.
    X = (A- B)
    Thanks,
    SMA

    Hi user10300020,
    That's a fairly common problem with months that happens regardless of database source.
    In the logical layer of OBIEE you can specify the sort order on the month name column. Just double click on the month name column and look for the option to set sort order based on a different column. I typically sort the month name based on the month number.
    Give that a shot and tell me if it works.
    -Joe

  • Sort order in Library Module

    I am having a problem in getting the sort order I want in Library module.  I originally imported JPEG files into a subfolder "Best Of".  I then returned to some of those photos (the RAW file) and developed them, then exported them as JPEG files to the same "best of" subfolder.  Although I have specified "capture date" as the sort criterion, the photos are displayed with the first batch of JPEG files in order shot, followed by the second batch of JPEG's that I developed, also in order shot.  As a result, all the developed files appear toward the end of the film strip, not in the actual order shot.  I would appreciate any tips.

    I can't replicate this issue with my Lightroom 5.5 on Windows 7
    However, if you don't mind me thinking out of the box, it seems like you are doing a lot of work to obtain a result that can be done much simpler, if you are willing to use a collection for this purpose. Simply drag the edited photo into a "Best Of" collection in Lightroom (no exporting needed), and you shouldn't have any trouble getting the proper sort order inside the collection. That's a lot less work than exporting! Saves disk space too! (And bvefore you object and say you have reasons why you need these in a folder for non-Lightroom purposes, that's easily solved by using a collection ... just do the export from the collection into a "Best Of" folder)

Maybe you are looking for

  • How to set SPD workflow to send email one day before the Due Date? ?

    I need to add a step in workflow for a item tracking list: send reminder email one day before the due date. I thought there is an Action in SPD: wait for [Due Date] to equal [Today]minus one day But there is no way to do that. I figured may be I need

  • Lumia 1320 overheating

    My lumia 1320 keeps overheating. After using an app that requires either gps and data usage or just some Game my phone shuts Down after 5-10minutes and is really hot. What is the problem?

  • Dynamic update in Motion

    Hi all, I'm using Apple Motion for the first time in production context for a movie. We're adding snow and mist particles to certain shots. My main concern while working with motion is that every time I change a parameter, Motion processes the whole

  • FIXME: IOUnserialize message swamping the console

    Okay, has anyone got an idea if this is a potential problem other than the log file size? I've gotten this message every couple seconds all morning. I never noticed it before today.Recently partitioned my drive for Boot Camp, could that have somethin

  • How to view all pins on map on iphone 5

    How can you view all your bookmarks on maps on iphone 5?