• 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: Wonder D2W and relationships on same entity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wonder D2W and relationships on same entity


  • Subject: Re: Wonder D2W and relationships on same entity
  • From: Ramsey Gurley <email@hidden>
  • Date: Thu, 19 Jul 2012 11:34:48 -0700

On Jul 19, 2012, at 11:07 AM, Pierre Gilquin wrote:

> Thanks your help Ramsey,
>
> I try what you said, now the query panel starts but I get the error message :
>
>
> There is no element on this page with the id "MUC_EditRelationshipEmbeddedEACPTContact".
>
> Another rule to add ?


Not sure, but I would guess idForParentMainContainer just looking at the code. It sounds like the id is being generated somewhere else using the same process, but without reaching the value set in your rule.

You could try something like

100: session.context.page.d2wContext.propertyKey = 'contactTypeA1' && pageConfiguration like 'QueryEmbedded*' => idForParentMainContainer = "hokuspokus" [Assignment]

But I can't say if that will work or not. I didn't have this problem when I did it 2 years ago.


> I try also
>
> (task = 'edit' and entity.name = 'EACPTContact' and propertyKey = 'contactTypeA1') => idForMainContainer = "contactTypeA1" [Assignment]
>
> but no panel !


That doesn't work because your d2wContext is different in each nested page. That's why you have to go up to the top page using session.context.page in the rule I gave you.


> Where can I find the syntax and reserved word for editing the rules ?


To find the RHS keys, you basically have to look at source code and existing rule files. They aren't well documented.

If you are interested in the process that is generating the idForMainContainer, I believe that's in ERMDDefaultCSSAssignment.idForMainContainer

Ramsey
 _______________________________________________
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: 
 >Wonder D2W and relationships on same entity (From: Pierre Gilquin <email@hidden>)
 >Re: Wonder D2W and relationships on same entity (From: David Holt <email@hidden>)
 >Re: Wonder D2W and relationships on same entity (From: Pierre Gilquin <email@hidden>)
 >Re: Wonder D2W and relationships on same entity (From: Fabian Peters <email@hidden>)
 >Re: Wonder D2W and relationships on same entity (From: Pierre Gilquin <email@hidden>)
 >Re: Wonder D2W and relationships on same entity (From: Ramsey Gurley <email@hidden>)
 >Re: Wonder D2W and relationships on same entity (From: Pierre Gilquin <email@hidden>)

  • Prev by Date: Re: Wonder D2W and relationships on same entity
  • Next by Date: Git repo layout for own WO projects
  • Previous by thread: Re: Wonder D2W and relationships on same entity
  • Next by thread: Re: Wonder D2W and relationships on same entity
  • Index(es):
    • Date
    • Thread