I was thinking something like that would possibly work....
Now for the silly question of the day: How do I add and remove items
from the iterator?
Thanks!
Mike
Brian Kotek wrote:
You can get the KeyIterator from the Keychain, and then add or remove
Keys from the interator as you need to. When you save the Keychain,
it's KeyIterator will also be saved, and it should automatically
handle adding or removing any associated Keys as part of the save
process.
On Jan 4, 2008 9:00 AM, Mike Haggerty <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hello.
I am wondering if there is an easier way to do the following with
Reactor:
I have keys and keychains. There is a many to many relationship
between
the two. I am trying to figure out the best way to add keys to a
keychain. Currently, I have constructed a function in the
keychainRecord.cfc called addKeysToKeychain(), which takes a list
of key
IDs. This function then DELETEs all rows in the keychain_key MTM
table
specific to the current keychain, and loops through the list of
key IDs,
and INSERTs a new row to the keychain_key MTM table for each.
This method works fine, but I was just curious as to whether there
existed some secret Reactor magic that would allow me to do something
similar without witting a custom function.
Thanks!
Mike Haggerty
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- --
--
Michael Haggerty
Internet Applications Developer
SiteVision, Inc.
<e>[EMAIL PROTECTED]</e>
<p>540.343.8322 x116</p>
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --