• 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: Accessing WOAssociation in WOComponent with 5.2.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing WOAssociation in WOComponent with 5.2.3


  • Subject: Re: Accessing WOAssociation in WOComponent with 5.2.3
  • From: David Teran <email@hidden>
  • Date: Sat, 14 Aug 2004 11:37:14 +0200

Thanks, but __associationWithName is not found either in 5.2.3. Any other way to get the path of the object that is bound to a key for WOComponent?


... did you open javabrowser... ok, its not double __ its single _ but it should not be too hard to find public methods with javabrowser.

david


David


On Aug 13, 2004, at 1:15 PM, David Teran wrote:

In prior versions of WO (5.1), I would do the following to get access to the association for a binding so I could get the key path to the object.

WOAssociation association = (WOAssociation)((NSArray)valueForKey("_associations")).objectAtIndex( bindingIndex);

This would result in:
association.keyPath(): salesContact.companyName

Now that I am upgrading to 5.2.3, I can't get the "_associations" object any more. Any suggestions on how to get an association for a binding for a WOComponent so I can get the path of the object that is bound to the binding?



Although _ methods are 'public but private' which means do not use them, you could try __associationWithName(String bindingName) method.


regards David
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Accessing WOAssociation in WOComponent with 5.2.3 (From: David Sargent <email@hidden>)
 >Re: Accessing WOAssociation in WOComponent with 5.2.3 (From: David Teran <email@hidden>)
 >Re: Accessing WOAssociation in WOComponent with 5.2.3 (From: David Sargent <email@hidden>)

  • Prev by Date: SQLite and EOF
  • Next by Date: Re: WO blocking/threading question
  • Previous by thread: Re: Accessing WOAssociation in WOComponent with 5.2.3
  • Next by thread: [SOLVED]: WOXMLDecoder
  • Index(es):
    • Date
    • Thread