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

Re: Classcastexception _EOCheapMutableArray


  • Subject: Re: Classcastexception _EOCheapMutableArray
  • From: Lachlan Deck <email@hidden>
  • Date: Sun, 9 Dec 2007 14:29:24 +1100

On 09/12/2007, at 12:16 PM, Don Lindsay wrote:

I want to use a WOToManyRelationship control.

I put in the following
datasource:
sourceObject: 		agents
sourceEntityName: 	"Agents"
relationshipkey: 		"mgtOfc"

sourceObject should be bound to a key that returns an EOEnterpriseObject not an array of objects.


is "mgt0fc" a toMany relationship?

When I do this the wo relationship does not even display in the form.

I put in the following
datasource:
sourceObject:		agents.mgtOfc

Again, if "agents" is an array, then agents.mgtOfc is going to return an array containing the results of performing mgt0fc on each agent in agents. If agents is badly named and does indeed return an EOEnterpriseObject (and not one within an array) then agents.mgt0fc looks like it would be an array rather than a single object.


You should have something like:
sourceObject = myAgent;
sourceEntityName = "Agent";
relationshipKey = managedOrgAssociations;
destinationDisplayKey = "organization.name";

Check out the api for WOJExtensions:
developer.apple.com/documentation/WebObjects/Reference/WOJExtensions/ index.html


with regards,
--

Lachlan Deck



_______________________________________________
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: Classcastexception _EOCheapMutableArray
      • From: Don Lindsay <email@hidden>
References: 
 >Classcastexception _EOCheapMutableArray (From: Don Lindsay <email@hidden>)
 >Re: Classcastexception _EOCheapMutableArray (From: Chuck Hill <email@hidden>)
 >Re: Classcastexception _EOCheapMutableArray (From: Don Lindsay <email@hidden>)
 >Re: Classcastexception _EOCheapMutableArray (From: Don Lindsay <email@hidden>)
 >Re: Classcastexception _EOCheapMutableArray (From: Don Lindsay <email@hidden>)

  • Prev by Date: Re: Classcastexception _EOCheapMutableArray
  • Next by Date: Broken EO model problem
  • Previous by thread: Re: Classcastexception _EOCheapMutableArray
  • Next by thread: Re: Classcastexception _EOCheapMutableArray
  • Index(es):
    • Date
    • Thread