• 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 doesn't this rule work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why doesn't this rule work?


  • Subject: Re: Why doesn't this rule work?
  • From: Ramsey Lee Gurley <email@hidden>
  • Date: Tue, 12 Oct 2010 06:59:10 -0400

Wrong assignment class. You need a key value assignment. Although, I don't know if that will actually work either.  You have to at least request that value from the context for it to assign it to the key... but it might just assign that to the string key.  If you are trying to provide initial values, you may want to look at ERXEntityClassDescription javadocs or set it up in the init() method on your entity class.

Ramsey

On Oct 11, 2010, at 11:31 PM, Richard Palmer wrote:

> I have two entities,
>                                 Activity <<----------------> Customer
>
> Why doesn't this rule set a Customer in Activity?
>
>    200 : (task = 'edit' and entity.name = 'Activity' and tabKey = 'Customer') => object.toCustomer = session.customerFocus [com.webobjects.directtoweb.EntityAssignment],
>
>
> session.customerFocus() is a method returning a customer stored in session.  This is in a ERMODWizardCreationPage whose first Tab Section is 'Customer'.
>
> Richard Palmer _______________________________________________
> 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

 _______________________________________________
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:
    • Threads, was Re: Why doesn't this rule work?
      • From: Richard Palmer <email@hidden>
References: 
 >Why doesn't this rule work? (From: Richard Palmer <email@hidden>)

  • Prev by Date: Re: New WO WebSite online
  • Next by Date: ERRest and Binary PLIST
  • Previous by thread: Why doesn't this rule work?
  • Next by thread: Threads, was Re: Why doesn't this rule work?
  • Index(es):
    • Date
    • Thread