• 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
setting values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setting values


  • Subject: setting values
  • From: "A. Uchida" <email@hidden>
  • Date: Wed, 19 Feb 2003 22:40:54 GMT

Hi there,

MacOS 10.1.5 & WO5.0

I'm just staring to use WO recently and also a beginner of Java programming.
I would like to have your advices for my qestion.

What I am trying to do in WO application is
    1. Create a new record in an entityA using display group insert().
    2. Save the new record in the entityA using saveChanges().
    3. Create a new record in an entityB using insert().
    4. set a value of an attribute of entityA to an attribute of the entityB
    5. saveChanges() of entityB.

I want to do the process 2 to 4 by an action on a WO component.

What I did to set the value was to add
    entityB.aData = entityA.aData;
in the action method in the java file.
Both entityA and B was produced as a key using the entities.
And it doesn't allow me to finish the build.

I think I had to use a method, something like "takeValueForKey".
But I don't know how to use it.

Question1 : what method can be used to set a value of an entity to a field
of the other entity?
Question 2 : I am learning WO by myself and had read some books for WO but
when I get lost like this case, what kind of documents, do you think, are usefull?
I checked the documents of the WO: EOControl, Java reference for Java etc.
But I don't think it is useful.

Any comments would be appreciated.
Thanks in advance.

Atsushi Uchida
_______________________________________________
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.

  • Follow-Ups:
    • Re: setting values
      • From: Art Isbell <email@hidden>
    • Re: setting values
      • From: Ricardo Strausz <email@hidden>
  • Prev by Date: Re: Debugging WO5.2 apps with December 2002 tools and OSX 10.2.4
  • Next by Date: setSortOrderings?
  • Previous by thread: Re: Basic EOModeler / WebObject tutorial ( newbie )
  • Next by thread: Re: setting values
  • Index(es):
    • Date
    • Thread