• 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: D2W question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W question


  • Subject: Re: D2W question
  • From: Ramsey Gurley <email@hidden>
  • Date: Thu, 21 Aug 2008 13:33:11 -0400


On Aug 21, 2008, at 12:46 PM, Guido Neitzer wrote:

On 21.08.08 10:29, "Ramsey Gurley" <email@hidden> 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 you
can 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)Console
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.
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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: D2W question
      • From: Ramsey Gurley <email@hidden>
References: 
 >Re: D2W question (From: Guido Neitzer <email@hidden>)

  • Prev by Date: Re: Use of finalize methods in WO
  • Next by Date: Re: Automatic data generation
  • Previous by thread: Re: D2W question
  • Next by thread: Re: D2W question
  • Index(es):
    • Date
    • Thread