• 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: awakeFromInsertion on the client side in a D2J App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: awakeFromInsertion on the client side in a D2J App


  • Subject: RE: awakeFromInsertion on the client side in a D2J App
  • From: <email@hidden>
  • Date: Thu, 14 Apr 2005 17:32:07 +0200
  • Thread-topic: awakeFromInsertion on the client side in a D2J App

You are free to set values or relationships in awakeFromInsertion(). Just don't expect them to be set already. On the client side they might, but not on the server side. Thus when setting a relationship in awakeFromInsertion() on the the client side you should always make sure it is null first.

If your default values depend on the parent you may want to set them in the appropriate setter method:

public void setParent(Parent parent)
{
	if (parent() == null)
	{
		setRelationship(parent.relationship()):
	}

	super.setParent(parent);
}

Pierre


-----Original Message-----
From: email@hidden [mailto:email@hidden]
Sent: Thursday, April 14, 2005 4:57 PM
To: Pierre Bernard
Cc: email@hidden
Subject: RE: awakeFromInsertion on the client side in a D2J App



We want to default certain dropdowns on the client side to certain values
on pressing the Add button.



      To:   <email@hidden>, <email@hidden>
      cc:
      bcc:
      Subject:    RE: awakeFromInsertion on the client side in a D2J App
<email@hidden>
Sent by: webobjects-dev-bounces+rchakravarthi=email@hidden
04/14/2005 04:35 PM ZE2
            <font size=-1></font>






















Hi!

awakeFromInsertion() is too early for a relationship to be set. It is
called upon editingContext.insertObject(). At that time your EO is
necessarily blank.

What are you trying to achieve?

Best,
Pierre Bernard

-----Original Message-----
From: webobjects-dev-bounces+pierre.bernard=email@hidden
[mailto:webobjects-dev-bounces+pierre.bernard=email@hidden]On
Behalf Of email@hidden
Sent: Thursday, April 14, 2005 4:32 PM
To: email@hidden
Subject: awakeFromInsertion on the client side in a D2J App


We are working on a Direct to Java Client application.

When we are trying to Add a record to a child table, the awakeFromInsertion
method does get called on the client, but its relationship to the parent EO
doesnt seem to reference to the right place. We do have the propagate key
checked on  the parent to the child relationship in the EOModel.

Any thoughts on this?

Thanks,
Raj


_______________________________________________
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




**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************

_______________________________________________
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









**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************

 _______________________________________________
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

  • Prev by Date: RE: awakeFromInsertion on the client side in a D2J App
  • Next by Date: Re: Tiger?
  • Previous by thread: RE: awakeFromInsertion on the client side in a D2J App
  • Next by thread: RE: awakeFromInsertion on the client side in a D2J App
  • Index(es):
    • Date
    • Thread