Skip to main content
Inspiring
January 19, 2007
Answered

expected querystring causes error on page

  • January 19, 2007
  • 2 replies
  • 277 views
My page contains a list menu whose labels and values are dynamic. I have set the initial value to equal a querystring. The page works fine when the querystring is present. However, if the page is accessed without the use of the expected querystring, I'm given the error message "...Requested operation requires a current record"

What can I add to the Dreamweaver generated script to avoid this trouble?
This topic has been closed for replies.
Correct answer Newsgroup_User
aonefun wrote:
> What can I add to the Dreamweaver generated script to avoid this trouble?

In the Recordset dialog box, click the Advanced button, and then edit
the variable used in place of the query string. Give it a default value
equal to one of your existing records.

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

2 replies

Inspiring
January 19, 2007
You could use the 'show region if recordset not empty' server behaviour.

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004




Newsgroup_UserCorrect answer
Inspiring
January 19, 2007
aonefun wrote:
> What can I add to the Dreamweaver generated script to avoid this trouble?

In the Recordset dialog box, click the Advanced button, and then edit
the variable used in place of the query string. Give it a default value
equal to one of your existing records.

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/