• 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: Ramsey Lee Gurley <email@hidden>
  • Date: Thu, 20 Aug 2009 07:23:02 -0400


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


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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 to one relationship sort ordering and display
      • From: Mark Wardle <email@hidden>
References: 
 >D2W to one relationship sort ordering and display (From: Mark Wardle <email@hidden>)

  • Prev by Date: Re: WO 5.4 under windows
  • Next by Date: Stable Installer Update
  • Previous by thread: D2W to one relationship sort ordering and display
  • Next by thread: Re: D2W to one relationship sort ordering and display
  • Index(es):
    • Date
    • Thread