Refreshing objects
Refreshing objects
- Subject: Refreshing objects
- From: David Griffith <email@hidden>
- Date: Wed, 12 May 2004 14:17:57 +0200
I have two separate WO applications that run at the same time, but are used
by different target audiences.
In Application 1, someone may enter an order.
In Application 2, someone else needs to see that order immediately.
In Application 2, the order status will be updated.
A user in Application 1 may need to see that order status updated
immediately (while still logged in).
Also, some information in a table which is related to the currently logged
in user may have had some of its data updated and needs to be visible to the
logged in user immediately.
I have tried various methods as described in the documentation but I can9t
seem to get the modified objects and their relationships (those that are
currently registered with the default editing context in Application 1) to
refresh, no matter what I do.
If I shut down the application and re-launch it, of course all the data is
fresh.
Can you someone give me some sample code which demonstrates the normal way
to refresh these objects?
For example:
Application 1:
curSess.currentCustomer() returns a Customer object (for the currently
logged in customer)
customer.loyalty() is a to-one relationship between the customer object and
its loyalty object.
If customer.loyalty() is updated in Application 2, I want Application 1 to
reflect that update immediately.
Regards,
David.
_______________________________________________
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.