• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
resetting results of a EO fetch utility
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

resetting results of a EO fetch utility


  • Subject: resetting results of a EO fetch utility
  • From: Bill Reynolds <email@hidden>
  • Date: Mon, 06 Sep 2004 20:24:57 -0700

I'm using a link to open a new page (component) that does a simple fetch of
records.  If I hit "back", or a link back to the previous page, click the
same link I get the page I expect again - but with the same records (it
doesn't re-fetch the objects).

How do I force the 'link' that calls the fetch function to nullify or clear
out the previously fetched objects so a new set is returned each time?

I'd like to programmatically flush the context of the found set of records
and force a fresh fetch.

Thanks for any help,

-Bill

----

page w/hyperlink:
    public ListAllContacts ListPage()
    {
        ListAllContacts nextPage =
(ListAllContacts)pageWithName("ListAllContacts");

        return nextPage;
    }


the 'ListAllContacts' page returned:
    public void findAllContacts() {

    try{

    EOEditingContext ec = session().defaultEditingContext();
    NSArray array;

    array = EOUtilities.objectsForEntityNamed(ec, "Tblcontacts");
    setFoundContacts(new NSMutableArray(array));

    } catch (Exception e) {

    }

    }
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Manualy define WOPopUpButton
  • Next by Date: Nested Editing Context Question
  • Previous by thread: NSData attribute appears empty with WOXMLCoder with mapping serializer
  • Next by thread: Nested Editing Context Question
  • Index(es):
    • Date
    • Thread