• 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 to one relationship sort ordering and display
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W to one relationship sort ordering and display


  • Subject: Re: D2W to one relationship sort ordering and display
  • From: Mark Wardle <email@hidden>
  • Date: Fri, 21 Aug 2009 09:58:23 +0100

Fantastic. Thanks for this; works perfectly.

Mark

2009/8/20 Ramsey Lee Gurley <email@hidden>:
>
> On Aug 20, 2009, at 3:24 AM, Mark Wardle wrote:
>
>> Hi all,
>>
>> Struggling with this: Can't get the destination sorted properly using D2W.
>>
>> I have FormEdss <<-> EdssScore
>>
>> (task = 'edit' and entity.name = 'FormEdss' and propertyKey =
>> 'edssScore')  -> componentName = "D2WEditToOneRelationship"
>> (task = 'edit' and entity.name = 'FormEdss' and propertyKey =
>> 'edssScore') -> destinationDisplayKey = "description"
>> (task = 'edit' and entity.name = 'FormEdss' and propertyKey =
>> 'edssScore') -> numCols = "1"
>> (task = 'edit' and entity.name = 'FormEdss' and propertyKey =
>> 'edssScore') -> destinationSortKey = "displayOrder"
>> (task = 'edit' and entity.name = 'FormEdss' and propertyKey =
>> 'edssScore') -> toOneUIStyle = "radio"
>>
>> The rules regarding destinationDisplayKey and destinationSortKey are
>> ignored. I'm obviously doing something wrong.
>
> Try
>
> (propertyType = 'r' and relationship.destinationEntity.name = 'EdssScore')
> => keyWhenRelationship = "description"
>
> As for sorting, I don't see anything on D2WEditToOneRelationship related to
> sorting... I would guess it tries to sort using your display key. If you
> want to specify some other sort key and you're using Project Wonder, I think
> you can do so with ERD2WEditToOneRelationship using the 'sortKey' RHS key.
>
> Ramsey
>
>> Each edssScore has a "description" property and a "displayOrder"
>> property, the latter an integer.
>>
>> I've tried lots of permutations of the destination keys, including
>> edssScore.description for example.
>>
>> Grateful for any help!
>>
>> Best wishes,
>>
>> Mark
>>
>> --
>> Dr. Mark Wardle
>> Specialist registrar, Neurology
>> Cardiff, UK
>
>
>



--
Dr. Mark Wardle
Specialist registrar, Neurology
Cardiff, UK
 _______________________________________________
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

References: 
 >D2W to one relationship sort ordering and display (From: Mark Wardle <email@hidden>)
 >Re: D2W to one relationship sort ordering and display (From: Ramsey Lee Gurley <email@hidden>)

  • Prev by Date: mod_WO
  • Next by Date: Re: Why would native code in a java process fail - but only if started by wotaskd?
  • Previous by thread: Re: D2W to one relationship sort ordering and display
  • Next by thread: Stable Installer Update
  • Index(es):
    • Date
    • Thread