Re: hideif/showif causes error if wrapped around searches

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52848
interpreted = N
texte = Hopefully I read that right you have an initial search and sort. Then you have a way of selecting a sort and the occassional way of searching for different results. If I am wrong ignore this, but if not read on: My search: [search db=./some.db&[formvariables name=--&exact=f][getchars start=3][name][/getchars]=[url][value][/url]&[/formvariables]COLUMNtype=num& [showif [sortby]![raw][sortby][/raw]][sortdir][sortby]sort=1[/showif][showif [sortby]=[raw][sortby][/raw]]asDEFAULTCOLUMNsort=1[/showif]&max=30&startat=[ startat]] 1. This allows me to set the default sort by not setting one: asDEFAULTCOLUMNsort=1 2. You could modify this to be dynamic as well: COLUMNtype=num 3. You feed it SortBy and SortDir variables: Sortby=Name & Sortdir=De You will just need these variables passed by a link or form. This is my column sort link (even shows an arrow to let them know what direction): Name[sho wif [sortby]=lname][/showif] Hope this helps. If not contact me Gary and I will see what I can do to help. ----- Original Message ----- From: "Gary Krockover" To: "WebDNA Talk" Sent: Saturday, September 13, 2003 9:25 AM Subject: Re: hideif/showif causes error if wrapped around searches > Well, the problem with this page is it has a search context on it for when > it's first hit (index page). Also on the page is a form to sort the data in > a different order. The form submits to itself. Of course any sorting in > the form variables is overridden by the search context. It would be nice if > I could "hide" the initial search if the page is hit via the form. > > But, as it usually happens, typing out the problem in the email helps you > solve it. Using Ron's input to hide/show in the search itself, I won't have > a search command in the form variables but the search variables and then > plug that into the search context that is on the page depending on how the > page is reached. > > Thanks guys, > GK > > > > WebDna @ wrote: > > :) Yeah that is basically what I do. I had just hope (years ago) when > > I > > started coding in webcat that it allowed to hide the search, but > > learned quickly (and the hard way) that it did nto work that way. > > > > > > > > > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: hideif/showif causes error if wrapped around searches ( "WebDna @" 2003)
  2. Re: hideif/showif causes error if wrapped around searches ( Chris List Recipient 2003)
  3. Re: hideif/showif causes error if wrapped around searches ( "WebDna @" 2003)
  4. Re: hideif/showif causes error if wrapped around searches ( Chris List Recipient 2003)
  5. Re: hideif/showif causes error if wrapped around searches ( "Scott Anderson" 2003)
  6. Re: hideif/showif causes error if wrapped around searches ( Terry Wilson 2003)
  7. Re: hideif/showif causes error if wrapped around searches ( "Gary Krockover" 2003)
  8. Re: hideif/showif causes error if wrapped around searches ( Matthew A Perosi 2003)
  9. Re: hideif/showif causes error if wrapped around searches ( "Gary Krockover" 2003)
  10. Re: hideif/showif causes error if wrapped around searches ( "WebDna @" 2003)
  11. Re: hideif/showif causes error if wrapped around searches ( "Gary Krockover" 2003)
  12. Re: hideif/showif causes error if wrapped around searches ( "WebDna @" 2003)
  13. Re: hideif/showif causes error if wrapped around searches ( "Dan Strong" 2003)
  14. Re: hideif/showif causes error if wrapped around searches ( "Dan Strong" 2003)
  15. Re: hideif/showif causes error if wrapped around searches ( "WebDna @" 2003)
  16. Re: hideif/showif causes error if wrapped around searches ( "Gary Krockover" 2003)
  17. Re: hideif/showif causes error if wrapped around searches ( Terry Wilson 2003)
  18. hideif/showif causes error if wrapped around searches ( "Gary Krockover" 2003)
Hopefully I read that right you have an initial search and sort. Then you have a way of selecting a sort and the occassional way of searching for different results. If I am wrong ignore this, but if not read on: My search: [search db=./some.db&[formvariables name=--&exact=f][getchars start=3][name][/getchars]=[url][value][/url]&[/formvariables]COLUMNtype=num& [showif [sortby]![raw][sortby][/raw]][sortdir][sortby]sort=1[/showif][showif [sortby]=[raw][sortby][/raw]]asDEFAULTCOLUMNsort=1[/showif]&max=30&startat=[ startat]] 1. This allows me to set the default sort by not setting one: asDEFAULTCOLUMNsort=1 2. You could modify this to be dynamic as well: COLUMNtype=num 3. You feed it SortBy and SortDir variables: Sortby=Name & Sortdir=De You will just need these variables passed by a link or form. This is my column sort link (even shows an arrow to let them know what direction): [thisurl]?startat=[startat]&sortBy=LNAME[showif [sortDir]!as]&sortDir=as[/showif][hideif [sortDir]!as]&sortDir=de[/hideif][formvariables name=--&exact=f]&[name]=[url][value][/url][/formvariables]">Name[sho wif [sortby]=lname][/showif] Hope this helps. If not contact me Gary and I will see what I can do to help. ----- Original Message ----- From: "Gary Krockover" To: "WebDNA Talk" Sent: Saturday, September 13, 2003 9:25 AM Subject: Re: hideif/showif causes error if wrapped around searches > Well, the problem with this page is it has a search context on it for when > it's first hit (index page). Also on the page is a form to sort the data in > a different order. The form submits to itself. Of course any sorting in > the form variables is overridden by the search context. It would be nice if > I could "hide" the initial search if the page is hit via the form. > > But, as it usually happens, typing out the problem in the email helps you > solve it. Using Ron's input to hide/show in the search itself, I won't have > a search command in the form variables but the search variables and then > plug that into the search context that is on the page depending on how the > page is reached. > > Thanks guys, > GK > > > > WebDna @ wrote: > > :) Yeah that is basically what I do. I had just hope (years ago) when > > I > > started coding in webcat that it allowed to hide the search, but > > learned quickly (and the hard way) that it did nto work that way. > > > > > > > > > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ "WebDna @"

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:

math with multiple [founditems] (1999) [WebDNA]