• 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
Weird problem with D2W rules
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Weird problem with D2W rules


  • Subject: Weird problem with D2W rules
  • From: Freddie Tilley <email@hidden>
  • Date: Fri, 29 Mar 2013 20:40:46 +0100

Hi, 

I'm having a strange issue with a D2w rule.

the left hand side is as follows:

(task = 'edit' and entity.name = 'AMEvent' and object.eventType = '1') with a right hand side key of displayPropertyKeys

The thing is is that the object.eventType will get called on objects that aren't even AMEvent objects, which will then call the
handleQueryWithUnboundKey of the enterprise object. Even when deleting an object in a list view it throws a java.lang.NullPointerException in EOUtilities.java when handleQueryWithUnboundKey is called on the deleted object.

When debugging the d2w rule it shows the object.eventType as a dependancy even on totally unrelated pages.

DEBUG er.directtoweb.rules.displayPropertyKeys.cache (ListAMGroup) - CACHE: displayPropertyKeys for propertyKey: null depends on: ("pageConfiguration", "task", "entity", "object.eventType", "propertyKey")

Even disabling the rule in RuleModeler will still still call object.eventType on the displayPropertyKeys rhs key

CACHE: displayPropertyKeys for propertyKey: null depends on: ("pageConfiguration", "task", "entity", "RuleIsDisabled", "object.eventType", "propertyKey")

Only deleting the rule will prevent the action from being called.

The idea of the rule is to show certain properties for a certain event type. Any idea how to solve this?

-- 
Freddie Tilley
 _______________________________________________
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:
    • Re: Weird problem with D2W rules
      • From: Ramsey Gurley <email@hidden>
    • Re: Weird problem with D2W rules
      • From: David Holt <email@hidden>
  • Prev by Date: AjaxObserveField problems
  • Next by Date: Re: Weird problem with D2W rules
  • Previous by thread: Re: AjaxObserveField problems
  • Next by thread: Re: Weird problem with D2W rules
  • Index(es):
    • Date
    • Thread