Ora,
Just looking at this and comparing against custom rules that I have successfully created. These are 2 things that have caught me out before.
The cfcomponent should extend="farcry.farcry_core.packages.rules.rules" cant see this as it is not included in your code snip.
Here is an example of one of mine:
<cfcomponent displayname="HS XML Amazone Lite Feed Publishing Rule" extends="farcry.farcry_core.packages.rules.rules" hint="Displays an XML feed within a container">
The other thing that has caught me out before is the name on the contentobjectdata ensure it is the correct spelling of you cfc
<q4:contentobjectdata typename="#application.custompackagepath#.rules.ruleHSXMLAmazonLite" stProperties="#stObj#" objectID="#stObj.objectID#">
hth, Chris.
Ora Martindale wrote:
I've attempted to create a custom rule using the How-To guide on the subject. I copied the update code pretty closely from the How-To guides CFC (see code at bottom). I placed the rule CFC in the <application name>/packages/rules/ directory and sucessfully deployed it.
When I attempt to to add the rule to a container's list it adds it okay, but when I go to the "Configure Content" tab, I get the following error:
"Element OBJECTID is undefined in STOBJ."
It appears that arguments.objectId has a UUID value, but an empty structure gets returned to stObj when the this.getData function is called.
Can anyone tell me what I'm doing wrong?
Code:
<cffunction access="public" name="update" output="true" hint="Edit/Update method. Shows an edit form then passes structure to update method">
<cfargument name="objectID" required="Yes" type="uuid" default="">
<!--- import tag library ---> <cfimport taglib="/farcry/fourq/tags/" prefix="q4"> <cfimport taglib="/farcry/farcry_core/tags/navajo/" prefix="nj">
<cfset stObj = this.getData(arguments.objectid)>
--- You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
