• 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
Re: Peer ECs in updating EO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Peer ECs in updating EO


  • Subject: Re: Peer ECs in updating EO
  • From: Lachlan Deck <email@hidden>
  • Date: Fri, 20 Feb 2009 18:31:34 +1100

On 20/02/2009, at 5:49 PM, amiel montecillo wrote:

On Fri, Feb 20, 2009 at 2:17 PM, Lachlan Deck <email@hidden>wrote:

On 20/02/2009, at 4:47 PM, amiel montecillo wrote:

So I am using peer ecs. I have 2 pages. A listing page and an update page
to
display the EO.

On the listing page, i click on an item, it takes me to the update page
and
displays the details of the EO on a ERXWOForm.


 //listing page method
 public UpdatePost updatePost() {
     UpdatePost page = this.pageWithName(UpdatePost.class);
     page.setPost(this.aPost);


I hope you're getting a local copy of that object in the other context...

Not sure what you mean of a local copy. Inside page.setPost() is this.post
= newPost; UpdatePost has a member object "Post"

So when you hit save changes you've not actually made *any* changes to the object in that peer editing context because you've not got a local copy of that object into the new ec.


You need to do this:
this.post = newPost.localInstanceIn(peerEc);
<...make changes ... >
peerEc.saveChanges()

with regards,
--

Lachlan Deck

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Peer ECs in updating EO (From: amiel montecillo <email@hidden>)
 >Re: Peer ECs in updating EO (From: Lachlan Deck <email@hidden>)
 >Re: Peer ECs in updating EO (From: amiel montecillo <email@hidden>)
 >Re: Peer ECs in updating EO (From: amiel montecillo <email@hidden>)
 >Re: Peer ECs in updating EO (From: Lachlan Deck <email@hidden>)
 >Re: Peer ECs in updating EO (From: amiel montecillo <email@hidden>)

  • Prev by Date: Re: WOText
  • Next by Date: Are there any IRC Channels for WO
  • Previous by thread: Re: Peer ECs in updating EO
  • Next by thread: Re: Peer ECs in updating EO
  • Index(es):
    • Date
    • Thread