Forums

This topic is locked

Can't dreamweaver do that?

Posted 16 May 2004 10:55:56
1
has voted
16 May 2004 10:55:56 Jens Jakobsen posted:
In my admin-module I want to create a list of links when clicked individually they will take me to an update form from where I can update ONE single set of record.

All links are headlines in my news database.

I can't seem to pass the ID to each update form. No matter which link I click I keep updating the very first record.

I can code the stuff my self but I want DW to do it.

Any help would be appreciated <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

Replies

Replied 16 May 2004 10:56:45
16 May 2004 10:56:45 Jens Jakobsen replied:
Btw - I use DW MX 2004 and ASP.
Replied 16 May 2004 12:53:36
16 May 2004 12:53:36 Vince Baker replied:
DW can do this for you, when you create the link to your update page, select the page to link to and then click on the parameter button. type a title for the url parameter and then select the field in your db that you want to send. This will send for example the id to the update page.

Then on the update page, when you create the recordset to display the record that will be updated, filter the id on the name you entered in the parameters for your url param.

Regards
Vince

DMX Talkzone Manager

Visit my home: www.chez-vince.com

VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 16 May 2004 19:32:06
16 May 2004 19:32:06 Jeremy Conn replied:
Bakerv is right - the key is to make sure your results page recordset is filtered by the passed ID.

<b>Connman21</b>
www.conncreativemedia.com
<b>DEVELOPMENT SETUP</b>
DWMX 2004 Studio
Web Server: IIS5
DB: Access2003/SQL2000
OS: XP Pro
Language: ASP/VB
Replied 18 May 2004 14:00:12
18 May 2004 14:00:12 Jens Jakobsen replied:
Thx a lot - I'll try that <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Replied 18 May 2004 14:17:21
18 May 2004 14:17:21 Jens Jakobsen replied:
Then I got another one:

I have a formula with an insert behaviour. One of the fields is a list-element (dropdown list in a form) which I populate with data from a table called <b>tblAfdelinger</b>. All data in the form is eventually posted into a table called <b>tblBrugeroprettelser</b>
when submitted. All is OK here.

Then I want to display the very same data in an update form.

All text fields and check/radio buttons are accordingly with what was posted into the form previously.

But my list-element isn't showing the correct data no matter what I try.

I made the attempt to populate it with the correct data like this:

I populated the list element with data from the table called <b>tblAfdelinger</b> but of course I want to show the previously selected option stored in the table called <b>tblBrugeroprettelser</b> so I figured I had to use the <b>tblAfdelinger-recordset</b> to populate the list element and then I intended to extract the value from <b>tblBrugeroprettelser</b> via the<b>tblBrugeroprettelser-recordset</b> located at <b>Select value equal to:</b>-field in the properties box.

Does this make sense?

Again - any help would be appreciated.

Edited by - fridge on 18 May 2004 14:21:14

Reply to this topic