Hi Marc,

In a nutshell, this was an error in the code samples on that wiki
page. Instead of this:

<argument name="contactId" value="Contact" />

The argument should have been:

<argument name="criteria" value="contactId" />

I have made the necessary corrections on the page -- thanks for
pointing this out, the assistance is much appreciated.

--
Ezra Parker


On Fri, Jan 14, 2011 at 5:14 AM, marc <[email protected]> wrote:
> Hre it is:
>
> http://docs.model-glue.com/wiki/HowTos/HowToUseGenericDatabaseMessages/UsingmodelglueGenericCommit#GenericDatabaseMessages:Usingmodelglue.GenericCommit
>
> right under heading "A Basic Generic Commit ¶"
>
> On Jan 14, 2:00 pm, "Dan Wilson" <[email protected]> wrote:
>> Would you mind giving me the URL of that page?
>>
>> DW
>> Sent from a mobile. Please excuse brevity and typos.
>>
>> -----Original Message-----
>> From: marc <[email protected]>
>>
>> Sender: [email protected]
>> Date: Fri, 14 Jan 2011 04:28:07
>> To: model-glue<[email protected]>
>> Reply-To: [email protected]
>> Subject: [Model-Glue] modelglue.GenericCommit argument value?
>>
>> Hi all,
>>
>> just reading the docs about generic database events. Have 1 small
>> question: what is the use of giving the argument named "contactId" a
>> value of "Contact"?
>>
>> This is the example code:
>>
>> <message name="modelglue.GenericCommit">
>>  <argument name="object" value="Contact" />
>>  <argument name="contactId" value="Contact" />
>>  </message>
>>
>> since the value of contactId is taken from the value of the viewState
>> key with te same name - e.g.when making this call
>> index.cfm?event=contact.commit&contactId=42&firstname=Fred
>>
>> <cfdump var="#viewstate.getValue("contactId")#"
>> would result 42. Why would I then assign the value "Contact" to
>> viewstate key "contactId" in my eventHandler?
>>
>> Marc
>>
>> --
>> Model-Glue Sites:
>> Home Page:http://www.model-glue.com
>> Documentation:http://docs.model-glue.com
>> Bug Tracker:http://bugs.model-glue.com
>> Blog:http://www.model-glue.com/blog
>>
>> You received this message because you are subscribed to the Google
>> Groups "model-glue" 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 
>> athttp://groups.google.com/group/model-glue?hl=en
>
> --
> Model-Glue Sites:
> Home Page: http://www.model-glue.com
> Documentation: http://docs.model-glue.com
> Bug Tracker: http://bugs.model-glue.com
> Blog: http://www.model-glue.com/blog
>
> You received this message because you are subscribed to the Google
> Groups "model-glue" 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/model-glue?hl=en
>

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" 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/model-glue?hl=en

Reply via email to