Nathan,

You had asked why I was not using a custom type to a question about
using custom rules. I wanted to apologize for not getting back to you
quicker and to give my reason. Perhaps even I'm not using the custom
rules as intended or in the most appropriate manner.

The Custom Rule I have created is a weather rule which will pull in data
from a database separate from the FarCry database. That database is
populated every fifteen minutes by calling to a third party data
provider's web service. We have service level agreements with this third
party to guarantee us a certain level of "up time." The weather
information in the separate database will be shared by several sites
using FarCry and sites that are built without FarCry.

Another use I'm considering for custom rules are a couple of forms. One
is a login form in which I need the user to be able to specify the
action of the form, i.e. what site it submits to, and the wording that
appears above the username and password fields. My thinking is that
using a custom rule will allow me to let the site administrator set
these properties and to determine where on the page they would like to
place this login form.

In the second form, it is a simple form but I would again like to give
the site administrator the ability to place it in any of several
containers on their home page.

If there is a better/preferred way of doing some of these things, please
let me know.

Thanks,

Ora Martindale

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nathan
Mische
Sent: Tuesday, June 22, 2004 12:25 PM
To: FarCry Developers
Subject: [farcry-dev] Re: Newbie Custom Rules Question

Ora,

I may not have been clear, but you do not want comment out the cftry and
cfcatch, just un-comment-out (remove the comment tags surrounding) the
contents of the cfcatch blocks. This will cause the cfcatch blocks to
dump the error and abort cf processing instead of continuing silently.

This is what I had to do to track down some of the problems I was having
with rules in Oracle. It may help you track down your problem.

--Nathan
 

>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Ora 
>Martindale
>Sent: Tuesday, June 22, 2004 12:33 PM
>To: FarCry Developers
>Subject: [farcry-dev] Re: Newbie Custom Rules Question
>
>Nathan,
>
>I commented out both the cftry and cfcatches and I'm not generating any

>errors when I deploy the rule. Any other thoughts?
>
>Thanks,
>
>Ora
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Nathan

>Mische
>Sent: Tuesday, June 22, 2004 8:59 AM
>To: FarCry Developers
>Subject: [farcry-dev] Re: Newbie Custom Rules Question
>
>It sounds like the fourq.createData method is failing. Right now 
>createData silently catches errors on insert, so if you want to find 
>out why your rule is not getting created try going into 
>fourq/_fourq/createData.cfm and uncommenting the cfcatch contents on or

>around lines 215 and 226.
>
>HTH,
>
>--Nathan
> 
>>-----Original Message-----
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of Ora 
>>Martindale
>>Sent: Tuesday, June 22, 2004 9:46 AM
>>To: FarCry Developers
>>Subject: [farcry-dev] Re: Newbie Custom Rules Question
>>
>>I've determined that the reason I'm getting the error is
>because there
>>is no data in the custom rule table that was created when I deployed 
>>it.
>>Therefore when the getData method is called that should populate the 
>>structure it returns a new structure with nothing in it.
>>
>>Did I miss a step where I should populate the table with some default 
>>data or should FarCry have done that when I deployed it?
>>
>>Ora Martindale
>>
>>-----Original Message-----
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of Kola 
>>Oyedeji
>>Sent: Friday, June 18, 2004 9:25 AM
>>To: FarCry Developers
>>Subject: [farcry-dev] Re: Newbie Custom Rules Question
>>
>>Nathan
>>
>>I had exactly the same problem with the same example - I had
>to make a
>>few changes - perhaps there is a bug in the example, I'm not sure
>>
>>Kola
>>
>>>> -----Original Message-----
>>>> From: [EMAIL PROTECTED]
>>[mailto:bounce-farcry-dev-
>>>> [EMAIL PROTECTED] On Behalf Of Nathan Mische
>>>> Sent: 17 June 2004 00:00
>>>> To: FarCry Developers
>>>> Subject: [farcry-dev] Re: Newbie Custom Rules Question
>>>> 
>>>> I seem to recall having the same issue with a few of my
>>custom rules.
>>I
>>>> think I was able to get my custom rules working by
>>restarting the CF
>>>> server. I know that sounds extreme (because it is ;-), and I can't
>>say
>>>> with %100 certainty that this is what got my custom rules working,
>>but
>>>> that's what I remember doing.
>>>> 
>>>> Lazy on my part, I know.
>>>> 
>>>> 
>>>> >-----Original Message-----
>>>> >From: [EMAIL PROTECTED]
>>>> >[mailto:[EMAIL PROTECTED] On Behalf Of 
>>>> >Geoff Bowers
>>>> >Sent: Wednesday, June 16, 2004 6:43 PM
>>>> >To: FarCry Developers
>>>> >Subject: [farcry-dev] Re: Newbie Custom Rules Question
>>>> >
>>>> >Sounds like your rule object instance is not getting created.
>>>> >Make all the properties have required="no" and see if that
>>helps for
>>
>>>> >now.
>>>> >
>>>> >-- geoff
>>>> >http://www.daemon.com.au/
>>>> >
>>>> >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)>
>>>> >>
>>>> >>     <cfif isDefined("form.updateRule")>
>>>> >>       <!--- create structure for update --->
>>>> >>       <cfscript>
>>>> >>         stObj.displayMethod = form.displayMethod;
>>>> >>         stObj.zipCode = form.zipCode;
>>>> >>       </cfscript>
>>>> >>
>>>> >>       <!--- update object --->
>>>> >>       <q4:contentobjectdata
>>>> >> typename="#application.custompackagepath#.rules.ruleJhaWeather"
>>>> >> stProperties="#stObj#" objectID="#stObj.objectID#">
>>>> >>
>>>> >>       <!--- display success message --->
>>>> >>       <div align="center"><strong>Update
>>Successful</strong></div>
>>>> >>     </cfif>
>>>> >>
>>>> >>     <!--- get the display methods for jhaWeather type--->
>>>> >>     <nj:listTemplates typename="jhaWeather" prefix="displayJha"
>>>> >> r_qMethods="qDisplayTypes">
>>>> >>
>>>> >>     <!--- show form --->
>>>> >>     <form action="" method="POST">
>>>> >>     <input type="hidden" name="ruleID" value="#stObj.objectID#">
>>>> >>     <table width="100%" align="center" border="0">
>>>> >>
>>>> >>     <tr>
>>>> >>       <td width="20%" colspan="1" align="right"><b>Display 
>>>> >> method:</b></td>
>>>> >>       <td>
>>>> >>         <select name="displayMethod" size="1" class="field">
>>>> >>           <!--- show available display methods --->
>>>> >>           <cfloop query="qDisplayTypes">
>>>> >>             <option value="#methodName#" <cfif methodName is 
>>>> >> stObj.displayMethod>selected</cfif>>#displayName#</option>
>>>> >>           </cfloop>
>>>> >>         </select>
>>>> >>       </td>
>>>> >>     </tr>
>>>> >>     <tr>
>>>> >>         <td align="right"><b>Zip Code:</b></td>
>>>> >>         <td><input type="text" name="zipCode" size="6"
>>>> >> maxlength="5">#stObj.zipCode#</textarea></td>
>>>> >>     </tr>
>>>> >>     </table>
>>>> >>
>>>> >>     <div align="center"><input class="normalbttnstyle"
>>type="submit"
>>>> >> value="Update" name="updateRule"></div>
>>>> >>     </form>
>>>> >>   </cffunction>
>>>> >>
>>>> >>
>>>> >> Sincerely,
>>>> >>
>>>> >> Ora Martindale
>>>> >> Jack Henry & Assoc.
>>>> >> 913.341.3434
>>>> >>
>>>> >>
>>>> >>
>>>> >>
>>>> >> NOTICE: This electronic mail message and any files
>>>> >transmitted with it are intended exclusively for the
>individual or
>>>> >entity to which it is addressed. The message, together with any 
>>>> >attachment, may contain confidential and/or privileged
>information.
>>>> >Any unauthorized review, use, printing, saving, copying,
>>disclosure
>>>> >or distribution is strictly prohibited. If you have received this 
>>>> >message in error, please immediately advise the sender by reply 
>>>> >email and delete all copies.
>>>> >>
>>>> >>
>>>> >>
>>>> >>
>>>> >
>>>> >---
>>>> >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/
>>>> >
>>>> >
>>>> 
>>>> ---
>>>> You are currently subscribed to farcry-dev as:
>>[EMAIL PROTECTED]
>>>> To unsubscribe send a blank email to leave-farcry-dev- 
>>>> [EMAIL PROTECTED] Aussie Macromedia Developers:
>>>> http://lists.daemon.com.au/
>>
>>
>>
>>---
>>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/
>>
>>
>>
>>NOTICE: This electronic mail message and any files
>transmitted with it
>>are intended exclusively for the individual or entity to which it is 
>>addressed. The message, together with any attachment, may contain 
>>confidential and/or privileged information. Any unauthorized review, 
>>use, printing, saving, copying, disclosure or distribution is
>strictly
>>prohibited. If you have received this message in error, please 
>>immediately advise the sender by reply email and delete all copies.
>>
>>
>>
>>
>>---
>>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/
>>
>>
>
>---
>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/
>
>
>
>NOTICE: This electronic mail message and any files transmitted with it 
>are intended exclusively for the individual or entity to which it is 
>addressed. The message, together with any attachment, may contain 
>confidential and/or privileged information. Any unauthorized review, 
>use, printing, saving, copying, disclosure or distribution is strictly 
>prohibited. If you have received this message in error, please 
>immediately advise the sender by reply email and delete all copies.
>
>
>
>
>---
>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/
>
>

---
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/



NOTICE: This electronic mail message and any files transmitted with it are intended 
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged information. 
Any unauthorized review, use, printing, saving, copying, disclosure or distribution is 
strictly prohibited. If you have received this message in error, please immediately 
advise the sender by reply email and delete all copies.




---
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/

Reply via email to