I can not enter my blog. Nothing works at all! What to do?
Newbie Custom Rules Question
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Content Management System > Newbie Custom Rules Question 22 June 2004 20:25:20

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

Newbie Custom Rules Question

Ora Martindale 22 June 2004 20:25:20
 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/rule­s/ 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/fou­rq/tags/" prefix="q4">
<cfimport taglib="/farcry/far­cry_core/tags/navajo­/" prefix="nj">

<cfset stObj = this.getData(argume­nts.objectid)>

<cfif isDefined("form.upd­ateRule")>
<!--- create structure for update --->
<cfscript>
stObj.displayMethod­ = form.displayMethod;­
stObj.zipCode = form.zipCode;
</cfscript>

<!--- update object --->
<q4:contentobjectda­ta
typename="#applicat­ion.custompackagepat­h#.rules.ruleJhaWeat­her"
stProperties="#stOb­j#" objectID="#stObj.ob­jectID#">

<!--- display success message --->
<div align="center"><str­ong>Update Successful</strong>­</div>
</cfif>

<!--- get the display methods for jhaWeather type--->
<nj:listTemplates typename="jhaWeathe­r" prefix="displayJha"­
r_qMethods="qDispla­yTypes">

<!--- show form --->
<form action="" method="POST">
<input type="hidden" name="ruleID" value="#stObj.objec­tID#">
<table width="100%" align="center" border="0">

<tr>
<td width="20%" colspan="1" align="right"><b>Di­splay
method:</b></td>
<td>
<select name="displayMethod­" size="1" class="field">
<!--- show available display methods --->
<cfloop query="qDisplayType­s">
<option value="#methodName#­" <cfif methodName is
stObj.displayMethod­>selected</cfif>>#di­splayName#</option>
</cfloop>
</select>
</td>
</tr>
<tr>
<td align="right"><b>Zi­p Code:</b></td>
<td><input type="text" name="zipCode" size="6"
maxlength="5">#stOb­j.zipCode#</textarea­></td>
</tr>
</table>

<div align="center"><inp­ut class="normalbttnst­yle" 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: gcf-farcry-dev-Uylq­5CNFT+jYtjvyW6yDsg@p­ublic.gmane.org
To unsubscribe send a blank email to leave-farcry-dev-51­05H-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org


Aussie Macromedia Developers: http://lists.daemon­.com.au/
Add comment
Nathan Mische 17 June 2004 00:07:54 permanent link ]
 This is just a guess, but did you updated your app after you deployed
the custom rule? I think you may need to do this after making changes to
the COAPI. (To update your application scope append udateapp=1 to your
URL.)

--Nathan






___________________­_____________

From: bounce-farcry-dev-6­653-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org
[mailto:bounce-farcry-dev-6653-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org] On Behalf Of Ora
Martindale
Sent: Wednesday, June 16, 2004 4:53 PM
To: FarCry Developers
Subject: [farcry-dev] Newbie Custom Rules Question



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/rule­s/ 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/fou­rq/tags/" prefix="q4">
<cfimport taglib="/farcry/far­cry_core/tags/navajo­/"
prefix="nj">

<cfset stObj = this.getData(argume­nts.objectid)>

<cfif isDefined("form.upd­ateRule")>
<!--- create structure for update --->
<cfscript>
stObj.displayMethod­ = form.displayMethod;­
stObj.zipCode = form.zipCode;
</cfscript>

<!--- update object --->
<q4:contentobjectda­ta
typename="#applicat­ion.custompackagepat­h#.rules.ruleJhaWeat­her"
stProperties="#stOb­j#" objectID="#stObj.ob­jectID#">

<!--- display success message --->
<div align="center"><str­ong>Update
Successful</strong>­</div>
</cfif>

<!--- get the display methods for jhaWeather type--->
<nj:listTemplates typename="jhaWeathe­r" prefix="displayJha"­
r_qMethods="qDispla­yTypes">

<!--- show form --->
<form action="" method="POST">
<input type="hidden" name="ruleID" value="#stObj.objec­tID#">

<table width="100%" align="center" border="0">

<tr>
<td width="20%" colspan="1" align="right"><b>Di­splay
method:</b></td>
<td>
<select name="displayMethod­" size="1" class="field">
<!--- show available display methods --->
<cfloop query="qDisplayType­s">
<option value="#methodName#­" <cfif methodName is
stObj.displayMethod­>selected</cfif>>#di­splayName#</option>
</cfloop>
</select>
</td>
</tr>
<tr>
<td align="right"><b>Zi­p Code:</b></td>
<td><input type="text" name="zipCode" size="6"
maxlength="5">#stOb­j.zipCode#</textarea­></td>
</tr>
</table>

<div align="center"><inp­ut class="normalbttnst­yle"
type="submit" value="Update" name="updateRule"><­/div>
</form>
</cffunction>


Sincerely,

Ora Martindale
Jack Henry & Assoc.
913.341.3434

---
You are currently subscribed to farcry-dev as: Nathan-ZKNO3RbRAV0@­public.gmane.org
To unsubscribe send a blank email to
leave-farcry-dev-51­05H-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org 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: gcf-farcry-dev-Uylq­5CNFT+jYtjvyW6yDsg@p­ublic.gmane.org
To unsubscribe send a blank email to leave-farcry-dev-51­05H-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org


Aussie Macromedia Developers: http://lists.daemon­.com.au/
Add comment
Ora Martindale 17 June 2004 00:16:27 permanent link ]
 Nathan,

I tried the updateapp=1 on the URL in both the admin and the front
end/customer facing sites. Still getting the same problem.

___________________­_____________

From: bounce-farcry-dev-7­759-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org
[mailto:bounce-farcry-dev-7759-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org] On Behalf Of Nathan
Mische
Sent: Wednesday, June 16, 2004 4:08 PM
To: FarCry Developers
Subject: [farcry-dev] RE: Newbie Custom Rules Question


This is just a guess, but did you updated your app after you deployed
the custom rule? I think you may need to do this after making changes to
the COAPI. (To update your application scope append udateapp=1 to your
URL.)

--Nathan






___________________­_____________

From: bounce-farcry-dev-6­653-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org
[mailto:bounce-farcry-dev-6653-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org] On Behalf Of Ora
Martindale
Sent: Wednesday, June 16, 2004 4:53 PM
To: FarCry Developers
Subject: [farcry-dev] Newbie Custom Rules Question



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/rule­s/ 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/fou­rq/tags/" prefix="q4">
<cfimport taglib="/farcry/far­cry_core/tags/navajo­/"
prefix="nj">

<cfset stObj = this.getData(argume­nts.objectid)>

<cfif isDefined("form.upd­ateRule")>
<!--- create structure for update --->
<cfscript>
stObj.displayMethod­ = form.displayMethod;­
stObj.zipCode = form.zipCode;
</cfscript>

<!--- update object --->
<q4:contentobjectda­ta
typename="#applicat­ion.custompackagepat­h#.rules.ruleJhaWeat­her"
stProperties="#stOb­j#" objectID="#stObj.ob­jectID#">

<!--- display success message --->
<div align="center"><str­ong>Update
Successful</strong>­</div>
</cfif>

<!--- get the display methods for jhaWeather type--->
<nj:listTemplates typename="jhaWeathe­r" prefix="displayJha"­
r_qMethods="qDispla­yTypes">

<!--- show form --->
<form action="" method="POST">
<input type="hidden" name="ruleID" value="#stObj.objec­tID#">

<table width="100%" align="center" border="0">

<tr>
<td width="20%" colspan="1" align="right"><b>Di­splay
method:</b></td>
<td>
<select name="displayMethod­" size="1" class="field">
<!--- show available display methods --->
<cfloop query="qDisplayType­s">
<option value="#methodName#­" <cfif methodName is
stObj.displayMethod­>selected</cfif>>#di­splayName#</option>
</cfloop>
</select>
</td>
</tr>
<tr>
<td align="right"><b>Zi­p Code:</b></td>
<td><input type="text" name="zipCode" size="6"
maxlength="5">#stOb­j.zipCode#</textarea­></td>
</tr>
</table>

<div align="center"><inp­ut class="normalbttnst­yle"
type="submit" value="Update" name="updateRule"><­/div>
</form>
</cffunction>


Sincerely,

Ora Martindale
Jack Henry & Assoc.
913.341.3434

---
You are currently subscribed to farcry-dev as: Nathan-ZKNO3RbRAV0@­public.gmane.org
To unsubscribe send a blank email to
leave-farcry-dev-51­05H-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org 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: OMartindale-7S0Nwaz­rWznqlBn2x/YWAg@publ­ic.gmane.org
To unsubscribe send a blank email to
leave-farcry-dev-51­05H-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org Aussie Macromedia Developers:
http://lists.daemon­.com.au/


---
You are currently subscribed to farcry-dev as: gcf-farcry-dev-Uylq­5CNFT+jYtjvyW6yDsg@p­ublic.gmane.org
To unsubscribe send a blank email to leave-farcry-dev-51­05H-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org


Aussie Macromedia Developers: http://lists.daemon­.com.au/
Add comment
Geoff Bowers 17 June 2004 01:42:32 permanent link ]
 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.c­om.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/rule­s/ 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/fou­rq/tags/" prefix="q4">> <cfimport taglib="/farcry/far­cry_core/tags/navajo­/" prefix="nj">>
<cfset stObj = this.getData(argume­nts.objectid)>>
<cfif isDefined("form.upd­ateRule")>> <!--- create structure for update --->> <cfscript>> stObj.displayMethod­ = form.displayMethod;­> stObj.zipCode = form.zipCode;> </cfscript>>
<!--- update object --->> <q4:contentobjectda­ta> typename="#applicat­ion.custompackagepat­h#.rules.ruleJhaWeat­her"> stProperties="#stOb­j#" objectID="#stObj.ob­jectID#">>
<!--- display success message --->> <div align="center"><str­ong>Update Successful</strong>­</div>> </cfif>>
<!--- get the display methods for jhaWeather type--->> <nj:listTemplates typename="jhaWeathe­r" prefix="displayJha"­> r_qMethods="qDispla­yTypes">>
<!--- show form --->> <form action="" method="POST">> <input type="hidden" name="ruleID" value="#stObj.objec­tID#">> <table width="100%" align="center" border="0">>
<tr>> <td width="20%" colspan="1" align="right"><b>Di­splay> method:</b></td>> <td>> <select name="displayMethod­" size="1" class="field">> <!--- show available display methods --->> <cfloop query="qDisplayType­s">> <option value="#methodName#­" <cfif methodName is> stObj.displayMethod­>selected</cfif>>#di­splayName#</option>>­ </cfloop>> </select>> </td>> </tr>> <tr>> <td align="right"><b>Zi­p Code:</b></td>> <td><input type="text" name="zipCode" size="6"> maxlength="5">#stOb­j.zipCode#</textarea­></td>> </tr>> </table>>
<div align="center"><inp­ut class="normalbttnst­yle" 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: gcf-farcry-dev-Uylq­5CNFT+jYtjvyW6yDsg@p­ublic.gmane.org
To unsubscribe send a blank email to leave-farcry-dev-51­05H-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org
Aussie Macromedia Developers: http://lists.daemon­.com.au/

Add comment
Nathan Mische 17 June 2004 02:00:23 permanent link ]
 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: bounce-farcry-dev-6­653-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org >[mailto:bounce-farcry-dev-6653-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org] 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.>
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/rule­s/ 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/fou­rq/tags/" prefix="q4">>> <cfimport taglib="/farcry/far­cry_core/tags/navajo­/" prefix="nj">>>
<cfset stObj = this.getData(argume­nts.objectid)>>>
<cfif isDefined("form.upd­ateRule")>>> <!--- create structure for update --->>> <cfscript>>> stObj.displayMethod­ = form.displayMethod;­>> stObj.zipCode = form.zipCode;>> </cfscript>>>
<!--- update object --->>> <q4:contentobjectda­ta>> typename="#applicat­ion.custompackagepat­h#.rules.ruleJhaWeat­her">> stProperties="#stOb­j#" objectID="#stObj.ob­jectID#">>>
<!--- display success message --->>> <div align="center"><str­ong>Update Successful</strong>­</div>>> </cfif>>>
<!--- get the display methods for jhaWeather type--->>> <nj:listTemplates typename="jhaWeathe­r" prefix="displayJha"­>> r_qMethods="qDispla­yTypes">>>
<!--- show form --->>> <form action="" method="POST">>> <input type="hidden" name="ruleID" value="#stObj.objec­tID#">>> <table width="100%" align="center" border="0">>>
<tr>>> <td width="20%" colspan="1" align="right"><b>Di­splay >> method:</b></td>>> <td>>> <select name="displayMethod­" size="1" class="field">>> <!--- show available display methods --->>> <cfloop query="qDisplayType­s">>> <option value="#methodName#­" <cfif methodName is >> stObj.displayMethod­>selected</cfif>>#di­splayName#</option>>­> </cfloop>>> </select>>> </td>>> </tr>>> <tr>>> <td align="right"><b>Zi­p Code:</b></td>>> <td><input type="text" name="zipCode" size="6">> maxlength="5">#stOb­j.zipCode#</textarea­></td>>> </tr>>> </table>>>
<div align="center"><inp­ut class="normalbttnst­yle" 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: Nathan-ZKNO3RbRAV0@­public.gmane.org >To unsubscribe send a blank email to >leave-farcry-dev-5­105H-VCrIQ7D8lE6uI5g­Gy/GxD7pzq4S04n8Q@pu­blic.gmane.org>Aussi­e Macromedia Developers: http://lists.daemon­.com.au/>

---
You are currently subscribed to farcry-dev as: gcf-farcry-dev-Uylq­5CNFT+jYtjvyW6yDsg@p­ublic.gmane.org
To unsubscribe send a blank email to leave-farcry-dev-51­05H-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org
Aussie Macromedia Developers: http://lists.daemon­.com.au/

Add comment
Kola Oyedeji 18 June 2004 17:24:45 permanent link ]
 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: bounce-farcry-dev-7­366-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org
[mailto:bounce-farcry-dev->> 7366-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org] 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.
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
with %100 certainty that this is what got my custom rules working,
that's what I remember doing.>>
Lazy on my part, I know.>>
-----Original Message----->> >From: bounce-farcry-dev-6­653-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org>> >[mailto:bounce-farcry-dev-6653-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org] 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.>> >
Ora Martindale wrote:>> >> I've attempted to create a custom rule using the How-To guide on
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/rule­s/ 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/fou­rq/tags/" prefix="q4">>> >> <cfimport taglib="/farcry/far­cry_core/tags/navajo­/"
prefix="nj">>> >>
<cfset stObj = this.getData(argume­nts.objectid)>>> >>
<cfif isDefined("form.upd­ateRule")>>> >> <!--- create structure for update --->>> >> <cfscript>>> >> stObj.displayMethod­ = form.displayMethod;­>> >> stObj.zipCode = form.zipCode;>> >> </cfscript>>> >>
<!--- update object --->>> >> <q4:contentobjectda­ta>> >> typename="#applicat­ion.custompackagepat­h#.rules.ruleJhaWeat­her">> >> stProperties="#stOb­j#" objectID="#stObj.ob­jectID#">>> >>
<!--- display success message --->>> >> <div align="center"><str­ong>Update Successful</strong>­</div>>> >> </cfif>>> >>
<!--- get the display methods for jhaWeather type--->>> >> <nj:listTemplates typename="jhaWeathe­r" prefix="displayJha"­>> >> r_qMethods="qDispla­yTypes">>> >>
<!--- show form --->>> >> <form action="" method="POST">>> >> <input type="hidden" name="ruleID" value="#stObj.objec­tID#">>> >> <table width="100%" align="center" border="0">>> >>
<tr>>> >> <td width="20%" colspan="1" align="right"><b>Di­splay>> >> method:</b></td>>> >> <td>>> >> <select name="displayMethod­" size="1" class="field">>> >> <!--- show available display methods --->>> >> <cfloop query="qDisplayType­s">>> >> <option value="#methodName#­" <cfif methodName is>> >> stObj.displayMethod­>selected</cfif>>#di­splayName#</option>>­> >> </cfloop>>> >> </select>>> >> </td>>> >> </tr>>> >> <tr>>> >> <td align="right"><b>Zi­p Code:</b></td>>> >> <td><input type="text" name="zipCode" size="6">> >> maxlength="5">#stOb­j.zipCode#</textarea­></td>>> >> </tr>>> >> </table>>> >>
<div align="center"><inp­ut class="normalbttnst­yle"
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: Nathan-ZKNO3RbRAV0@­public.gmane.org>> >To unsubscribe send a blank email to>> >leave-farcry-dev-5­105H-VCrIQ7D8lE6uI5g­Gy/GxD7pzq4S04n8Q@pu­blic.gmane.org>> >Aussie Macromedia Developers: http://lists.daemon­.com.au/>> >
--->> You are currently subscribed to farcry-dev as:
kola.oyedeji-iitr0h­bwJUYZ6BW5rlme1Q@pub­lic.gmane.org>> To unsubscribe send a blank email to leave-farcry-dev->>­ 7366K-VCrIQ7D8lE6uI­5gGy/GxD7pzq4S04n8Q@­public.gmane.org>> Aussie Macromedia Developers: http://lists.daemon­.com.au/



---
You are currently subscribed to farcry-dev as: gcf-farcry-dev-Uylq­5CNFT+jYtjvyW6yDsg@p­ublic.gmane.org
To unsubscribe send a blank email to leave-farcry-dev-51­05H-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org
Aussie Macromedia Developers: http://lists.daemon­.com.au/

Add comment
Ora Martindale 22 June 2004 16:46:00 permanent link ]
 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: bounce-farcry-dev-7­759-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org
[mailto:bounce-farcry-dev-7759-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org] 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: bounce-farcry-dev-7­366-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org
[mailto:bounce-farcry-dev->> 7366-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org] 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.
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
with %100 certainty that this is what got my custom rules working,
that's what I remember doing.>>
Lazy on my part, I know.>>
-----Original Message----->> >From: bounce-farcry-dev-6­653-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org>> >[mailto:bounce-farcry-dev-6653-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org] 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.>> >
Ora Martindale wrote:>> >> I've attempted to create a custom rule using the How-To guide on
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/rule­s/ 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/fou­rq/tags/" prefix="q4">>> >> <cfimport taglib="/farcry/far­cry_core/tags/navajo­/"
prefix="nj">>> >>
<cfset stObj = this.getData(argume­nts.objectid)>>> >>
<cfif isDefined("form.upd­ateRule")>>> >> <!--- create structure for update --->>> >> <cfscript>>> >> stObj.displayMethod­ = form.displayMethod;­>> >> stObj.zipCode = form.zipCode;>> >> </cfscript>>> >>
<!--- update object --->>> >> <q4:contentobjectda­ta>> >> typename="#applicat­ion.custompackagepat­h#.rules.ruleJhaWeat­her">> >> stProperties="#stOb­j#" objectID="#stObj.ob­jectID#">>> >>
<!--- display success message --->>> >> <div align="center"><str­ong>Update Successful</strong>­</div>>> >> </cfif>>> >>
<!--- get the display methods for jhaWeather type--->>> >> <nj:listTemplates typename="jhaWeathe­r" prefix="displayJha"­>> >> r_qMethods="qDispla­yTypes">>> >>
<!--- show form --->>> >> <form action="" method="POST">>> >> <input type="hidden" name="ruleID" value="#stObj.objec­tID#">>> >> <table width="100%" align="center" border="0">>> >>
<tr>>> >> <td width="20%" colspan="1" align="right"><b>Di­splay >> >> method:</b></td>>> >> <td>>> >> <select name="displayMethod­" size="1" class="field">>> >> <!--- show available display methods --->>> >> <cfloop query="qDisplayType­s">>> >> <option value="#methodName#­" <cfif methodName is >> >> stObj.displayMethod­>selected</cfif>>#di­splayName#</option>>­> >> </cfloop>>> >> </select>>> >> </td>>> >> </tr>>> >> <tr>>> >> <td align="right"><b>Zi­p Code:</b></td>>> >> <td><input type="text" name="zipCode" size="6">> >> maxlength="5">#stOb­j.zipCode#</textarea­></td>>> >> </tr>>> >> </table>>> >>
<div align="center"><inp­ut class="normalbttnst­yle"
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: Nathan-ZKNO3RbRAV0@­public.gmane.org To >> >unsubscribe send a blank email to >> >leave-farcry-dev-5­105H-VCrIQ7D8lE6uI5g­Gy/GxD7pzq4S04n8Q@pu­blic.gmane.org>> >Aussie Macromedia Developers: http://lists.daemon­.com.au/>> >
--->> You are currently subscribed to farcry-dev as:
kola.oyedeji-iitr0h­bwJUYZ6BW5rlme1Q@pub­lic.gmane.org>> To unsubscribe send a blank email to leave-farcry-dev- >> 7366K-VCrIQ7D8lE6uI­5gGy/GxD7pzq4S04n8Q@­public.gmane.org Aussie Macromedia Developers: >> http://lists.daemon­.com.au/



---
You are currently subscribed to farcry-dev as: OMartindale-7S0Nwaz­rWznqlBn2x/YWAg@publ­ic.gmane.org
To unsubscribe send a blank email to
leave-farcry-dev-51­05H-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org
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: gcf-farcry-dev-Uylq­5CNFT+jYtjvyW6yDsg@p­ublic.gmane.org
To unsubscribe send a blank email to leave-farcry-dev-51­05H-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org
Aussie Macromedia Developers: http://lists.daemon­.com.au/

Add comment
Nathan Mische 22 June 2004 16:59:27 permanent link ]
 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/create­Data.cfm and uncommenting the cfcatch contents on or
around lines 215 and 226.

HTH,

--Nathan
-----Original Message----->From: bounce-farcry-dev-6­653-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org >[mailto:bounce-farcry-dev-6653-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org] 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: bounce-farcry-dev-7­759-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org>[mailto:bounce-farcry-dev-7759-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org] 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: bounce-farcry-dev-7­366-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org>[mailto:bounce-farcry-dev->>> 7366-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org] 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: bounce-farcry-dev-6­653-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org>>> >[mailto:bounce-farcry-dev-6653-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org] 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.>>> >
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/rule­s/ 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/fou­rq/tags/" prefix="q4">>>> >> <cfimport taglib="/farcry/far­cry_core/tags/navajo­/">prefix="nj">>>> >>
<cfset stObj = this.getData(argume­nts.objectid)>>>> >>
<cfif isDefined("form.upd­ateRule")>>>> >> <!--- create structure for update --->>>> >> <cfscript>>>> >> stObj.displayMethod­ = form.displayMethod;­>>> >> stObj.zipCode = form.zipCode;>>> >> </cfscript>>>> >>
<!--- update object --->>>> >> <q4:contentobjectda­ta>>> >> typename="#applicat­ion.custompackagepat­h#.rules.ruleJhaWeat­her">>> >> stProperties="#stOb­j#" objectID="#stObj.ob­jectID#">>>> >>
<!--- display success message --->>>> >> <div align="center"><str­ong>Update >Successful</strong­></div>>>> >> </cfif>>>> >>
<!--- get the display methods for jhaWeather type--->>>> >> <nj:listTemplates typename="jhaWeathe­r" prefix="displayJha"­>>> >> r_qMethods="qDispla­yTypes">>>> >>
<!--- show form --->>>> >> <form action="" method="POST">>>> >> <input type="hidden" name="ruleID" value="#stObj.objec­tID#">>>> >> <table width="100%" align="center" border="0">>>> >>
<tr>>>> >> <td width="20%" colspan="1" align="right"><b>Di­splay >>> >> method:</b></td>>>>­ >> <td>>>> >> <select name="displayMethod­" size="1" class="field">>>> >> <!--- show available display methods --->>>> >> <cfloop query="qDisplayType­s">>>> >> <option value="#methodName#­" <cfif methodName is >>> >> stObj.displayMethod­>selected</cfif>>#di­splayName#</option>>­>> >> </cfloop>>>> >> </select>>>> >> </td>>>> >> </tr>>>> >> <tr>>>> >> <td align="right"><b>Zi­p Code:</b></td>>>> >> <td><input type="text" name="zipCode" size="6">>> >> maxlength="5">#stOb­j.zipCode#</textarea­></td>>>> >> </tr>>>> >> </table>>>> >>
<div align="center"><inp­ut class="normalbttnst­yle">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: Nathan-ZKNO3RbRAV0@­public.gmane.org To >>> >unsubscribe send a blank email to >>> >leave-farcry-dev-5­105H-VCrIQ7D8lE6uI5g­Gy/GxD7pzq4S04n8Q@pu­blic.gmane.org>>> >Aussie Macromedia Developers: http://lists.daemon­.com.au/>>> >
--->>> You are currently subscribed to farcry-dev as:>kola.oyedeji-ii­tr0hbwJUYZ6BW5rlme1Q­@public.gmane.org>>>­ To unsubscribe send a blank email to leave-farcry-dev- >>> 7366K-VCrIQ7D8lE6uI­5gGy/GxD7pzq4S04n8Q@­public.gmane.org Aussie Macromedia Developers:>>> http://lists.daemon­.com.au/>
--->You are currently subscribed to farcry-dev as: >OMartindale-7S0Nwa­zrWznqlBn2x/YWAg@pub­lic.gmane.org>To unsubscribe send a blank email to>leave-farcry-dev­-5105H-VCrIQ7D8lE6uI­5gGy/GxD7pzq4S04n8Q@­public.gmane.org>Aus­sie 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: Nathan-ZKNO3RbRAV0@­public.gmane.org>To unsubscribe send a blank email to >leave-farcry-dev-5­105H-VCrIQ7D8lE6uI5g­Gy/GxD7pzq4S04n8Q@pu­blic.gmane.org>Aussi­e Macromedia Developers: http://lists.daemon­.com.au/>

---
You are currently subscribed to farcry-dev as: gcf-farcry-dev-Uylq­5CNFT+jYtjvyW6yDsg@p­ublic.gmane.org
To unsubscribe send a blank email to leave-farcry-dev-51­05H-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org
Aussie Macromedia Developers: http://lists.daemon­.com.au/

Add comment
Ora Martindale 22 June 2004 19:33:20 permanent link ]
 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: bounce-farcry-dev-7­759-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org
[mailto:bounce-farcry-dev-7759-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org] 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/create­Data.cfm and uncommenting the cfcatch contents on or
around lines 215 and 226.

HTH,

--Nathan
-----Original Message----->From: bounce-farcry-dev-6­653-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org>[mailto:bounce-farcry-dev-6653-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org] 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: bounce-farcry-dev-7­759-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org>[mailto:bounce-farcry-dev-7759-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org] 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: bounce-farcry-dev-7­366-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org>[mailto:bounce-farcry-dev->>> 7366-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org] 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: bounce-farcry-dev-6­653-VCrIQ7D8lE6uI5gG­y/GxD7pzq4S04n8Q@pub­lic.gmane.org>>> >[mailto:bounce-farcry-dev-6653-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org] 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.>>> >
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/rule­s/ 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>functi­on 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/fou­rq/tags/" prefix="q4">>>> >> <cfimport taglib="/farcry/far­cry_core/tags/navajo­/">prefix="nj">>>> >>
<cfset stObj = this.getData(argume­nts.objectid)>>>> >>
<cfif isDefined("form.upd­ateRule")>>>> >> <!--- create structure for update --->>>> >> <cfscript>>>> >> stObj.displayMethod­ = form.displayMethod;­>>> >> stObj.zipCode = form.zipCode;>>> >> </cfscript>>>> >>
<!--- update object --->>>> >> <q4:contentobjectda­ta>>> >> typename="#applicat­ion.custompackagepat­h#.rules.ruleJhaWeat­her">>> >> stProperties="#stOb­j#" objectID="#stObj.ob­jectID#">>>> >>
<!--- display success message --->>>> >> <div align="center"><str­ong>Update>Successfu­l</strong></div>>>> >> </cfif>>>> >>
<!--- get the display methods for jhaWeather type--->>>> >> <nj:listTemplates typename="jhaWeathe­r" prefix="displayJha"­>>> >> r_qMethods="qDispla­yTypes">>>> >>
<!--- show form --->>>> >> <form action="" method="POST">>>> >> <input type="hidden" name="ruleID" value="#stObj.objec­tID#">>>> >> <table width="100%" align="center" border="0">>>> >>
<tr>>>> >> <td width="20%" colspan="1" align="right"><b>Di­splay >>> >> method:</b></td>>>>­ >> <td>>>> >> <select name="displayMethod­" size="1" class="field">>>> >> <!--- show available display methods --->>>> >> <cfloop query="qDisplayType­s">>>> >> <option value="#methodName#­" <cfif methodName is >>> >> stObj.displayMethod­>selected</cfif>>#di­splayName#</option>>­>> >> </cfloop>>>> >> </select>>>> >> </td>>>> >> </tr>>>> >> <tr>>>> >> <td align="right"><b>Zi­p Code:</b></td&g