Can someone give me an example on how to use this component? It
seems, that it should do what I want, but I can't get it working
properly. Perhaps someone has an example?
Background: I want to use it for an entity called "OffersPage" which
has a relationship "offers". These offers can only appear on exactly
this page, so I guess that ERDEditOwnedRelationship is the perfect
component to use.
PharmaLine, Essen, GERMANY
Software and Database Development
From: Riccardo De Menna <demenna@rd...> - 2009-11-11 03:26:23
I'm trying to use ERDEditOwnedRelationship but I'm missing something.
I'm working on a to-many setup like the following:
Person < Membership > Club
In my mind I'd like both 'Person' and 'Club' to have a mandatory,
owns, relationship to 'Membership' and I'd like to leave the task to
create 'Membership' records to EOF.
Let's say for instance that we are creating a new 'Person'...
Since membership to a club is a mandatory requirement, I need to click
on the 'Add' button before I can save my 'Person'.
The button leads me to the creation page for the 'Membership' record,
but then doesn't allow me to save and go back to the original 'Person'
one because when I save, validation fails claiming that 'Membership'
has a mandatory relationship with 'Person'.
Checking the code I see that relationship linking is postponed for new
records (for peer ec issues I read) through the NextPageDelegate
thingy. But that's blocking the process from getting further. What am
I missing? Is there a way to postpone validation after the
NextPageDelegate has finally connected the owned record to the owner?
Obviously if I remove the mandatory requirements from the model,
everything works fine and the relationship is correctly created when I
save the Person record. But the relationship SHOULD be mandatory.