If you are not using a content object type you may just have to
cfinclude your display file in the execute method. Your execute method
would probably look something like:
<cffunction access="public" name="execute" output="true">
<cfargument name="objectID" required="Yes" type="uuid"
default="">
<cfargument name="dsn" required="false" type="string"
default="#application.dsn#">
<cfset var stObj = this.getData(arguments.objectid)>
<cfinclude
template="/farcry/#application.applicationname#/#application.path.handle
r#/#stObj.typename#/#stObj.displayMethod#.cfm">
</cffunction>
I just lifted this include statement from the getDisplay method of the
farcry_core/packages/types/types.cfc and modified it slightly to work
directly in the execute method. I haven't tested it, but I think it
should work.
Just out of curiosity, any reason why you are not using a custom type?
Best,
--Nathan
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf
>Of Ora Martindale
>Sent: Tuesday, June 22, 2004 4:06 PM
>To: FarCry Developers
>Subject: [farcry-dev] Re: Newbie Custom Rules Question -
>partially resolved
>
>Thanks to everyone I found the problem. Taking Nathan's advice
>I uncommented the cfdumps in the fourq.createData method. This
>revealed that it was trying to insert a NULL value into a
>field that didn't allow NULLs. This was caused because I was
>requiring a property in my component, but not passing it a
>default. So I can now add my custom rule to a container.
>
>This brings up my next question: Nothing is displaying. I have
>3 display cfm files in the
><applicationname>/webskin/jhaWeather/ folder. These three pull
>into the update method of my custom rule fine and I can update
>it. However nothing is displaying on the front end, because
>I'm not sure how to call it in my execute method.
>
>The display files I've created a strictly HTML (no CFML) with
>less than 50 lines; basically a test display to get me
>started. I've seen several questions in the archives regarding
>displays using custom types or the built in types, but I'm not
>using custom types in this case.
>
>
>Thanks in advance,
>
>Ora
>
---
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/