Ask a Question related to Dreamweaver AppDev, Design and Development.
-
rtmarkley #1
How can I delete records from database with multiple keyfields
Say we have a simple set of tables: Authors, Books, and AuthorBooks; Authors
has an author_id primary key field; Books has a book_id primary key field; and
AuthorBooks has two key fields: author_id and book_id. Now say I want to
delete one of the AuthorBooks relationships on a web page with Dreamweaver. I
have a page with URL Form variables passed to it for author_id and book_id and
the record is displayed. I now add a delete button and I want to delete the
AuthorBooks record for the given record when the button is pressed. Under
server behaviors, I attempt to add the Delete Record behavior and the Delete
record dialog pops up. The Unique Key Column pull down only lets me select one
key field but I have two (author_id and book_id). How do I delete the record?
I am using the JSP Application model.
Thanks for any help!
Todd
rtmarkley Guest
-
Why can't I delete these records?
Hi all! When I do: SELECT COUNT(*) AS counter FROM table1 WHERE condition1 = 'A' AND condition2 IS NULL; it returns: +---------+ | counter... -
How to delete records from a database using CFGRID
I want to delete records from a database. The records is checked in checkboxes in a CFGRID and the actionscript is called when submitting the... -
Delete records
Hi, I have produced a page used a webthang tutorial ?Deleting Multiple Records Using Checkboxes by Rob Boyle? to delete records.... -
Delete multiple records from database
I am having troubles getting a delete query to accect multiple entries in the where clause. I need to be able to delete a varying number of records... -
Updating Multiple records fields in a database atonce
Is it correct that there is no user interaction on these forms? I didn't see a submit button. Or does someone click on a submit button to get to... -
Paul Whitham TMM #2
Re: How can I delete records from database with multiple key fields
Your authorbook table needs to have a primary key of its own and then you
would use that to define the delete relationship.
--
Regards
Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
[url]www.valleybiz.net[/url]
Team Macromedia Volunteer for Ultradev/Dreamweaver MX
[url]www.macromedia.com/support/forums/team_macromedia[/url]
"rtmarkley" <webforumsuser@macromedia.com> wrote in message
news:d0l4ph$gv4$1@forums.macromedia.com...Authors> Say we have a simple set of tables: Authors, Books, and AuthorBooks;field; and> has an author_id primary key field; Books has a book_id primary keyDreamweaver. I> AuthorBooks has two key fields: author_id and book_id. Now say I want to
> delete one of the AuthorBooks relationships on a web page withand> have a page with URL Form variables passed to it for author_id and book_idthe> the record is displayed. I now add a delete button and I want to deleteDelete> AuthorBooks record for the given record when the button is pressed. Under
> server behaviors, I attempt to add the Delete Record behavior and theselect one> record dialog pops up. The Unique Key Column pull down only lets merecord?> key field but I have two (author_id and book_id). How do I delete the> I am using the JSP Application model.
>
> Thanks for any help!
>
> Todd
>
Paul Whitham TMM Guest
-
CMBergin #3
Re: How can I delete records from database with multiple key fields
You'd need to write your own command rather than use the built-in one.
"rtmarkley" <webforumsuser@macromedia.com> wrote in message
news:d0l4ph$gv4$1@forums.macromedia.com...Authors> Say we have a simple set of tables: Authors, Books, and AuthorBooks;field; and> has an author_id primary key field; Books has a book_id primary keyDreamweaver. I> AuthorBooks has two key fields: author_id and book_id. Now say I want to
> delete one of the AuthorBooks relationships on a web page withand> have a page with URL Form variables passed to it for author_id and book_idthe> the record is displayed. I now add a delete button and I want to deleteDelete> AuthorBooks record for the given record when the button is pressed. Under
> server behaviors, I attempt to add the Delete Record behavior and theselect one> record dialog pops up. The Unique Key Column pull down only lets merecord?> key field but I have two (author_id and book_id). How do I delete the> I am using the JSP Application model.
>
> Thanks for any help!
>
> Todd
>
CMBergin Guest



Reply With Quote

