• 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: Selectors for enum types?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W: Selectors for enum types?


  • Subject: Re: D2W: Selectors for enum types?
  • From: Paul Hoadley <email@hidden>
  • Date: Thu, 24 May 2012 19:33:17 +0930

Hi Ramsey,

On 24/05/2012, at 1:21 PM, Ramsey Gurley wrote:

> The edit to one relationship component will work for enums if you provide the list.

I watched your presentation again, and thought I'd go with this option as the simplest for now.  At the moment, I'm just trying to get it working on the query page, so I've got this LHS for three rules:

(task = 'query' and entity.name = 'Provision' and propertyKey = 'status')

Then:

=> componentName = "ERD2WQueryToOneRelationship"
=> keyWhenRelationship = "name"
=> restrictedChoiceKey = "object.availableStatuses"

where availableStatuses() is a method on Provision that returns 'new NSArray<Status>(Status.values());'.

I'm getting an IllegalStatusException when I try and load that (ERMODQueryPage) page:

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.

Is it obvious what I'm doing wrong here?


--
Paul Hoadley
http://logicsquad.net/




 _______________________________________________
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: Selectors for enum types?
      • From: Ramsey Gurley <email@hidden>
References: 
 >D2W: Selectors for enum types? (From: Paul Hoadley <email@hidden>)
 >Re: D2W: Selectors for enum types? (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: log4j
  • Next by Date: Re: Session awake after shell-script run
  • Previous by thread: Re: D2W: Selectors for enum types?
  • Next by thread: Re: D2W: Selectors for enum types?
  • Index(es):
    • Date
    • Thread