Re: D2W to one relationship sort ordering and display
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