Re: Form Variables

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 28995
interpreted = N
texte = All the formvariables will have the name _skudata, so we use a formvariables loop to pick out variables that begin with _sku (name=_sku&exact=F). The corresponding values for the formvariables are used in the search (eqSKUdatarq=[url][value][/url]). The code will produce a table row for each item selected. [formvariables name=_sku&exact=F] [search db=Briggs.db&eqSKUdatarq=[url][value][/url]] [founditems] [SKU] [title] [quantity] $[format .2f][price1][/format] Specs Add to Order [/founditems] [/search] [/formvariables]-----Original Message----- From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of Eric palhof Sent: Tuesday, March 14, 2000 7:59 AM To: WebCatalog Talk Subject: Re: Form Variables John: I hope this clarifies my problem: I am using a multiple menu (see: http://24.94.116.14/Briggs/SKU3.tpl). I am able to select from the list more than one item by holding down the control key or command key. The list is drawn from the database. I understand what your saying about searching the database and may have confused it with list drawn from the db. I know the selections from the list are passed by using the form variables so what I need is a search on the database that finds the multiple selection and returns them as line items in the result page. My code looks like this on the search page:
[search db=My.db&neSKUdatarq=find_all&asSKUsort=1] [/search]
My code on the result.tpl looks like this:[foundItems] [SKU] [title] [quantity] $[format .2f][price1][/format] Specs Add to Order [/foundItems]Is this clear?---------- >From: John Butler >To: (WebCatalog Talk) >Subject: Re: Form Variables >Date: Tue, Mar 14, 2000, 10:42 AM >> Eric if you post your actual code then you'll get better help. But do try > to isolate > just the code that is relevant - i.e. just the part that is what you are using to > attempt something which is not working. So in this case you would post the > code you > are using which you think should get each found item along with description, price > etc. into a line item format on the result page > > You say you read the manual on [formvariables]? It does just what it says > it does - > Lists all the form variables and parameters passed to the current page. > (There's nothing in that desciption about searching a database.) > > Please just ask if something in the desciption of what [formvariables] does is > confusing to you. :-) If you are trying to search a database for records and then > display data from those records on a page then you don't need > [formvariables]. People > have been suggesting you use [formvariables] just to see if you have successfully > written code which will pass the name/value pairs that you DO need to construct a > meaningful search. Try to break your confusion down into smaller bits... since it > seems like there are several things you are not yet understanding and it's > all rolled > up into a ball and hard to unravel... For example ask me to explain what I mean if > there is something in this post which you don't understand. Be specific. > > :-) > > -John > > Eric palhof wrote: > >> I've been told form variables are only used to test and debug to see if the >> data is passed. What I'm attempting to do is get each found item along with >> description, price etc. into a line item format on the result page. I have >> the [foundItems] wrapped around the line items but only the first item in >> the search shows up. I want to remove the >> >> [formvariables] >> [value]
>> [/formvariables] >> >> after I get this to work correctly. >> I tried the form variables in the body where I should probably use something >> else to achieve my goal but I'm not sure what to do with this. If Form >> Variables are only to be used for debugging, it is not stated in the manual >> on page 126 to 128. So I'm left wondering if it is used other than testing. >> >> ---------- >> >From: Charles Kline >> >To: (WebCatalog Talk) >> >Subject: Re: Form Variables >> >Date: Tue, Mar 14, 2000, 9:12 AM >> > >> >> > what are you trying to do?? >> > >> > >> >>I've tried to wrap: [formvariables] around my [search] tags but it doesn't >> >>work. I only see the first line item. I've moved [formvariables] around to >> >>find the correct position but nothing works. I placed at the top of the page >> >>and tested: >> >>[formvariables] >> >>[value]
>> >>[/formvariables] >> >> >> >>and I can see the SKU and all the items IDs. Can anyone shed some light on >> >>this? > > > ------------------------------------------------------------- > 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------------------------------------------------------------- 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 ------------------------------------------------------------- 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 Associated Messages, from the most recent to the oldest:

    
  1. Re: form variables and missing quantities! ( Tim Robinson 2004)
  2. Re: form variables and missing quantities! ( Glenn Busbin 2004)
  3. form variables and missing quantities! ( "Tommy" 2004)
  4. Re: dynamic list of form variables (Dave Hurley 2003)
  5. Re: dynamic list of form variables (Brian Fries 2003)
  6. Re: dynamic list of form variables (Donovan 2003)
  7. Re: dynamic list of form variables (WebCat @ Inkblot Media 2003)
  8. Re: dynamic list of form variables (Laurent Bache 2003)
  9. dynamic list of form variables (Dave Hurley 2003)
  10. Re: Passing form variables to new window created by JavaScript (Andrew Simpson 2001)
  11. Passing form variables to new window created by JavaScript (Steven Jarvis 2001)
  12. Re: weening me off overwriting form variables. John Peacock? (Joseph D'Andrea 2000)
  13. Re: weening me off overwriting form variables. John Peacock? (Kenneth Grome 2000)
  14. Re: weening me off overwriting form variables. John Peacock? (John Butler 2000)
  15. Re: weening me off overwriting form variables. John Peacock? (anup setty 2000)
  16. weening me off overwriting form variables. John Peacock? (Joseph D'Andrea 2000)
  17. Re: Lookup & Form Variables (Will Starck 2000)
  18. Re: Lookup & Form Variables (Stuart Tremain 2000)
  19. Re: Lookup & Form Variables (Will Starck 2000)
  20. Lookup & Form Variables (Stuart Tremain 2000)
  21. Re: Dummy Form Variables Needed (Larry Orchier 2000)
  22. Re: Dummy Form Variables Needed (Webcat 2000)
  23. Re: Dummy Form Variables Needed (Kenneth Grome 2000)
  24. Re: Dummy Form Variables Needed (Nicolas Verhaeghe 2000)
  25. Re: Dummy Form Variables Needed (John Butler 2000)
  26. Re: Dummy Form Variables Needed (Steven Jarvis 2000)
  27. Re: Dummy Form Variables Needed (John Butler 2000)
  28. Re: Dummy Form Variables Needed (Nicolas Verhaeghe 2000)
  29. Re: Dummy Form Variables Needed (Larry Orchier 2000)
  30. Re: Dummy Form Variables Needed (John Butler 2000)
  31. Re: Dummy Form Variables Needed (Anup Setty 2000)
  32. Dummy Form Variables Needed (Larry Orchier 2000)
  33. Re: form variables (John Butler 2000)
  34. Re: form variables (Kenneth Grome 2000)
  35. Re: form variables (Kenneth Grome 2000)
  36. Re: form variables (Jesse Proudman (Lists Account) 2000)
  37. Re: form variables (Arturo Vargas 2000)
  38. form variables (Arturo Vargas 2000)
  39. Re: Searching the same field with 2 form variables. (MARC MALACARME 2000)
  40. Re: Searching the same field with 2 form variables. (Marty Schmid 2000)
  41. Re: Searching the same field with 2 form variables. (Marty Schmid 2000)
  42. Re: Searching the same field with 2 form variables. (MARC MALACARME 2000)
  43. Searching the same field with 2 form variables. (MARC MALACARME 2000)
  44. Re: Form Variables (WebDNA Support 2000)
  45. Re: Form Variables (Eric palhof 2000)
  46. Re: Form Variables (Charles Kline 2000)
  47. Re: Form Variables (Charles Kline 2000)
  48. Re: Form Variables (John Butler 2000)
  49. Re: Form Variables (Charles Kline 2000)
  50. Re: Form Variables (Eric palhof 2000)
  51. Re: Form Variables (The Mooseman 2000)
  52. Re: Form Variables (Charles Kline 2000)
  53. Form Variables (Eric palhof 2000)
  54. Re: Concatenating Form Variables (PCS Technical Support 1998)
  55. Concatenating Form Variables (Michael A. Rosen 1998)
  56. Re: Concatenating Form Variables (PCS Technical Support 1998)
  57. Concatenating Form Variables (Jerry Nielsen 1998)
  58. Re: [returnraw] and form variables (Sandra L. Pitner 1998)
  59. Re: [returnraw] and form variables (Sandra L. Pitner 1998)
  60. Re: [returnraw] and form variables (Olin Lagon 1998)
  61. Re: [returnraw] and form variables (Rob Marquardt 1998)
  62. Re: [returnraw] and form variables (Olin Lagon 1998)
  63. Re: [returnraw] and form variables (Grant Hulbert 1998)
  64. [returnraw] and form variables (Rob Marquardt 1998)
  65. Re: target=_blank and form variables (Pat McCormick 1997)
  66. target=_blank and form variables (Pat McCormick 1997)
  67. Re: target=_blank and form variables (Kenneth Grome 1997)
All the formvariables will have the name _skudata, so we use a formvariables loop to pick out variables that begin with _sku (name=_sku&exact=F). The corresponding values for the formvariables are used in the search (eqSKUdatarq=[url][value][/url]). The code will produce a table row for each item selected. [formvariables name=_sku&exact=F] [search db=Briggs.db&eqSKUdatarq=[url][value][/url]] [founditems] [SKU] [title] [quantity] $[format .2f][price1][/format] [cart]&sku=[url][sku][/url]>Specs [cart]&db=Briggs.db&sku=[url][sku][/ url]>Add to Order [/founditems] [/search] [/formvariables]-----Original Message----- From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of Eric palhof Sent: Tuesday, March 14, 2000 7:59 AM To: WebCatalog Talk Subject: Re: Form Variables John: I hope this clarifies my problem: I am using a multiple menu (see: http://24.94.116.14/Briggs/SKU3.tpl). I am able to select from the list more than one item by holding down the control key or command key. The list is drawn from the database. I understand what your saying about searching the database and may have confused it with list drawn from the db. I know the selections from the list are passed by using the form variables so what I need is a search on the database that finds the multiple selection and returns them as line items in the result page. My code looks like this on the search page:
[search db=My.db&neSKUdatarq=find_all&asSKUsort=1] [/search]
My code on the result.tpl looks like this:[founditems] [SKU] [title] [quantity] $[format .2f][price1][/format] [cart]&sku=[url][sku][/url]>Specs [cart]&db=my.db&sku=[url][sku][/url] >Add to Order [/foundItems]Is this clear?---------- >From: John Butler >To: (WebCatalog Talk) >Subject: Re: Form Variables >Date: Tue, Mar 14, 2000, 10:42 AM >> Eric if you post your actual code then you'll get better help. But do try > to isolate > just the code that is relevant - i.e. just the part that is what you are using to > attempt something which is not working. So in this case you would post the > code you > are using which you think should get each found item along with description, price > etc. into a line item format on the result page > > You say you read the manual on [formvariables]? It does just what it says > it does - > Lists all the form variables and parameters passed to the current page. > (There's nothing in that desciption about searching a database.) > > Please just ask if something in the desciption of what [formvariables] does is > confusing to you. :-) If you are trying to search a database for records and then > display data from those records on a page then you don't need > [formvariables]. People > have been suggesting you use [formvariables] just to see if you have successfully > written code which will pass the name/value pairs that you DO need to construct a > meaningful search. Try to break your confusion down into smaller bits... since it > seems like there are several things you are not yet understanding and it's > all rolled > up into a ball and hard to unravel... For example ask me to explain what I mean if > there is something in this post which you don't understand. Be specific. > > :-) > > -John > > Eric palhof wrote: > >> I've been told form variables are only used to test and debug to see if the >> data is passed. What I'm attempting to do is get each found item along with >> description, price etc. into a line item format on the result page. I have >> the [founditems] wrapped around the line items but only the first item in >> the search shows up. I want to remove the >> >> [formvariables] >> [value]
>> [/formvariables] >> >> after I get this to work correctly. >> I tried the form variables in the body where I should probably use something >> else to achieve my goal but I'm not sure what to do with this. If Form >> Variables are only to be used for debugging, it is not stated in the manual >> on page 126 to 128. So I'm left wondering if it is used other than testing. >> >> ---------- >> >From: Charles Kline >> >To: (WebCatalog Talk) >> >Subject: Re: Form Variables >> >Date: Tue, Mar 14, 2000, 9:12 AM >> > >> >> > what are you trying to do?? >> > >> > >> >>I've tried to wrap: [formvariables] around my [search] tags but it doesn't >> >>work. I only see the first line item. I've moved [formvariables] around to >> >>find the correct position but nothing works. I placed at the top of the page >> >>and tested: >> >>[formvariables] >> >>[value]
>> >>[/formvariables] >> >> >> >>and I can see the SKU and all the items IDs. Can anyone shed some light on >> >>this? > > > ------------------------------------------------------------- > 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------------------------------------------------------------- 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 ------------------------------------------------------------- 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 WebDNA Support

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:

Separate SSL Server (1997) Calculating Total QTY (1998) international time (1997) [WebDNA] Timestamp Converter (2015) Re:quit command on NT (1997) Help wanted (1998) multi condition with showif (2005) More than one db with the same namn (was: WC2f3) (1997) Questions (1998) Hiding HTML and page breaks (1997) Pre-flight public flag (1997) Hard Questions ? (1997) Converting SQL Microtime to Date and Time (2003) Multiple Merchant Accounts? (1997) [BULK] [WebDNA] PayPal Integration (2017) InSecureTextVariables.... (2000) (1997) Include a big block of text (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Can't Update records (1997)