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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
