Creating a Detail Interface for the To-Many Relationship
Creating a Detail Interface for the To-Many Relationship
- Subject: Creating a Detail Interface for the To-Many Relationship
- From: Bruce Smith <email@hidden>
- Date: Thu, 15 Feb 2007 11:16:31 -0600
I'm having a problem going through Apple's Web Objects User Builder
Guide. I'm new to the WebObjects world and trying to go through this
guide to build a web application.
I can successfully get through Creating a Master-Detail Interface
starting at pg. 91 and get through Implementing a Select Action
ending halfway down pg.96. I can build and run the application and
everything works great. As soon as I get into the To-Many
Relationship section it stops working.
Here's my steps...
Create Web Ap' in XCode using the Movies.eomodeld in the examples
Drag the Talent Entity from EO Model design tool in XCode to
WebObjects Builder and just check to fetch on load
Create a table with a WORepetition and add WOStrings
Drag talentDisplayGroup.displayedObjects to <WORepetition> in the
path view with the WORepetition row selected in the table
Create a key named talent and enter Talent as the type.
Drag talent key to <WORepetition> and drag talent.firstName and
talent.lastName to the WOStrings in the table
Then a detail interface is created by making another 2 col 3 row
table and adding three WOStrings down one of the cols
Bind talentDisplayGroup.selectedObject.firstName to the first
WOString, and a couple others to the other WOStrings
Add action called selectAction set to null
Manipulate some code in MasterDetail.java as follows:
public WOCompononet selectAction(){
talentDisplayGroup.selectObject(talent);
return null;
}
Add WOHyperlink to last name and drag selectAction to the WOHyperlink.
At this point everything is working just great. The following is
where everything breaks when adding the To-Many Relationship:
I open the Display Group Options panel for talentDsplayGroup and
check "Has detail data source.", select Talent as the Master Entity
and roles as the Detail Key.
When this is done the Entity field in the Display Group Options
panel changes from Talent to Movie Roles and grays out so nothing can
be changed.
At this point, I can build and run the application, but the talent
list no longer pulls up, but it does as soon as I turn the "Has
detail data source" back off and change the Entity field back to Talent.
Is there something I need to do to the talent key to fix this? I'm
not seeing anything other instructions in the manual to correct this.
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. If the reader of this message is not the intended recipient,
you are hereby notified that your access is unauthorized, and any review,
dissemination, distribution or copying of this message including any
attachments is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete the material from any
computer.
_______________________________________________
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