Hi,

my first post here at the mailinglist, so "Hello" everyone.

I have a question regarding creating and updating multiple records via
a textarea.
Here is the situation:
My app has two models right now: Project and Keyword (Title and
Content field) (1:n).
Since a project can have many(50+) keywords I don't want to enter them
one-by-one. So I created a textarea, split the input and insert it
into the database with the help of a loop. Up to this point everything
works fine.
The problem arises when I want to add or delete the records. As long
as you don't just update the title it's all good.
But when you add a record or delete some I don't know how to get this
stuff back in the DB. I thought about just deleting all the keywords
and inserting them again, but this is not possible since all the
keywords have a "content" field and I don't want to delete this one.

Perhaps one of you has an idea what I can do to solve the problem with
the textarea or a better suggestion for the overall design.

Thanks for reading.

Cheers,
Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" 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/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to