• 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
How to use WOAssociation.associationWithKeyPath()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to use WOAssociation.associationWithKeyPath()


  • Subject: How to use WOAssociation.associationWithKeyPath()
  • From: Kevin Xiaowen Ren <email@hidden>
  • Date: Fri, 10 Sep 2004 17:22:06 +1200

HI,

From parent component I past some binding values to subcomponent,like
list = aList; item = modelItem;displayString = modelItem.name;

The subcomponent is WODynamicElement with NSDictionary(WOAssociation,key ).

i can get the actual value aList like:

 WOAssociation a = (WOAssociation)associations.objectForKey(list);
 a.valueInComponent(component);

But when I want to get displayString, I got problem.
Because the keyPath is "modelItem.name", I can't use valueInComponent() method.
item is dynamic in list loop , but "modelItem" is static varible name.

Try to use WOAssociation.associationWithKeyPath() to get dynamic value, any one have any idae?

Sorry about my English,


thanks

kevin
_______________________________________________
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.


  • Prev by Date: Re: resubmitting form data when clicking "back"
  • Next by Date: RE: resubmitting form data when clicking "back"
  • Previous by thread: RE: resubmitting form data when clicking "back"
  • Next by thread: Table Column Limit for WOReps?
  • Index(es):
    • Date
    • Thread