Well, when all else fails I guess dig through the doc ;) I was trying
to add it to the view itself (bad me), and I needed to add as a
<message> in my controller.
Thanks anyone who started to reply ;)
(From the doc)
A Basic Generic Read
To perform a basic read on a Contact table, the following <message> tag
could be added to an <event-handler>:
<message name="modelglue.GenericRead">
<argument name="object" value="Contact" />
</message>
A View could then <cfdump> the record by performing the following code:
<cfdump var="#viewstate.getValue("ContactRecord")#" />
Note: Because no criteria were specified, this would return a new,
empty record.
-----Original Message-----
From: Peterson, Chris [mailto:[EMAIL PROTECTED]
Sent: Friday, May 11, 2007 10:41 AM
To: CF-Talk
Subject: MG:U and Transfer, argh!
OK, this is something stupid simple.
I have used transfer, and in the past I just created a transfer object,
and then did transfer.getTransfer("user.user",1).
Well, I have MG:Unity build 2.0.284 installed. Its running great, and I
have my transfer adapter configured right:
0ms Core This is Model-Glue version (Unknown: Subversion
Checkout)
0ms Core Using ORM Adapter:
com.adobe.hs.common.orm.TransferAdapter
Now, for the million dollar question, which I cannot find in the doc
online or any blog post about this: How do I use it!!!
I tried using the alias for something like ormAdapter.getTransfer
I assume there is some standardized way to reference a generic ORM
adapter, but I cannot find it. Anyone toss me a bone?
(and you have got to love abstracting the database with an ORM, then
abstracting the ORM with a generic ORM, then auto-wiring that with
coldspring ;)
Chris Peterson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277780
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4