Clear items from the listview

How can we clear all the items displayed on a list view (data set by an ObservableList)
Is there a way to get the index of the last item posted on the listview from the Observable list?
In that case, something like this could achieve that result:
obsList.remove(0, lastIndexof(listview))
There must be an easy way to do this.

How can we clear all the items displayed on a list view (data set by an ObservableList)
private final ObservableList<Person> data = …;
data.clear();
Is there a way to get the index of the last item posted on the listview from the Observable list?
     System.out.println(data.get(data.size()-1 ).firstName);
In that case, something like this could achieve that result: obsList.remove(0, lastIndexof(listview))
   data.remove(data.get(data.size()-1 ));

Similar Messages

  • How do i retrieve a cleared item from the download list?

    It was a .pdf downloaded from a website. I accidentally cleared it before I had printed it. It is not in the history as it is an external .pdf.

    If you removed the file from the hard drive then it is most likely lost.<br />
    Otherwise it may be in the browser cache of the Operating System temp folder.
    Do you see that file in the Downloads folder in the History Manager (Library)?
    *History > Show All History

  • Deleting cleared items from payment advice

    Hello All,
    I have a requirement where in I need to check the payment advices on a given date and check if there are any cleared items in that, if so delete the cleared items from the payment advice.
    Please suggest how this can be done. Which tables should I check? Is there any FM for deletion of cleared items from payment advice?
    Thanks
    Indrajit

    Hi,
    These function modules will delete the payment advice as a whole.
    But my requirement is to delete only the cleared line items in the item section of the payment advice (FBE2). Also the payment amount must be automatically updated and the balance recalculated in the item section of the payment advice (FBE2) after items have been cleared. 
    Please suggest a suitable approach to do this.
    Thanks
    Indrajit

  • [Your Music] Clear items in the 'Recently Played' list permanently

    Would like to have an option to clear items from the Recently Played list permanently.
    Hidden items reappear as soon as I connect the device to the Internet.

    Updated: 2015-07-14Marked as new idea and edited the title slightly to make it easier to find via search. ;)

  • Not cleared two line items from the GR/IR clearing

    For one of the items in PO following transactions are done...
            Mtype   Date            Quantity             Amount
    GR   101    06/14/09        1 02.001            887.85
    GR   102    06/14/09        102.001-            887.85
    GR   101    06/14/09        101.999             887.85
    GR   101    07/22/09        102.001             923.61
    IR-L            06/14/09        102.001            887.85
    IR-L            06/14/09        101.999            887.85
    FBL3N: out put
    Open items
    Doc Type  Date                           Amount
    WE           06/14/2009 86            887.85
    WE           07/22/2009 96            923.61-
    Cleared items:
    Doc Type  Date                           Amount                                                                     
    WE            06/14/2009  96              887.85-
    Z9             06/09/2009  86              887.85
    WE            06/14/2009  96              887.85-
    Z9             06/09/2009  86              887.85
    System has not cleared two line items from the GR/IR clearing for this line item in PO.
    What could be the reason these items are not cleared and now how these line
    items can be cleared?

    Hi,
    When the Dr and Cr amount are equal to zero system will automatically clear the line items in F.13.  Here the open items are appearing with different amounts due to that system not able to clear.
    By passing some manual JV or something you done to make Dr and Cr equal to zero then you clear through F-03(untick post automatically for this clearing in T.cdoe FS00)
    Regards,
    Sankar

  • My ipad shows capacity 13.6GB, available 0 bytes. Can I clear some items from the memory to increase the avaavailable memory?

    my ipad shows capacity 13.6 GB, available 0 bytes. Can I clear some items from the memory to increase the available memory?
    Getting message "storage almost full"

    One usually large user of storage space is photos and videos. You could import them to a computer and then delete them from the iPad: Import photos and videos from your iPhone, iPad, or iPod touch to your Mac or Windows PC - Apple Support
    You can also go to Settings > General > Usage and click on "Manage Storage" (in the Storage section, not the iCloud section) and that will show what is using the storage and may help you decide if you want to delete some apps or something else.

  • Clear Recent Items from the Dock

    When I right click on Preview on the Dock, it shows a list of recently opened files.  A friend of mine needs to remove those for some reason.....  He tried clicking File>Recent Items>Clear Menu and clicking the Apple Icon>Recent Items>Clear Menu and restarting Preview.  This removes Recent Items from the Menu Bar but not from the Dock.  Another problem is the last picture that thats open appears when Preview is started.  Is it possible to disable this or preferably the entire "Resume" feature of Lion?

    macridah wrote:
    This also happened to me and I was going crazy because the items might of been deleted or from a DVD that is no longer mounted.  So this is how I solved it.
    To summarize, you need to delete or rename some files in your local "Library" directory, ie ~/Library/Preferences directory.
    For the iWork apps and Preview.  Rename these following files with a "~" in the beginning or delete it or to be safe, copy to another location:
    "com.apple.iWork.Keynote.LSSharedFileList.plist" to "~com.apple.iWork.Keynote.LSSharedFileList.plist"
    do the same for these files
    com.apple.iWork.Numbers.LSSharedFileList.plist
    com.apple.iWork.Pages.LSSharedFileList.plist
    com.apple.Preview.LSSharedFileList.plist
    One way to do it through the GUI is open finder, go to the "Go" menu and press the "option" button.
    Choose the Library menu item and open the "Preferences" directory.
    Look for the files mentioned above either rename, delete, or move.
    Close the application and see if the recent items still appear when you right mouse click the icon in the Dock.
    If that doesn't work, then logout and log back in.
    Hope this helps or solves your issue.
    I just used this to delete the recenttly opened items on Quicktime that appeared on the dock even though the 'Recently Opened' folder frm the Menu was empty. It worked like a charm.
    Now I still need to quit the Application after deleting the 'Recently Opened' on the Menu bar in order to make the dock recently opened disappear as well, but it works!

  • How can I remove items from the open a recent file menue.

    How can I remove items from the "Open a Recent File" menue. Many other applications allow the clearing of that file . Is this possible in Adobe Reader 10.1.2 ? If so how?

    See this previous topic: http://forums.adobe.com/message/3759596
    It is for Acrobat, but the registry entries are similar for Reader.

  • Epson Stylus Photo 1290 - how do I remove items from the print queue?

    Description of problem with "Epson Stylus Photo 1290" Application:
    After selecting Show Completed Jobs from the main menu (Jobs > Hide/Show Completed Jobs) I am presented with a status list of print jobs (a.k.a. "print queue") that are either marked as "Completed", "Cancelled", "On Hold", "Printing" etc. Each and every time I print an item it is added to this list.
    I simply want to clear this list.
    However, the application's "Delete" button appears to only transform a "Printing" job to a "Cancelled" job, for example.
    So how on earth do I clear the old (and, to me, useless) jobs listed in this print queue?
    I know this isn't apple software but seeking help on the EPSON sites (and the rest of the net) has led me nowhere.
    Many many thanks in advance if anyone can suggest anything!
    My set-up:
    Hardware:
    Model Identifier: MacBookPro5,1
    Boot ROM Version: MBP51.007E.B05
    SMC Version (system): 1.33f8
    Running: OS X 10.5.8
    Problem App: EPSON Stylus Photo 1290.app, version 6.0.3
    Queue name: EPSONStylus_Photo1290
    Host name: localhost
    Driver version: 3.09 (confirmed as latest)
    URL: usb://EPSON/Stylus%20Photo%201290?serial=WORLL0112061542320
    Have print log files been cleared: Yes (using MacPilot)
    Have print preferences been trashed/reset: Yes (all that I could find)
    When did this problem start: not sure, I first noticed it several months after first using it on my MBP 10.5.x

    Hmmmm. Doesn't look like I can edit my post. Okay.......
    Contrary to what I've said above, this IS an Apple issue as the problem lies in the Print Queue, which is part of the OS.
    The "fix" is to go System Preferences > Print & Fax and then delete the 1290 from the list of printers.
    When the 1290 printer is re-added its print queue is now empty AND the Delete button does as it is supposed to do - it deletes items from the queue list.
    Hooray!

  • How to find open line items from the BSID table

    Hello Guru's
    I need some fever from you......... please any one tell me that How to find the open line items from the BSID table .
    please replay ASAP..
    Regards,
    Raghunath.S

    Hi Raghunath
    BSID and BSAD are Secondary Index tables for Customer line items. All customer open items are stored in BSID table and Cleared items are stored in BSAD table.
    Regards,
    Venkat

  • How can we remove items from the VF04 list?

    We have a long list of items in VF04 that, for various reasons (some process related, some due to errors), are not to be billed. We have looked at applying filters to the list but there is nothing really suitable to hide these individual documents e.g. we could filter out some dates where none of the items on that date are to be billed but other dates have a mix of items we want to bill and others we don't.
    I have done a search of this forum but didn't find a previous topic with a quick and simple method to remove items from the list .
    Is there a method, other than billing them or sorting each issue individually, to permanently remove individual documents from the VF04 list?
    Thanks in advance for any help.
    David

    Hi,
    David,
    Download a list of Pending delivers doc form VF04.
    Paste the list in T.Code : VL09 (Delivery reversal) and reverse the delivery.
    Then go to T.Code: VL06G Select the list of deliveries that has been reversed, select/delete all un- wanted deliveries.
    This way you can remove all unwanted pending deliveries forn Billing due list (VF04).
    Thanks & Regards,
    R.Janakiraman

  • My hard drive went bad and I lost a lot of purchased items from the iTunes store. I want to re-download them but can not. They still show up on my purchased items. How do I solve this?

    My hard drive went bad and I lost a lot of purchased items from the iTunes store. I want to re-download them but can not. They still show up on my purchased items. How do I solve this?

    Update to iTunes 10.3.1
    After you have finished, you can re download your iTunes purchases without having to re purchase.
    iTunes 10.3.1
    " Download Previous Purchases. Download your past music purchases again at no additional cost. Your purchases are available in the iTunes Store on your Mac or in the iTunes app on your iPhone, iPad, or iPod touch. Previous purchases may be unavailable if they are no longer on the iTunes Store."
    "Available on iTunes in the U.S. and Canada only. Title availability is subject to change."
    From here.  http://www.apple.com/itunes/

  • How can I delete an item from the main left column of iTunes?

    I'd like to delete an item from the main left hand column in iTunes (the column containing the main headings LIBRARY, STORE, SHARED, PLAYLISTS etc etc). Under the first heading 'LIBRARY' appear the items Library, Music, Movies, iTunes U, Books, Apps and Ringtones. I'd like to remove the item "Library" from that list - it appears immediately after the heading "LIBRARY" and serves no purpose whatsoever. (Neither does it appear to cause any harm, I must say, just a nuisance.) This item does not appear in any of the iTunes viewing options or controls lists. Neither does it appear in iTunes in the other accounts on my Mac and I have yet to see it any other iTunes on any other Mac.
    I've upgraded since about iTunes 8 assuming the problem would eventually disappear through the upgrades but it hasn’t, even through all the providedupgrade increments available for iTunes.
    I'm assuming it's from something I've installed in my main user account at some stage and it entered this item in the iTunes app. But I can't see how to remove it. The only things I can remember installing are "iTunes Batch Column Renamer" and "Join Together", both if which are just Scripts and which I use fairly regularly, but I don't recall either of them installing that particular item.
    Is there any folder I can navigate to to edit the list of items in that main left hand column of iTunes?
    Many thanks in advance for any help offered.

    on second thought, that you have an item "library" is indeed odd - there shouldn't be.
    suggest you try removing iTunes completely (click here and follow the instructions), then reinstall it using the standalone installer from here: http://www.apple.com/itunes/download/.
    note this will not do anything to your media files, playlists, ratings, etc.
    btw, you didn't install any 3rd party tools like this script:
    Change Hidden iTunes Preferences v2.4 
    This application will allow you to invoke hidden iTunes preferences:
    Show "Library" playlist
    Changing view setting is global
    Allow half-stars in ratings
    Hide "Ping" buttons
    Show/hide arrow links -- to either search the iTunes Store or search your library
    Load complete iTunes Store preview before playing
    Create playlists for purchased song collections
    Play songs while importing or converting
    Create file names with track number
    Maintain grid view for Search results
    Option-click zoom button for Mini Player&
    Show buttons horizontally
    Message was edited by: Jolly Giant

  • How can i delete purchased items from the cloud in iTunes

    how can i delete purchased items from the cloud in iTunes

    I had this problem as well. You can't delete them but you can hide them by swiping across from the cloud to. The other side then pressing hide

  • How can you delete items from the cloud?

    I am trying to delete some items from the cloud but can't figure out how. Does anyone know how.

    You can see what your iCloud storage is used for and delete any unwanted content at settings > iCloud > Backup & Storage > Manage...... on your iOS device. Or System Preferences > iCloud > Manage...... on a Mac.
    You have 3 options......
        1.    Purchase more iCloud storage.
        2.    Delete data or back ups that are being stored in iCloud already.
        3.    Turn off items to be included in the next back up to reduce its size.

Maybe you are looking for