Re: Wonder D2W and relationships on same entity
Re: Wonder D2W and relationships on same entity
- Subject: Re: Wonder D2W and relationships on same entity
- From: Pierre Gilquin <email@hidden>
- Date: Thu, 19 Jul 2012 20:07:10 +0200
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 ?
I try also
(task = 'edit' and entity.name = 'EACPTContact' and propertyKey = 'contactTypeA1') => idForMainContainer = "contactTypeA1" [Assignment]
but no panel !
Where can I find the syntax and reserved word for editing the rules ?
Hi Pierre,
We should really post this somewhere obvious. It's a known issue with the ERModern look due of the way it handles ids for update containers.
If you look in your page source, you'll see more than one ajax update container with the same id. That's what is causing your error. IDs must be unique.
A workaround is to put the relationships in separate tabs/steps so there is no id collision. Another workaround is to assign the idForMainContainer manually with a rule.
The one time I had the problem, I assigned the id manually. I don't remember the exact LHS, but I think it was similar to:
100: session.context.page.d2wContext.propertyKey = 'contactTypeA1' => idForMainContainer = "hokuspokus" [Assignment]
100: session.context.page.d2wContext.propertyKey = 'contactTypeA2' => idForMainContainer = "abracadabra" [Assignment]
That assumes your top level page is the one with the duplicate ids.
Johan H. recently had this same problem. He may have some other workarounds to share :-)
Ramsey
On Jul 19, 2012, at 9:18 AM, Pierre Gilquin wrote:
Thanks Fabian,
As a complete beginner with d2w, I have not any idea how to make many tabs.
By default, I have a "Main" tab. You are taking about this tab, right ?
Hi Pierre,
What are your display property keys?
Something like ("contactTypeA1","contactTypeA2","contactTypeB1" etc)
What do you mean by "not responding"?
When clicking "Search" or "New" nothing happen. Well only the image "wait" !
For the first one, I get the "Query Contact" panel.
I seem to have come across this, but don't remember any details. You could try using a tab inspect page, placing each relationship on a different tab.
Fabian
David
On 2012-07-19, at 8:13 AM, Pierre Gilquin wrote:
hi,
I have a problem with a wonder D2W app.
In my data model, an entity A has many relationships on the same entity B.
NB ; Not a to-many relationship but several to-one relationships.
In edit mode, the first visible relationship can be managed but all others relationships are not responding.
Thanks in advance for any help
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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