Hi Daniel,

Nice to see the D2W bug has bitten you too :-)

On 2009-09-26, at 2:10 PM, Beatty, Daniel D CIV NAVAIR, 474300D wrote:

Greetings David,
Found one of your nuggets of wisdom at http://wiki.objectstyle.org/confluence/display/WO/D2W+Rules+Reference+-+Cookbook+-+FAQ . So far, good for the to one relationships. However, the to many relationship seems have some trouble. I still get that stupid Cheap array thing.

That's what the to-many rule on the wiki page sets if you are using it.

90 (task = 'edit' and smartRelationship.isToMany = 1) => componentName = "ERD2WEditToManyFault" [Assignment]

Change it to 'ERD2WEditToManyRelationship'

Then you get to decide whether the default edit to-many relationship component is the one you want. You can use rules to pick from other types depending on the number of objects on the many side of the relationship.


Later,


Daniel Beatty
Computer Scientist, Detonation Sciences Branch
Code 4743000
2400 E. Pilot Plant Rd.
China Lake, CA 93555-6107
[email protected]
(760) 939-7097



-----Original Message-----
From: [email protected] on behalf of Beatty, Daniel D CIV NAVAIR, 474300D
Sent: Sat 9/26/2009 12:49 PM
To: [email protected]
Subject: D2W Edit Lists as shown in WOWODC 09 talk

Greetings David and other helpful WO developers,
I am in the process of building a tutorial for myself to ensure that I correctly understand D2W, hence the academic adage of if you want to learn something prepare a lesson for it.

Or reply to an email on the list :-)

In the process, I was reviewing (again) the D2W talk from WOWODC 2009 (first half and great talk by the way).

About 50 minutes into the talk, there is something there of both interest because it looks cool, simple, and presentable; and enviable since I can not seem to see how you did it. Namely, for the edit movie page that David has, there are lists for directors, reviews, and characters.

60 : (task = 'inspect' and smartRelationship.isToMany = 1) => componentName = ERD2WDisplayToManyList [com.webobjects.directtoweb.Assignment],


 Furthermore, there is a pop up button for the plot summary.

10 : *true* => toOneUIStyle = popup [com.webobjects.directtoweb.Assignment],


 The question is how did you get D2W to do that?

Rules.

Look at the Movies framework that David provides on his blog. The Rule file is in the Resources folder:

http://davidleber.net/?p=388

The rules I pasted in above are directly from David's framework.



I am posting a copy of my tutorial at: 
https://venus.cs.ttu.edu/groups/webobjects/wiki/761ea/attachments/56ed6/WOTutorial.pdf
and wiki of it at https://venus.cs.ttu.edu/groups/webobjects/wiki/761ea/Direct_To_Web_Tutorial.html . e

In this Departments-Employees, it would be nice to show a pop up list for an Employee's department. Similarly, it would be nice to present that little edit piece for course just like it is in the WOWODC D2W example for the attributes directors and reviews.

Would there be any assistance or references out there?

See above.

David


Thank you,

Daniel Beatty
Computer Scientist, Detonation Sciences Branch
Code 4743000
2400 E. Pilot Plant Rd.
China Lake, CA 93555-6107
[email protected]
(760) 939-7097

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/daniel.beatty%40navy.mil

This email sent to [email protected]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com

This email sent to [email protected]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to