Re: ERDList.CreateObjectDelegate
Re: ERDList.CreateObjectDelegate
- Subject: Re: ERDList.CreateObjectDelegate
- From: Ângelo Andrade Cirino <email@hidden>
- Date: Thu, 13 Sep 2012 13:07:56 -0300
Hi Antoine,
I had already tried it, my rule is
100 : entity.name = 'Phone' => createObjectDelegate = "com.visionar.visiontur.delegates.CreatePhoneDelegate" [er.directtoweb.ERDDelayedObjectCreationAssignment]
But it doesn't work. Inspecting the D2W properties and querying the "D2W Key has vale" with a value of createObjectDelegate I am able to see that the key is correctly set, but the delegate isn't' called. I put some NSLog outputs in the delegate but there is no output and an exception is raised when I select the new button.
What I am trying to accomplish is the creation of an entity in a chain of relationships. This is the model I am using:
Person -> Party -> CommunicationMedia -> Phones
The task is EditPerson and the entity I am trying to create is in an embedded pageConfiguration created by D2W and named EditRelationshipEmbeddedPhone.
Since the user does not need to know that there must be created a chain of entities to enter a new phone and the user interface will be a lot simpler if I just show a tab with the telephones toMany relationship, with a button to insert a new one, I tried to implement a kind of up cascade to create the appropriate entities. In other words, when inserting a phone I intend the createObjectDelegate to create the CommunicationMedium and add itself to the relationship, as well going up and then adding the new CommunicationMedium to the Party.CommunicationMedia relationship.
Regards,
Angelo
Em 13/09/2012, às 12:28, Antoine Berry escreveu:
> Hello,
>
> What does your rule looks like? You have to use the complete class path and use the following assignment : er.directtoweb.ERDDelayedObjectCreationAssignment
>
> Should be something like :
>
> 80 : pageConfiguration like 'myPage' => createObjectDelegate = my.company.application.ui.delegates.MyDelegate [er.directtoweb.ERDDelayedObjectCreationAssignment]
--
Esta mensagem foi verificada pelo sistema de antivírus e
acredita-se estar livre de perigo.
_______________________________________________
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