From: Ramsey L. G. <rg...@ma...> - 2010-08-31 02:33:57
|
On Aug 30, 2010, at 7:34 PM, Tim Worman wrote: > I am using an existing model framework to drive a new ERModernD2W interface. So, as an example, let's say I have a relationship defined like > > foo <-->> bar > > foo.bar() returns all related records. But my frameworks have custom accessors that may return a more qualified set of data that users of my apps would be expecting. So I have methods like: > > foo.getBarForFoo() > > which filters certain un-needed results out. Most of my app would use the latter but sometimes I'd still want to use the former. But if I use "getBarForFoo()" in a D2W rule the relationship results just look like EOGenericRecord strings. So maybe D2W doesn't know what entity is being returned? Maybe something like entity.name = 'foo' and propertyKey = 'bar' => componentName = ERD2WEditToOneRelationship and entity.name = 'foo' and propertyKey = 'bar' => restrictedChoiceKey = "object.barForFoo" and propertyType = 'r' and smartRelationship.destinationEntity.name = 'Bar' => keyWhenRelationship = "barName" > > Since not all my apps are D2W I don't want to change the signatures of these methods just to satisfy the places where D2W is used. I do want the restricted results. Does the rule system have a way of handling this? > > Tim Worman > UCLA GSE&IS > > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Web...@li...) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/rgurley%40mac.com > > This email sent to rg...@ma... |