Forums

This topic is locked

Edit/Delete Repeat Region. Please help!

Posted 14 Nov 2003 12:01:02
1
has voted
14 Nov 2003 12:01:02 Billy Griffiths posted:
I want to create a repeat region with customer details and 2 extra columns on the right side with "edit" and "delete" options. When I click on "edit" it should send the unique ID to an edit_customer.asp page where it then dynamicaly populates my update form. How do i go about assigning the Unique ID the the "edit"/"delete" images and how do i get the Update form to open the corresponding record using DW MX.

Xcalibur
www.icdl.org.za

Edited by - Xcalibur SA on 14 Nov 2003 12:02:59

Replies

Replied 15 Nov 2003 05:17:19
15 Nov 2003 05:17:19 Nozomi Kugita replied:
In order to open a corresponding detail page to an unique ID, you add dynamic URL param to the anchor tag for "edit" / "delete" images. For example,

< a href="detail.asp?ID=< %= Recordset1.uniqueKey % >" >EDIT< /a >

In this way, you can retrieve a certain record, in your query run in detail page, filtered by the ID (uniqueKey) passed from the URL param.

If you'd like to populate form items in advance for the user, you can set dynamic values to each form items. For example.

< input type="text" value="<%= Recordset1.Name % >" >

How to do this in DWMX? Maybe you can walk through a tutorial in the following URL - this is written for ASP.NET but you can apply the same method for your ASP page.

www.macromedia.com/support/dreamweaver/building/master_detail_net/index.html

and should be helpful as well:

www.macromedia.com/support/ultradev/content/url_parameters/

- Noz
Replied 15 Nov 2003 08:52:08
15 Nov 2003 08:52:08 Dave Clarke replied:
or alternatively use the built in Goto Detail Page server behaviour.

<img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>

ASP|VBScript|IIS5.1|Access|WinXPPro & WinXPHome
Replied 17 Nov 2003 08:24:04
17 Nov 2003 08:24:04 Billy Griffiths replied:
Thank you guys. This solved my problem. <img src=../images/dmxzone/forum/icon_smile_clown.gif border=0 align=middle>
Kind Regards

Xcalibur
Cape Town - South Africa

Reply to this topic