Re: [WebDNA] why this error when using [shownext] with a [table]?

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102553
interpreted = N
texte = --Apple-Mail-7--288004905 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Donovan, thanks for responding :-) Yes my shownext links use command=search, [SearchString], AND (before commenting out since it was redundant) I even tried passing the name/ value pairs manually, even in the link. Both the links and the forms I attempted both give the same error as per my orig. post. > "Error: the 'search' command requires that you specify a db" Here's a sample [shownext]. These are inside a search context on a [table] which otherwise works perfectly. [ShowNext position=begin] Show items [start]-[end]
[/ShowNext] The error seems odd to me. Like something is funny besides my code. I hope I am wrong so I can fix it quick and easy ;-) Any more ideas what I might try to shed more light? PS, Gary K., et al, if you're there, in a minute I think I'll paste an addition into your User Contributed Notes for [shownext] (http://docs.webdna.us/ ). (So your links show the range of indices in the next "chunk" like shownext does.) -Govinda On May 12, 2009, at 7:59 AM, Donovan Brooke wrote: > Govinda wrote: >> I am using [shownext] in what I believe to be the correct fashion >> (haven't used it for years, but I used it many times totally >> successfully back in WebDNA version 3 days.) >> BUT >> now I am trying to use it with a [table..] and I am getting this >> error. (NONE of my results page's code is being returned.. just >> this one single line): >> "Error: the 'search' command requires that you specify a db" > > > Are you constructing a search via command? > > > >> I tried renaming the table's name to something shorter, or with the >> extension ".db", but it makes no difference. >> I inspect the URL (by-product of my [shownext method=get] links... >> and see it looks right but is more than 256 chars. Don't know if >> that is the issue. I kinda doubt it. Anyway then I realize I have >> never constructed shownext *forms*. How do I get what used to pass >> automagically in "&[SearchString]" into hidden form inputs? Or do >> I have to just construct each search param from scratch in hidden >> inputs? (I liked the convenience of [SearchString]. > > > Yes, SearchString was more for the command-based searching. I always > construct the name/values manually using shownext. > > >> Is there some odd reason the [shownext] get method should fail when >> the search and results page are secure (https://...)? >> Or does anyone have any other insight why this might be failing? >> -Govinda > > > Donovan --Apple-Mail-7--288004905 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
Donovan, thanks for = responding  :-)

Yes my shownext links use = command=3Dsearch, [SearchString], AND  (before commenting out = since it was redundant) I even tried passing the name/value pairs = manually, even in the link.  Both the links and the forms I = attempted both give the same error as per my orig. = post.

"Error: the = 'search' command requires that you specify a = db"


Here's a sample = [shownext].  These are inside a search context on a [table] which = otherwise works perfectly.

[ShowNext = position=3Dbegin]
<a = href=3D"[thisurl]?command=3Dsearch&[SearchString]&no_cache=3D[rand= om][random][random][!]---&max=3D[max2find]&startat=3D[start]&[= unurl][tableSort][/unurl]---[/!]">Show items [start]-[end]</a><br = />
[/ShowNext]

The error seems odd to = me.  Like something is funny besides my code.  I hope I am = wrong so I can fix it quick and easy ;-)
Any more ideas what I = might try to shed more light?

PS, Gary K., et = al,  if you're there, in a minute I think I'll paste an addition = into your User Contributed Notes for [shownext] (http://docs.webdna.us/).  (So = your links show the range of indices in the next "chunk" like shownext = does.)

-Govinda

On = May 12, 2009, at 7:59 AM, Donovan Brooke wrote:

Govinda= wrote:
I am using [shownext] in what I = believe to be the correct fashion (haven't used it for years, but I used = it many times totally successfully back in WebDNA version 3 = days.)
BUT
now I am = trying to use it with a [table..] and I am getting this error. =  (NONE of my results page's code is being returned..  just = this one single line):
"Error: = the 'search' command requires that you specify a = db"


Are you constructing a search via = command?



I tried renaming the = table's name to something shorter, or with the extension ".db", but it = makes no difference.
I inspect = the URL (by-product of my [shownext method=3Dget]  links... and see = it looks right but is more than 256 chars.  Don't know if that is = the issue.  I kinda doubt it.  Anyway then I realize I have = never constructed shownext *forms*.  How do I get what used to pass = automagically in "&[SearchString]" into hidden form inputs? =   Or do I have to just construct each search param from = scratch in hidden inputs?  (I  liked the convenience of = [SearchString].


Yes, SearchString was more for = the command-based searching. I always construct the name/values manually = using shownext.


Is there some odd = reason the [shownext] get method should fail when the search and results = page are secure (https://...)?
Or does anyone have any other insight why this might be = failing?
-Govinda


Donovan

= --Apple-Mail-7--288004905-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] why this error when using [shownext] with a [table]? (Govinda 2009)
  2. Re: [WebDNA] why this error when using [shownext] with a [table]? (Govinda 2009)
  3. Re: [WebDNA] why this error when using [shownext] with a [table]? (Donovan Brooke 2009)
  4. Re: [WebDNA] why this error when using [shownext] with a [table]? (Govinda 2009)
  5. Re: [WebDNA] why this error when using [shownext] with a [table]? (Donovan Brooke 2009)
  6. Re: [WebDNA] why this error when using [shownext] with a [table]? (Govinda 2009)
  7. Re: [WebDNA] why this error when using [shownext] with a [table]? (Stuart Tremain 2009)
  8. [WebDNA] why this error when using [shownext] with a [table]? (Govinda 2009)
--Apple-Mail-7--288004905 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Donovan, thanks for responding :-) Yes my shownext links use command=search, [SearchString], AND (before commenting out since it was redundant) I even tried passing the name/ value pairs manually, even in the link. Both the links and the forms I attempted both give the same error as per my orig. post. > "Error: the 'search' command requires that you specify a db" Here's a sample [shownext]. These are inside a search context on a [table] which otherwise works perfectly. [ShowNext position=begin] [thisurl]?command=search&[SearchString]&no_cache=[random] [random][random][!]---&max=[max2find]&startat=[start]&[unurl] [tableSort][/unurl]---[/!]">Show items [start]-[end]
[/ShowNext] The error seems odd to me. Like something is funny besides my code. I hope I am wrong so I can fix it quick and easy ;-) Any more ideas what I might try to shed more light? PS, Gary K., et al, if you're there, in a minute I think I'll paste an addition into your User Contributed Notes for [shownext] (http://docs.webdna.us/ ). (So your links show the range of indices in the next "chunk" like shownext does.) -Govinda On May 12, 2009, at 7:59 AM, Donovan Brooke wrote: > Govinda wrote: >> I am using [shownext] in what I believe to be the correct fashion >> (haven't used it for years, but I used it many times totally >> successfully back in WebDNA version 3 days.) >> BUT >> now I am trying to use it with a [table..] and I am getting this >> error. (NONE of my results page's code is being returned.. just >> this one single line): >> "Error: the 'search' command requires that you specify a db" > > > Are you constructing a search via command? > > > >> I tried renaming the table's name to something shorter, or with the >> extension ".db", but it makes no difference. >> I inspect the URL (by-product of my [shownext method=get] links... >> and see it looks right but is more than 256 chars. Don't know if >> that is the issue. I kinda doubt it. Anyway then I realize I have >> never constructed shownext *forms*. How do I get what used to pass >> automagically in "&[SearchString]" into hidden form inputs? Or do >> I have to just construct each search param from scratch in hidden >> inputs? (I liked the convenience of [SearchString]. > > > Yes, SearchString was more for the command-based searching. I always > construct the name/values manually using shownext. > > >> Is there some odd reason the [shownext] get method should fail when >> the search and results page are secure (https://...)? >> Or does anyone have any other insight why this might be failing? >> -Govinda > > > Donovan --Apple-Mail-7--288004905 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
Donovan, thanks for = responding  :-)

Yes my shownext links use = command=3Dsearch, [SearchString], AND  (before commenting out = since it was redundant) I even tried passing the name/value pairs = manually, even in the link.  Both the links and the forms I = attempted both give the same error as per my orig. = post.

"Error: the = 'search' command requires that you specify a = db"


Here's a sample = [shownext].  These are inside a search context on a [table] which = otherwise works perfectly.

[ShowNext = position=3Dbegin]
<a = href=3D"[thisurl]?command=3Dsearch&[SearchString]&no_cache=3D[rand= om][random][random][!]---&max=3D[max2find]&startat=3D[start]&[= unurl][tableSort][/unurl]---[/!]">Show items [start]-[end]</a><br = />
[/ShowNext]

The error seems odd to = me.  Like something is funny besides my code.  I hope I am = wrong so I can fix it quick and easy ;-)
Any more ideas what I = might try to shed more light?

PS, Gary K., et = al,  if you're there, in a minute I think I'll paste an addition = into your User Contributed Notes for [shownext] (http://docs.webdna.us/).  (So = your links show the range of indices in the next "chunk" like shownext = does.)

-Govinda

On = May 12, 2009, at 7:59 AM, Donovan Brooke wrote:

Govinda= wrote:
I am using [shownext] in what I = believe to be the correct fashion (haven't used it for years, but I used = it many times totally successfully back in WebDNA version 3 = days.)
BUT
now I am = trying to use it with a [table..] and I am getting this error. =  (NONE of my results page's code is being returned..  just = this one single line):
"Error: = the 'search' command requires that you specify a = db"


Are you constructing a search via = command?



I tried renaming the = table's name to something shorter, or with the extension ".db", but it = makes no difference.
I inspect = the URL (by-product of my [shownext method=3Dget]  links... and see = it looks right but is more than 256 chars.  Don't know if that is = the issue.  I kinda doubt it.  Anyway then I realize I have = never constructed shownext *forms*.  How do I get what used to pass = automagically in "&[SearchString]" into hidden form inputs? =   Or do I have to just construct each search param from = scratch in hidden inputs?  (I  liked the convenience of = [SearchString].


Yes, SearchString was more for = the command-based searching. I always construct the name/values manually = using shownext.


Is there some odd = reason the [shownext] get method should fail when the search and results = page are secure (https://...)?
Or does anyone have any other insight why this might be = failing?
-Govinda


Donovan

= --Apple-Mail-7--288004905-- Govinda

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

macosx 1 process, linux N processes, macosx chokes under load (2001) OT: Poll Results (2002) [CART] (1997) Can't Update records (1997) WebCat2b13MacPlugin - nested [xxx] contexts (1997) Need relative path explanation (1997) math and european notation (1998) No more misunderstanding ... yay! :) (1997) WebCat2 several catalogs? (1997) RAM variables (1997) [WebDNA] Dynamic vertical columns (2008) Forbidden CGI Error (1997) my price won't move (1997) Can you do this??? and other stuff (1997) Find one not all, code not working (2003) Claris HomePage messes up the code (1997) Another bug to squash (WebCat2b13 Mac .acgi) (1997) WebCat2 - [include] tags (1997) no template caching (1997) Adding up weights (1998)