• 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
Re: D2W: How to turn on relationship editing? SOLVED!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W: How to turn on relationship editing? SOLVED!


  • Subject: Re: D2W: How to turn on relationship editing? SOLVED!
  • From: Greg Brown <email@hidden>
  • Date: Wed, 9 Sep 2009 17:17:18 -0400


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@hidden



 _______________________________________________
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

  • Follow-Ups:
    • Re: D2W: How to turn on relationship editing? SOLVED!
      • From: Ramsey Lee Gurley <email@hidden>
  • Prev by Date: Re: UnsupportedClassVersionError caused by 10.6 developed WOA being deployed on 10.5 server?
  • Next by Date: Re: D2W: How to turn on relationship editing? SOLVED!
  • Previous by thread: Re: First cut at instructions to debug WOLips posted
  • Next by thread: Re: D2W: How to turn on relationship editing? SOLVED!
  • Index(es):
    • Date
    • Thread