Re: D2W User Presentable Description
Re: D2W User Presentable Description
- Subject: Re: D2W User Presentable Description
- From: David LeBer <email@hidden>
- Date: Thu, 27 Aug 2009 09:32:23 -0400
On 27-Aug-09, at 7:59 AM, Ramsey Lee Gurley wrote:
On Aug 27, 2009, at 7:35 AM, Don Lindsay wrote:
Hello;
I am working on my first D2W application, Web Objects 5.4. I have
a D2WEditToManyFault, the only option I have in Target Key is
userPresentableDescription, in the assistant. How can I set the
target key, without having to create class files for all my entities?
Thanks
Don
Assistant still works in 5.4? I never could get it to work. I
thought I read in the 5.4.2 release notes that it was dropped.
Anyway... Try this: Open your rule file with RuleModeler and create
a rule similar to
100:(propertyType = 'r' and relationship.destinationEntity.name =
'MyEntity') => keyWhenRelationship = "someAttribute"[Assignment]
+1 on using RuleModeler
Just a warning though, if you edit your user.d2wmodel file with
RuleModeler and then switch back to the assistant it is likely to
stomp all over your edits.
Use the d2w.d2wmodel file for your custom edits, or (better yet) drop
the use of the assistant altogether.
;david
--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
twitter: http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org
_______________________________________________
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