I have a custom data type, and I just added the ability to tie
categories to records of that datatype.  I am using the
ruleLatestWhatevers rule to show records from this datatype, and when
I try to limit output to specific categories via the rule editor, I
get the error:

Error with rule 'Testimonials: Show Random'
The OBJECTID parameter to the getData function is required but was not
passed in.

The method call in question is:

<cfset qObjectsMatchingCategories = createObject
("component","farcry.core.packages.farcry.category").getData
(typename="testimonials", lCategoryids=stobj.Category) />

A little investigation lead me down this path:

/projects/projectname/webskins/ruleRandomTestimonials/execute.cfm
calls getData() on:
farcry.core.packages.farcry.category which is empty but extends:
farcry.core.packages.types.dmCategory which is empty but extends:
farcry.core.packages.types.category which is not empty but inherits
getData from:
farcry.core.packages.types.types which inherits getData from:
farcry.core.packages.fourq.fourq

At this point, I'm dealing with a function meant to be generic enough
to handle data access for every type of data in the system.  Sure
enough, the objectid argument is required.  This leaves me with two
questions: One, what should I be passing in for objectid?  Two, does
this mean that limiting by categories is broken for all rules?

BTW, I tried passing objectid=createuuid() and got the error "Error
Executing Database Query. Table 'projectname.category' doesn't exist
"  I do, however, have a dmCategory.

Essentially, I have no idea where the disconnect is.  Is something
funny because the column name of my "category" on my datatype is
"audiences" instead of "categories"?  Is there something more I should
be doing in my rule's execute.cfm?  Is there a bug or two in the fourq
component?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to