Re: Need to perform another fetch?
Re: Need to perform another fetch?
- Subject: Re: Need to perform another fetch?
- From: Tony Becker <email@hidden>
- Date: Mon, 12 Apr 2004 09:46:04 -0400
One (at least mine) off the wall idea.
Assuming you have a primary key for MyUserClass...
Create a WebService from the new component you want to do and invoke
it as an asynchronous WS task from the existing WOApp, with
MyUserClass's primary key (new fetch, update, save).
This way your existing WOApp is free to service new requests and the
new application runs on a new thread.
Logically the new component is a loosely coupled WS job/task that can
be shared.
On Apr 12, 2004, at 12:20 AM, Bill Reynolds wrote:
I have a component that does a great deal of work and after the user
has
made a bunch of choices I end up with a correctly fetched record. I
perform
some actions on it, save it, etc.
After all that is said and done I'm left with my object, an enterprise
object, we'll call it "MyUserClass". I want to pass this into another
component for some further operation, but because of my design I don't
keep
it in the Session (an obvious mistake on my part). So I've created a
variable in the new component for storing it, and I can easily pass it
in
after I create the new component.
My question is this... Once I have "MyUserClass" object in my new
component,
how do I update it and save changes? Do I need to pass along the
EditingContext with it somehow?
I did the obvious beginner stuff, that is to say I made some changes
to the
object then I called the 'save' method of the new components default
editing
context - but the update to the database doesn't happen.
TIA for any guidance,
-Bill
_______________________________________________
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.
Tony Becker
Cell: 727 460 1891
'There are two distinct possibilities: either we are alone in the
Universe, or we are not. Both are equally terrifying.' - Arthur C.
Clarke
_______________________________________________
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.