Disregard, this appears to be working correctly now. There seems to be an issue with the third party debug tool I am using.
On 4/4/07, Scott Stroz <[EMAIL PROTECTED]> wrote: > > I am trying to create a Custom Rule. To start, I simply copied over the > code from dmRules.cfc and replaced any reference to dmNews with the name > of my new content type, and deploy the rule. > > This all works fine, right up until I try to save the rule for a > container. The rule does get saved, but information, like 'intro' do nut > get saved. After looking at the debug information, I noticed that the query > looks something like this: > > 'INSERT INTO DBO.ruleRates ( objectID , numItems , suffix , label , > metadata , bMatchAllKeywords , numPages , displayMethod , bArchive , intro ) > VALUES ( BC1E4C10-0C42-96F1-F0FE00EE2DF2165C , > BC1E4C10-0C42-96F1-F0FE00EE2DF2165C , BC1E4C10-0C42-96F1-F0FE00EE2DF2165C , > BC1E4C10-0C42-96F1-F0FE00EE2DF2165C , BC1E4C10-0C42-96F1-F0FE00EE2DF2165C , > BC1E4C10-0C42-96F1-F0FE00EE2DF2165C , BC1E4C10-0C42-96F1-F0FE00EE2DF2165C , > BC1E4C10-0C42-96F1-F0FE00EE2DF2165C , BC1E4C10-0C42-96F1-F0FE00EE2DF2165C , > BC1E4C10-0C42-96F1-F0FE00EE2DF2165C )' > > or sometimes this: > > 'UPDATE dbo.ruleRates SET numItems = 10 ,suffix = 10 ,label = 10 ,metadata > = 10 ,bMatchAllKeywords = 10 ,numPages = 10 ,displayMethod = 10 ,bArchive = > 10 ,intro = 10 WHERE objectID = 10' > > One thing I did notice when updating the rule is that whatever value is > set for 'numItems' gets set for every column (In the above example, I set > the form filed for 'Number of Items' to 10. > > Here is the dump of stObj that is being passed to fourQ: > > struct > BARCHIVE 0 > BMATCHALLKEYWORDS 0 > DISPLAYMETHOD displayTeaserRates > INTRO Rate intro > LABEL (incomplete) > METADATA [empty string] > NUMITEMS 56 > NUMPAGES 1 > OBJECTID BC1E4C10-0C42-96F1-F0FE00EE2DF2165C > SUFFIX rate suffix > TYPENAME ruleRates > > I should not that the News rule, which this is copied from, works as > expected. I have also attached the CFC. > > Can anyone point me to what I am doing wrong? I am certain it is something > really stupid. > > Thanx in advance! > > -- > Scott Stroz > Senior Developer > AboutWeb, LLC > http://www.aboutweb.com > -- Scott Stroz Senior Developer AboutWeb, LLC http://www.aboutweb.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
