Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: So what is a good approach to learning WebObjects?



On Monday, Nov 17, 2003, at 01:47 Australia/Sydney, Alice Oaks wrote:

On 11/16/03 12:34 AM, "Arturo Pirez" <email@hidden> wrote:

Here's a contrived example. I have a bunch of pets with associated
owners.
I create a popup list to display the pets' names. When a pet's name is
selected and
I hit submit I want to display the owner's address. How would you go
about
doing that?

Hmm... Well, the details would depend on whether I was getting the data from
the database, already had it in an array, etc. But I think the answer
you're looking for is that I would call a get method on an object that
contained the data, passing in the pet's name or the id associated with it
(depending on the data available), and assign the result to the value
variable of a display object.


Am I on the right track? :)

Not quite... You probably should go through one of the WebObjects tutorials (there should be a tutorial on an Authors database) to learn the fundamentals of the WebObjects way of data modeling, abstraction and handling. It will also teach you the basics of how to display data on the pages.


It will take you probably 1-2 days to go through it.


Marek Wawrzyczny

software engineer
-------------------------->
ish group pty ltd
7 Darghan St Glebe 2037 Australia
phone +61 2 9660 1400   fax +61 2 9660 7400
http www.ish.com.au | email email@hidden
_______________________________________________
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.

References: 
 >Re: So what is a good approach to learning WebObjects? (From: Alice Oaks <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.