• 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: D2W Can I access Object property values from the rule system?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W Can I access Object property values from the rule system?


  • Subject: Re: D2W Can I access Object property values from the rule system?
  • From: Markus Ruggiero <email@hidden>
  • Date: Thu, 01 Dec 2011 22:10:56 +0100

Ramsey hits again!

Thanks  a lot. The most obvious is it. Whenever I teach programming (and WO) I tell my students "when it starts to get complicated it most probably is wrong". Sometimes I do not follow my own advice.

Thanks again
---markus---

On 28.11.2011, at 18:27, Ramsey Gurley wrote:

>
> On Nov 28, 2011, at 9:24 AM, Markus Ruggiero wrote:
>
>> I need a rule like the following (pseudo code):
>>
>> pageConfiguration='EditMyEntity' and {the MyEntityObject has a value of 'SOMETHING' in its KIND-attribute} => displayPropertyKeys = ....
>>
>> Background:
>>
>> I have dozens of ElectronicDocuments. Each has a to-one reference to a DocumentType (there are many many such types). All documents behave the same, and the user is free to change the document type. However for one type of document I need to have different displayPropertyKeys.
>>
>> Thanks a lot
>> ---markus---
>
> You should be able to do something like
>
> object.documentType.typeString == 'SOMETHING'
>
> Just make sure to terminate your object and session keypaths on an attribute and not an eo.  I'm not aware of any special caching done for EOs in the rule system, so that would likely result in a big pile of wasted memory.
>
> Ramsey
>
>

 _______________________________________________
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

  • Prev by Date: Re: Question on WebObjects, WOLips and Wonder Tutorial, part 2
  • Next by Date: custom handling of edit/inspect buttons on list page
  • Previous by thread: Re: Question on WebObjects, WOLips and Wonder Tutorial, part 2
  • Next by thread: custom handling of edit/inspect buttons on list page
  • Index(es):
    • Date
    • Thread