Update 10.1 - Cannot sort by track numberTrack number header

My album tracks are now all sorted alphabetically.
I try to click the track number header and it doesn't work.
All the other headers work, but not the track number header.
So now all my albums have their tracks in the wrong order and I can't get them back to the normal track order.
Is that a bug in the new update?

sorry, I fixed it

Similar Messages

  • Cannot sort child rows in multilevel tree table

    Hi,
    I originally hijacked a two-year-old forum thread that was vaguely similar to my issue, but a kind forum moderator split my post away
    (and deleted my other hijack post asking this same question)
    so that my inquiry might be viewable on its own.
    Hopefully someone can pay attention to my issue instead of getting it confused with those other old forum threads.
    So, here we go ...
    Is sorting in a treeTable at a particular level possible? Just want to let you I have tried the following approaches to do this. But it dis not work for me.
    I have tree table with 2 levels. I am trying to sort the child rows based on its column say "Display Sequence".
    User can type in number in this column which contains input text. On value change event of the this field, all the
    child rows in the level 2 need to be sorted. This needs to be done without committing the data. On commit it works,
    because it sorts based on order by clause. I want the child rows to be sorted on value change event. Following
    various approaches I tried.
    TreeModel tModel = (TreeModel)treeTable.getValue();
    SortCriterion sortCriterion = new SortCriterion("DisplaySequence",true);
    List<SortCriterion> sortCriteriaList = new ArrayList<SortCriterion>();
    sortCriteriaList.add(sortCriterion);
    tModel.setSortCriteria(sortCriteriaList);
    The above code does not work, As "DisplaySequence" is not available in the parent view object.
    Here is approach no 2
    JUCtrlHierBinding treeTableBinding = null;
    JUCtrlHierNodeBinding nodeBinding = null;
    JUCtrlHierNodeBinding parentNodeBinding = null;
    JUCtrlHierTypeBinding nodeHierTypeBinding = null;
    Key rowKey;
    Object dispSeqObj;
    Number displaySequence = null;
    Map<Key,Number> keyValueMap = null;
    Set<Key> emptyValueKeySet = null;
    Map<Key,Number> sortedKeyValueMap = null;
    DCIteratorBinding target = null;
    Iterator iter = null;
    int rowIndex = 1;
    RowSetIterator rsi = null;
    Row currentRow = null;
    Row row = null;
    RowKeySet selectedRowKey = lookupTreeTable.getSelectedRowKeys();
    Iterator rksIterator = selectedRowKey.iterator();
    if (rksIterator.hasNext()) {
    List key = (List)rksIterator.next();
    System.out.println("key :"+key);
    treeTableBinding = (JUCtrlHierBinding) ((CollectionModel)lookupTreeTable.getValue()).getWrappedData();
    nodeBinding = treeTableBinding.findNodeByKeyPath(key);
    parentNodeBinding = nodeBinding.getParent();
    //rsi = nodeBinding.getParentRowSetIterator();
    rsi = parentNodeBinding.getChildIteratorBinding().getRowSetIterator();
    keyValueMap = new LinkedHashMap<Key,Number>();
    emptyValueKeySet = new LinkedHashSet<Key>();
    // Gets the DisplaySequence by iterating through the child rows
    while(rsi.hasNext()) {
    if(rowIndex==1)
    row = rsi.first();
    else
    row = rsi.next();
    rowKey = row.getKey();
    dispSeqObj = row.getAttribute("DisplaySequence");
    if(dispSeqObj!=null && dispSeqObj instanceof Number) {
    displaySequence = (Number)dispSeqObj;
    keyValueMap.put(rowKey, displaySequence);
    }else {
    emptyValueKeySet.add(rowKey);
    rowIndex++;
    rowIndex = 0;
    // Sort the numbers using comparator
    DisplaySequenceComparator dispSeqComparator = new DisplaySequenceComparator(keyValueMap);
    sortedKeyValueMap = new TreeMap<Key,Number>(dispSeqComparator);
    sortedKeyValueMap.putAll(keyValueMap);
    rsi.reset();
    nodeHierTypeBinding = nodeBinding.getHierTypeBinding();
    System.out.println("nodeHierTypeBinding :"+nodeHierTypeBinding);
    String expr = nodeHierTypeBinding.getTargetIterator();
    if (expr != null) {
    Object val = nodeBinding.getBindingContainer().evaluateParameter(expr, false);
    if (val instanceof DCIteratorBinding) {
    target = ((DCIteratorBinding)val);
    ViewObject targetVo = target.getViewObject();
    System.out.println("targetVo :"+targetVo);
    targetVo.setAssociationConsistent(true);
    //ri = target.findRowsByKeyValues(new Key[]{rowData.getRowKey()});
    rsi = parentNodeBinding.getChildIteratorBinding().getRowSetIterator();
    //rsi = nodeBinding.getParentRowSetIterator();
    // Rearrange the tree rows by inserting at respective index based on sorting.
    ViewObject vo = nodeBinding.getViewObject();
    iter = sortedKeyValueMap.keySet().iterator();
    while(iter.hasNext()) {
    currentRow = rsi.getRow((Key)iter.next());
    rsi.setCurrentRow(currentRow);
    rsi.setCurrentRowAtRangeIndex(rowIndex);
    //rsi.insertRowAtRangeIndex(rowIndex, currentRow);
    rowIndex++;
    iter = emptyValueKeySet.iterator();
    while(iter.hasNext()) {
    currentRow = rsi.getRow((Key)iter.next());
    rsi.setCurrentRow(currentRow);
    rsi.setCurrentRowAtRangeIndex(rowIndex);
    //rsi.insertRowAtRangeIndex(rowIndex, currentRow);
    rowIndex++;
    rsi.closeRowSetIterator();
    AdfFacesContext.getCurrentInstance().addPartialTarget(treeTable);
    private class DisplaySequenceComparator implements Comparator {
    Map<Key,oracle.jbo.domain.Number> dispSeqMap = null;
    public DisplaySequenceComparator(Map<Key,oracle.jbo.domain.Number> dispSeqMap) {
    this.dispSeqMap = dispSeqMap;
    public int compare(Object a, Object b) {
    Key key1 = (Key)a;
    Key key2 = (Key)b;
    oracle.jbo.domain.Number value1 = dispSeqMap.get(key1);
    oracle.jbo.domain.Number value2 = dispSeqMap.get(key2);
    if(value1.getValue() > value2.getValue()) {
    return 1;
    } else if(value1.getValue() == value2.getValue()) {
    return 0;
    } else {
    return -1;
    In the above code I tried to perform sorting of DisplaySequence values using comparator, then tried to rearrange
    nodes or rows based on sort resurts. But rsi.insertRowAtRangeIndex(rowIndex, currentRow) give
    DeadViewException...unable to find view reference. While setting current row also does not work.
    Approach 3.
    DCIteratorBinding iter1 =
    bindings.findIteratorBinding("childIterator");
    iter1.executeQuery();
    SortCriteria sc = new SortCriteriaImpl("DisplaySequence",false);
    SortCriteria [] scArray = new SortCriteria[1];
    scArray[0] = sc;
    iter1.applySortCriteria(scArray);
    Any help in Sorting Child nodes ADF treeTable is appreciated. Thanks in Advance.
    Abhishek

    Hi Frank,
    Thanks for your reply. I have tried similar approach for sorting tree table child rows based on user specified number and it works. But there is a limitation for this. This sorting works only for read only/transient view object. For updatable view object after sorting, data cannot be saved or updated, as it cannot find the rowid. Here is what I tried
    In the ParentViewImpl class,
    1. overrode the method createViewLinkAccessorRS, so that this method is forcefully executed.
    @Override
    protected ViewRowSetImpl createViewLinkAccessorRS(AssociationDefImpl associationDefImpl,
    oracle.jbo.server.ViewObjectImpl viewObjectImpl,
    Row row,
    Object[] object) {
    ViewRowSetImpl viewRowSetImpl = super.createViewLinkAccessorRS(associationDefImpl, viewObjectImpl, row, object);
    return viewRowSetImpl;
    2. Added the following method, which will be invoked on valueChange of DisplaySequence in child row. Expose this method through client interface. This method accept a parameter i.e. parent row key of the child row.
    public void sortChildRecords(Key parentKey) {
    ViewObject viewObject = null;
    String type = null;
    if(parentKey==null) {
    Row [] row = this.findByKey(parentKey, 1);
    RowSet rowSet = (RowSet)row[0].getAttribute("ChildVO");
    viewObject = rowSet.getViewObject();
    viewObject.setSortBy("DisplaySequence asc");
    }else {
    Row row = getCurrentRow();
    RowSet rowSet = (RowSet)row.getAttribute("ChildVO");
    viewObject = rowSet.getViewObject();
    viewObject.setSortBy("DisplaySequence asc");
    this.setQueryMode(ViewObject.QUERY_MODE_SCAN_DATABASE_TABLES |
    ViewObject.QUERY_MODE_SCAN_ENTITY_ROWS);
    this.executeQuery();
    For custom sort, lets say all the numbers should be display first in ascending order, and null or empty values to be display at the end need to override the getRowComparator method in the ChildViewImpl class,
    Here is the code for the same
    @Override
    public Comparator getRowComparator() {
    SortCriteria sortCriteria = new SortCriteriaImpl("DisplaySequence",false);
    SortCriteria [] sortCriterias = new SortCriteria[1];
    sortCriterias[0] = sortCriteria;
    return new DisplaySequenceComparator(sortCriterias);
    private class DisplaySequenceComparator extends RowComparator {
    public DisplaySequenceComparator(SortCriteria [] sortCriterias) {
    super(sortCriterias);
    public int compareRows(Row row1, Row row2) {
    Object dispSeqObj1;
    Object dispSeqObj2;
    Number dispSeq1 = null;
    Number dispSeq2 = null;
    boolean compareRow1 = true;
    boolean compareRow2 = true;
    if(row1!=null) {
    dispSeqObj1 = row1.getAttribute("DisplaySequence");
    if(dispSeqObj1!=null && dispSeqObj1 instanceof Number) {
    dispSeq1 = (Number)dispSeqObj1;
    }else {
    compareRow1 = false;
    if(row2!=null) {
    dispSeqObj2 = row2.getAttribute("DisplaySequence");
    if(dispSeqObj2!=null && dispSeqObj2 instanceof Number) {
    dispSeq2 = (Number)dispSeqObj2;
    }else {
    compareRow2 = false;
    if(compareRow1 && compareRow2) {
    if(dispSeq1.getValue() > dispSeq2.getValue()) {
    return 1;
    } else if(dispSeq1.getValue() == dispSeq2.getValue()) {
    return 0;
    } else {
    return -1;
    if(!compareRow1 && compareRow2)
    return 1;
    if(compareRow1 && !compareRow2)
    return -1;
    return 0;
    The above solution works properly, and sorts the child tree rows. But while saving the changes, update fails. I also came to know that in-memory sorting is applicable to read-only/transient view objects from some blogs and also mentiond in this link http://docs.oracle.com/cd/E24382_01/web.1112/e16182/bcadvvo.htm
    Is there any way that updatable view objects can be sorted and saved as well?
    Thanks,
    Abhishek
    Edited by: 930857 on May 2, 2012 7:12 AM

  • I keep getting an error when trying to update an app- cannot connect to store. I logged out from my account and tried to log back in and got the same error. I am doing all this from my phone since I no longer own a personal computer (only work)

    I keep getting an error when trying to update an app- cannot connect to store. I logged out from my account and tried to log back in and got the same error. I am doing all this from my phone since I no longer own a personal computer (only work) since I use iCloud and I tunes match

    YAY!!! Saved it in my Mac's Firefox Bookmarks for easy future access!
    Hope you are having a lovely afternoon today! I'm about ready to go bobo....I have an early meeting, and I don't want to oversleep! The nice part is that I work remotely, so I only have to wake up 15 minutes or so before the meeting.... I don't even use an alarm clock anymore (really, my iPhone alarm, which is much more pleasant), unless I have to get up at 6:30 or something....
    TMI?
    GB

  • I just recently did a reinstall on my mac, i tried to open itunes, but there is an error message that says itunes requires quick time 7.5.5 or later, i have tried to update quicktime, but cannot.  please help :)

    i just recently did a reinstall on my mac, i tried to open itunes, but there is an error message that says itunes requires quick time 7.5.5 or later, i have tried to update quicktime, but cannot.  please help

    Just FYI
    QuickTime 7.7 for Leopard - http://support.apple.com/kb/dl761
    http://support.apple.com/kb/DL27 <-- Quicktime 7.5.5

  • TS5376 Help!  I can't fix or uninstall/reinstall iTunes without getting this error message: "The path \C\Users\(my name)\AppData\Local\Apple\Apple Software Update\iTunes64msi.' cannot be found."  So I can't remove iTunes.

    Here's the complete message:
    "The path \C\Users\(my name)\AppData\Local\Apple\Apple Software Update\iTunes64msi.' cannot be found. Verify that you have access to this location and try again, or try to find the installation package 'iTunes64.msi' in a folder in which you can uninstall the product from iTunes."
    So I'm stuck in this loop in which I can't download an update, can't remove iTunes to reinstall, and can't use iTunes currently as it shuts down at the drop of a hat.  Am I hopeless or is there a fix I can find?

    See Troubleshooting issues with iTunes for Windows updates. Use the same advice as in note 1 but for iTunes. Try the MS fixit, or leave it in place and go to the next step.
    tt2

  • Cannot sort photos in slideshow

    When creating a slideshow it seem not to work as expected:
    1)
    I cannot sort the photos as I want. When I drag and move a photo it reorders everything in a for me rabdom way and nothing is in the place I expected it to be.
    2)
    I cannot edit text in the title line. When marking the text I can move the cursor through the characters but I cannot enter new or delete existing, it is like it is locked for editing.
    3)
    There is no switch in the settings for "random order" as there use to be when playing a slideshow directly from an album.
    4)
    And more strange things....
    Help, Please

    There are 9 different versions of iPhoto and they run on 9 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS. So to get help you need to give as much information as you can. Include things like:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. As full a description of the problem as you can. For example, if you have a problem with exporting, then explain by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted? - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.

  • Yesterday an update on software to get the facetime to work. It downloaded along with eight other updates an Itunes update now I cannot even get Itunes to open I am now completely frustrated

    Yesterday I did an update on software to get the facetime to work. It downloaded along with eight other updates an Itunes update now I cannot even get Itunes to open I am now completely frustrated Now two applications are not working.  Help

    Hi,
    I tried opening it from the application folder and nothing happens.   I have tried from the dock and the same thing.  Unfortunately this is not the application that I ws intending to work on.  This was running perfectly fine for me.  I have a lot of music on it.  I know all is still there because I can see it through spotify.  I started looking for help with Face time with came up with a needing proper credentials in order to open.  Now neither open after a 9 an automatic download of nine updates.  At this point I don't know what else to do.

  • Updated today and cannot open my mails it says: The last time you opened Mail, it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again?

    updated today and cannot open my mails it says: The last time you opened Mail, it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again?

    Do a backup.
    Quit the application.
    Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder.  Select Library. Then go to Preferences/com.apple.mail.plist. Move the .plist to your desktop.
    Restart, open the application and test. If it works okay, delete the plist from the desktop.
    If the application is the same, return the .plist to where you got it from, overwriting the newer one.
    Thanks to leonie for some information contained in this.

  • I just downloaded the latest itunes update and I cannot open Itunes. Any suggestions?

    I just downloaded the latest itunes update and I cannot open Itunes on my Imac. Any suggestions? I have OS 10.6.8

    Hello, I am quite new on these forums, and mainy joined because have problems with latest update of iTunes, which seems to have caused problems of one kind or another for various people. I think basically people are now waiting for a 'patch' from Apple to fix things.

  • Sort key '011' (site number) without value update in FI document

    Hi
    With regards to vendor master already with sort key 011(site number) was maintained. However, there is always no values update on assignment field in the accounting document. The accounting document was integrated thru MM module when logistic invoice verification done thru tcode MIRO.
    Can anyone please kindly help.
    Regards
    Kang Ring

    Hi ,
    As you are using Std sort key,there should be no problem as there is no other setting other than maintaining the sortkey in the GL.
    Please Check the  Sort key of the Gl in FS00 which is hitting  from MIRO and also confirm that you have maintain the Plant in the concern MM transactions you are referring.
    Regards
    Jabeen

  • Downloaded the recent update, now I cannot sync photos nor view my photos on my phone.

    Downloaded the recent update, now I cannot sync photos nor view my photos on my phone. Push the photo app button and it pops up then off.

    Try this:
    First create an empty folder...no photos in it...now, connect your phone and under the photos tab select sync photos & select this folder. Since there is nothing in it, no photos will be added to your phone, but hopefully this will remove the photos that are on your phone.

  • TS2549 iphoto 11 (9.2.3), cannot sort iphoto in events. Text changes to numbers?

    I use 10.6.8 MacBook mid 2007 iphoto 11 (9.2.3),
    Cannot sort iphoto in event, when almost finished it changes to numbers.
    I have done it for three times.
    It does not work.
    Faces will not show up correctly either, but that is  not so important.
    Please help

    Please explain
    Cannot sort iphoto in event, when almost finished it changes to numbers.
    How are you "sorting photos in events"?
    Typically you use albums for organization - like sorting
    LN

  • Installed latest update today, now cannot access F/B app

    Hi, installed the latest update today, now cannot access F/B via the App!! Okay online but the App looks like it is loading...blue page etc, then immediately reverts to home screen. Have checked settings and F/B is enabled
    Please help x

    try closing it by douple tapping the home button to reveal multi-tasking screen. swipe from right to left till you see the fb app. then swipe the app up and off the screen to close.
    Tap home button again to return to home screen. Now, open fb app

  • Adobe Updater shows I have 1 update but I cannot find it in the Application Manager

    Adobe Updater shows I have 1 update but I cannot find it in the Application Manager...anyone else having this issue?
    I have the CC apps installed and some CS6 apps installed as well.
    I have Creative Cloud version 1.0.0.183
    My updater says I have 1 update.  I choose "Open Updater..." and it opens my CC Application Panel..
    However all the apps I have installed say they're up to date with a green check:
    Does anyone know how I cian get rid of the update icon telling me I have 1 update?
    Thanks!!!
    -John

    Hi Artillery Media,
    In order to check your update status for CC applications, Please click on home tab. Do let me know if you are able to find your update under Home tab.
    Regards,
    Ashish

  • When I play Albums the songs are not sorted by track

    I have a Ipod Classic and when I play Albums I would like them sorted by Track, so that I can hear the album the way it was recorded.
    I can I change the sort order on my iPod

    Hi, welcome to Apple Discussions.
    If I recall correctly if you get to an album using the search feature it plays the tracks in alphabetical order for no very good reason that I can think of. If you have problems with track order when playing from the Albums or Cover Flow menus then take a look at http://www.samsoft.org.uk/iTunes/grouping.asp
    tt2

Maybe you are looking for