On Aug 21, 2008, at 12:46 PM, Guido Neitzer wrote:
On 21.08.08 10:29, "Ramsey Gurley" <[EMAIL PROTECTED]> wrote:Well, the manufacturer PropertyName displays in the wizard page, there's just no control to edit the value. It's blank...Then you need to specify which what component it should be displayed: propertyName = 'manufacturer' => componentName = ' ERD2WEditToOneRelationship' [100] Or(task = 'edit' and not (smartRelationship.isToMany = 1)) => componentName ='ERD2WEditToOneRelationship' [100]There should be already something that does that in ERDirectToWeb. But youcan try with that. You know how to read / write these rules?I entered a blanket *true* => isEntityEditable = true and one for deletable as well. There's still no trash cans in the list view, no way to delete or edit anything... just create and query. It's like everything is read only except the wizard page and even relationships are uneditable there. I am using erprototypes.Can you send me a screenshot so that I know where you are? cug
Ok, making progress now .... I've been bitten by "the rules didn't refresh" problem again :-/ I swear I refreshed the workspace! Anyway, the original advice works. Now my two blanket rules give me the trash cans and edit symbols, but attempting to create a product throws an error. Looking at the error, I'm guessing I just need to define a key on the entity that is used to identify the entity in the editing control... ?? Or am I way off on that guess?
My model looks like this *Manufacturer -name ->>products *Product -productName -productPrice ->manufacturer (Error in the browser)Browser Error:java.lang.IllegalStateException: Destination entity could not be retrieved from EO of bindings. Either set the "sourceObject" to an EO, provide the "sourceEntityName" and "relationshipKey", the "destinationEntityName" or the "possibleChoices" binding.
Reason:Destination entity could not be retrieved from EO of bindings. Either set the "sourceObject" to an EO, provide the "sourceEntityName" and "relationshipKey", the "destinationEntityName" or the "possibleChoices" binding.
(Error in the console)Consolejava.lang.IllegalStateException: Destination entity could not be retrieved from EO of bindings. Either set the "sourceObject" to an EO, provide the "sourceEntityName" and "relationshipKey", the "destinationEntityName" or the "possibleChoices" binding. at er .extensions .components .ERXArrayChooser._destinationEntityName(ERXArrayChooser.java:263) at er .extensions .components.ERXArrayChooser.destinationEntityName(ERXArrayChooser.java: 234) at er .extensions.components.ERXArrayChooser.dataSource(ERXArrayChooser.java: 317) at er.extensions.components.ERXArrayChooser.theList(ERXArrayChooser.java: 420) at er .extensions .woextensions.WOToOneRelationship.theList(WOToOneRelationship.java:113) at er.extensions.components.ERXArrayChooser.uiStyle(ERXArrayChooser.java: 351) at er.extensions.components.ERXArrayChooser.isPopup(ERXArrayChooser.java: 390)
Ramsey
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
