On Sep 7, 2009, at 8:51 PM, David LeBer wrote:


I find it helpful to create a model group for my projects in RuleModeler (File -> New Model Group) that I add references to all of the model files that my project depends on. Something like:

        MyApp: user.d2wmodel
        MyFramework: d2w.d2wmodel
        MyLook: d2w.d2wmodel
        ERDirectToWeb: d2w.d2wmodel
        JavaDirectToWeb: d2w.d2wmodel

This makes it easier to trace all of the rules that may apply.

For your particular problem, try adding rules like the following:

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

If I remember correctly the default Wonder rules seem to miss these.


Those rules did the trick!

Thanks all!

If I recall correctly, didn't the D2W from Apple have things (attributes and relationships) ready to edit?

Wonder by default only allows inspecting a few things. Should the default rules that ship with the Wonder D2W frameworks have the rules to allow editing, right out of the box, so to speak? I would say yes, one should be able to edit the DB. What do others think?




Greg Brown
[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