• 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: Why is my key always null?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is my key always null?


  • Subject: Re: Why is my key always null?
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 09 Dec 2011 15:44:28 -0800

propertyKey vs key?


On 2011-12-09, at 3:40 PM, James Cicenia wrote:

> Here is my custom component:
>
> public class LinkToProject extends ERDCustomComponent {
> 	public EOEnterpriseObject object;
> 	public String key;
>
>     public LinkToProject(WOContext context) {
>         super(context);
>     }
>
>
>     public EOEnterpriseObject object() {
>         return (EOEnterpriseObject) valueForBinding("object");
>       }
>
>       public String key() {
>         return (String) valueForBinding("key");
>       }
>
>
>     public String projectTitle(){
>     	return (String)object().valueForKeyPath(key());
>     }
>
>
>
> The object comes over just fine ,but always a null key?
> here is my rule:
> (task = 'list' and entity.name = 'PortfolioProject' and propertyKey = 'title') componentName = 'LinkToProject'
>
>
> Any ideas why the key would be null and not 'title' ?
>
> Thanks
> James
>
> _______________________________________________
> 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

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







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

References: 
 >Why is my key always null? (From: James Cicenia <email@hidden>)

  • Prev by Date: Why is my key always null?
  • Next by Date: Re: Why is my key always null?
  • Previous by thread: Why is my key always null?
  • Next by thread: Re: Why is my key always null?
  • Index(es):
    • Date
    • Thread