resetting results of a EO fetch utility
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.