• 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 display rules for relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W display rules for relationships


  • Subject: Re: D2W display rules for relationships
  • From: David LeBer <email@hidden>
  • Date: Tue, 26 Apr 2011 18:11:09 -0400

On 2011-04-26, at 5:56 PM, Joe Little wrote:

> Lets focus on *Note pages and their display of Projects (one to one)..
> That answer is ERD2WDisplayToOne or ERMDEditRelationship

ERD2WDisplayToOne is going to use keyWhenRelationship.

ERMEditRelationship embeds an ERMODEditRelationshipPage so it will get it's on copy of the d2wContext and it's own pageConfiguration. So use a rule something like:

pageConfiguration = 'EditRelationshipEmbeddedProject' => displayPropertyKeys = ("name") [Assignment]

If you need to qualify further (i.e: change the displayPropertyKeys depending on what the parent object is) you can add an 'and' to something like: parentPageConfiguration = 'EditNote'

Note: Typed directly into mail, YMMV, it's the end of the day, don't quote me, look... bunnies!

>
> On Tue, Apr 26, 2011 at 2:41 PM, David LeBer
> <email@hidden> wrote:
>>
>> On 2011-04-26, at 5:34 PM, Joe Little wrote:
>>
>>> I'm trying to get any Projects that have Notes to display just the
>>> noteText, and likewise, all Notes to display just the project Name for
>>> their relationships, but its always shows all the fields.
>>>
>>> (pageConfiguration like '*Project' and propertyKey = 'notes') =>
>>> displayPropertyKeys = ("noteText")
>>> (pageConfiguration like '*Note' and propreryKey = 'project) =>
>>> displayPropertyKeys = ("name")
>>>
>>> Don't seem to have any affect. Any clue to what I'm doing wrong? I
>>> used the D2W inspector, and those should be the rules for what I have.
>>
>> What component is being used to display the relationship to Notes for a Project, and what component is displaying the Project for a Note?

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: 	http://codeferous.com
blog: 	http://davidleber.net
profile:	http://www.linkedin.com/in/davidleber
twitter:	http://twitter.com/rebeld
--
WOWODC 2011 :  July 1-2-3, Montreal. http://wowodc.com




 _______________________________________________
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 display rules for relationships
      • From: Joe Little <email@hidden>
References: 
 >D2W display rules for relationships (From: Joe Little <email@hidden>)
 >Re: D2W display rules for relationships (From: David LeBer <email@hidden>)
 >Re: D2W display rules for relationships (From: Joe Little <email@hidden>)

  • Prev by Date: Re: D2W display rules for relationships
  • Next by Date: Re: AjaxUpdateContainer ?
  • Previous by thread: Re: D2W display rules for relationships
  • Next by thread: Re: D2W display rules for relationships
  • Index(es):
    • Date
    • Thread