Re: [showif] results returned...

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50684
interpreted = N
texte = Hi BillThis is how I have done the menu:-[!] ------------------------------------------------------------ [/!] [!] ---- This is a Search based on price range ---- [/!] [!] ------------------------------------------------------------ [/!] and the results have been done in this format...[!] ------------------------------------------------------------ [/!] [!] ---- Price Search Results ---- [/!] [!] ------------------------------------------------------------ [/!][showif [search_type]=_PRICE] PRICE RESULTS

[text]range=[the_PRICE][/text] [showif [range]=_small] These Items Cost £50 or Less

[search db=database.db&lePRICEdatarq=50&PRICEtype=num&grNO_INVENTORYdatarq=0&NO_INVE NTORYtype=num&nePRODUCT_IDdatarq=find_all&PRODUCT_IDsumm=T&sort=1] [founditems] [TITLE]
[/founditems] [/search] [/showif] [showif [range]=_medium] These Items Cost £50 - £100

[search db=database.db&rnPRICEdatarq=50 100&PRICEtype=num&grNO_INVENTORYdatarq=0&NO_INVENTORYtype=num&sort=1&nePRODU CT_IDdatarq=find_all&PRODUCT_IDsumm=T] [founditems] [TITLE]
[/founditems] [/search] [/showif]etc etc for the other results...I wasn't quite sure how to go about making a comparison against the database to see if a range was available so I could apply the logic:-[search db] [showif range=available] menu item [/showif][search db] [showif range=available] menu item [/showif][search db] [showif range=available] menu item [/showif]I am also unsure as to whether this is the right train of thought... Would it be possible to do one search which I could then compare against and use similar logic?I guess I am still getting used to all of this so please bare with me...ThanksAlanon 26/5/03 7:15 am, William DeVaul at devaulw@onebox.com wrote:> Sorry, but this is on a thumb keyboard. Can't you use the range > parameter of the search context? I assume that the user selected high > and low values are passed or somehow made available to the search. For > example, if the value apparent in the menu is $10 to $20, the form value > is 'A'. On the search page, 'A' indicates a low range value of $10 and > a high of $20. You could also pass the form value of '$10 - $20' and > then pull out the values from the form variable using grep, listwords or > the like. > > Bill > > > Alan White wrote: > >> To: (WebDNA Talk) >> Date: Mon, 26 May 2003 15:17:21 >> Subject: [showif] results returned... >> From: Alan White >> >> Hi >> >> I have just created a menu with various price ranges in it. How do I then >> add a search and [showif] that will allow me to only have these price >> ranges shown if results are found based on the search? >> >> TIA >> >> Alan White >> ------------------------------ >> http://www.streethreds.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/ > > ------------------------------------------------------------- > 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: [showif] results returned... (Alan White 2003)
  2. Re: [showif] results returned... (William DeVaul 2003)
  3. [showif] results returned... (Alan White 2003)
Hi BillThis is how I have done the menu:-[!] ------------------------------------------------------------ [/!] [!] ---- This is a Search based on price range ---- [/!] [!] ------------------------------------------------------------ [/!] and the results have been done in this format...[!] ------------------------------------------------------------ [/!] [!] ---- Price Search Results ---- [/!] [!] ------------------------------------------------------------ [/!][showif [search_type]=_PRICE] PRICE RESULTS

[text]range=[the_PRICE][/text] [showif [range]=_small] These Items Cost £50 or Less

[search db=database.db&lePRICEdatarq=50&PRICEtype=num&grNO_INVENTORYdatarq=0&NO_INVE NTORYtype=num&nePRODUCT_IDdatarq=find_all&PRODUCT_IDsumm=T&sort=1] [founditems] [TITLE]
[/founditems] [/search] [/showif] [showif [range]=_medium] These Items Cost £50 - £100

[search db=database.db&rnPRICEdatarq=50 100&PRICEtype=num&grNO_INVENTORYdatarq=0&NO_INVENTORYtype=num&sort=1&nePRODU CT_IDdatarq=find_all&PRODUCT_IDsumm=T] [founditems] [TITLE]
[/founditems] [/search] [/showif]etc etc for the other results...I wasn't quite sure how to go about making a comparison against the database to see if a range was available so I could apply the logic:-[search db] [showif range=available] menu item [/showif][search db] [showif range=available] menu item [/showif][search db] [showif range=available] menu item [/showif]I am also unsure as to whether this is the right train of thought... Would it be possible to do one search which I could then compare against and use similar logic?I guess I am still getting used to all of this so please bare with me...ThanksAlanon 26/5/03 7:15 am, William DeVaul at devaulw@onebox.com wrote:> Sorry, but this is on a thumb keyboard. Can't you use the range > parameter of the search context? I assume that the user selected high > and low values are passed or somehow made available to the search. For > example, if the value apparent in the menu is $10 to $20, the form value > is 'A'. On the search page, 'A' indicates a low range value of $10 and > a high of $20. You could also pass the form value of '$10 - $20' and > then pull out the values from the form variable using grep, listwords or > the like. > > Bill > > > Alan White wrote: > >> To: (WebDNA Talk) >> Date: Mon, 26 May 2003 15:17:21 >> Subject: [showif] results returned... >> From: Alan White >> >> Hi >> >> I have just created a menu with various price ranges in it. How do I then >> add a search and [showif] that will allow me to only have these price >> ranges shown if results are found based on the search? >> >> TIA >> >> Alan White >> ------------------------------ >> http://www.streethreds.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/ > > ------------------------------------------------------------- > 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/ Alan White

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:

database freeze (1997) WebCatalog & Mac OS X (client) vs. Redhat Linux (2001) Editing Users.db (1997) SiteGuard Admin Feature ? (1997) PhotoMill -> PhotoMaster (1997) Browser Info.txt (1997) Multi-processor Mac info ... (1997) Removing [showif] makes a big difference in speed (1997) WebDNA Verison 4.5 (2002) date formatting for CC card expiration date check (1998) in header include files? (1998) spook tcpconnect? (1999) WebCat2b13MacPlugin - [math][date][/math] problem (1997) Nested tags count question (1997) Middle Context (2002) My first ship table (1998) Cookie and Domain Names (2005) Possible Bug in 2.0b15.acgi (1997) Standalone Testing (1998) Hosting (2000)