• 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 rule to set the display key for recursive relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W rule to set the display key for recursive relationship


  • Subject: Re: D2W rule to set the display key for recursive relationship
  • From: David Holt <email@hidden>
  • Date: Fri, 30 Jul 2010 13:27:31 -0700

On 2010-07-30, at 1:04 PM, Ramsey Gurley wrote:

>
> On Jul 30, 2010, at 3:58 PM, David Holt wrote:
>
>>
>> On 2010-07-30, at 12:26 PM, Ramsey Gurley wrote:
>>
>>> On Jul 30, 2010, at 2:51 PM, David Holt wrote:
>>>
>>>> Hi all,
>>>>
>>>> I would like to display one propertyKey for a recursive relationship and the rule doesn't seem to work as it does for a normal relationship to a different entity. Do I need to do something special for this case? The rule I am using has no effect and I am not sure why.
>>>>
>>>> 100 (entity.name = 'Activity' and propertyKey = 'parentActivity') => keyWhenRelationship = "activityTitle"
>>>>
>>>> Thanks,
>>>>
>>>> David
>>>
>>> Looks like it should work... But you'll be writing a lot of rules that way.  Try something like
>>>
>>> (propertyType = 'r' and relationship.destinationEntity.name = 'Activity') => keyWhenRelationship = "activityTitle"
>>
>> That didn't work.
>>
>>>
>>> If that doesn't work either, try refreshing your workspace.
>>
>> That didn't work either.
>
> What component are you using and what is it showing you instead? userPresentableDescription()?

I think I figured it out based on this hint. It is using the ERMODList, so it is creating embedded components which are different than I was thinking about. The rule is working for the to-one relationship, and it looks like I have to specify the displayPropertyKeys for the embedded lists in order to get them to display what I want. I guess I was thinking that the embedded list for a to-many would automatically just have the one key I had specified. Another thing that threw me is that it didn't change the Property Key label as I was expecting. It is still named as the relationship even though it is displaying the title.

Back to the salt mines.

Thanks for your help,

David

>
> Ramsey

 _______________________________________________
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 rule to set the display key for recursive relationship
      • From: Ramsey Gurley <email@hidden>
References: 
 >D2W rule to set the display key for recursive relationship (From: David Holt <email@hidden>)
 >Re: D2W rule to set the display key for recursive relationship (From: Ramsey Gurley <email@hidden>)
 >Re: D2W rule to set the display key for recursive relationship (From: David Holt <email@hidden>)
 >Re: D2W rule to set the display key for recursive relationship (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: Re: D2W rule to set the display key for recursive relationship
  • Next by Date: Re: SVN and Eclipse
  • Previous by thread: Re: D2W rule to set the display key for recursive relationship
  • Next by thread: Re: D2W rule to set the display key for recursive relationship
  • Index(es):
    • Date
    • Thread