Re:Variable Math

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16892
interpreted = N
texte = On 4/6/98 10:36 AM Morris Camp wrote >I've got so far to go, a few detours is no big deal. I'll go back to see >why I elected the current path with your thoughts in mind, but I'll always >need to store and perform math on variables. Why won't what I wrote work? >I'm following the examples on pages 137 & 138 plus a zillion other >possibilities.Morris here is a posting from Grant Hubert sometime ago. It gave me a clearer understanding of how the shownext feature works.I just modified the AdminResults.tmpl to use shownext for both hyperlinks and form buttons. I did notice that max=N did not seem to be automated in the case of form buttons, but it's correct for hyperlinks (easily fixed, but confusing).Here's what I did:1) Open AdminResults.tmpl, and paste the following in FRONT of the table: [shownext position=begin&max=1&method=POST]
[searchstring]
[/shownext]2) Paste the following AFTER the table: [shownext position=end&max=1&method=POST]
[searchstring]
[/shownext]3) Enter the GeneralStore admin page and click List All Products 4) Notice no shownexts appear, because no max=N is provided 5) Modify URL in browser to add &max=5 to URLIf you want to do the same thing, but with hyperlinks instead, change the ShowNext to the following:[shownext position=begin&max=1]Show [start] - [end]
[/shownext]and[shownext position=end&max=1]Show [start] - [end]
[/shownext]In both cases you can see the purpose of [SearchString] is to fill in all the search variables for you, and it automatically calculates start and end values for its own section of the search. When you specify method=POST inside [ShowNext], then [SearchString] generates style variables, and if you specify method=GET, then it generates name1=value1&name2=value2 style variables.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ==== Pacific Coast Software | WebCatalog, WebMerchant 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.comRobert Minor ______________________________________ Cybermill Communications 8616 Joseph Ave. St. Louis, MO 63144 (314) 962-4024webmaster@cybermill.com http://www.cybermill.com ______________________________________ Always looking for the easy way! Associated Messages, from the most recent to the oldest:

    
  1. Re:Variable Math (bob 1998)
  2. Re:Variable Math (Mícheál O Sé 1998)
  3. Re:Variable Math (Jay Van Vark 1998)
  4. Re:Variable Math (bob 1998)
  5. Re:Variable Math (mgcamp@gulftel.com (Morris Camp) 1998)
  6. Re:Variable Math (Jay Van Vark 1998)
On 4/6/98 10:36 AM Morris Camp wrote >I've got so far to go, a few detours is no big deal. I'll go back to see >why I elected the current path with your thoughts in mind, but I'll always >need to store and perform math on variables. Why won't what I wrote work? >I'm following the examples on pages 137 & 138 plus a zillion other >possibilities.Morris here is a posting from Grant Hubert sometime ago. It gave me a clearer understanding of how the shownext feature works.I just modified the AdminResults.tmpl to use shownext for both hyperlinks and form buttons. I did notice that max=N did not seem to be automated in the case of form buttons, but it's correct for hyperlinks (easily fixed, but confusing).Here's what I did:1) Open AdminResults.tmpl, and paste the following in FRONT of the table: [shownext position=begin&max=1&method=POST]
[searchstring]
[/shownext]2) Paste the following AFTER the table: [shownext position=end&max=1&method=POST]
[searchstring]
[/shownext]3) Enter the GeneralStore admin page and click List All Products 4) Notice no shownexts appear, because no max=N is provided 5) Modify URL in browser to add &max=5 to URLIf you want to do the same thing, but with hyperlinks instead, change the ShowNext to the following:[shownext position=begin&max=1]Show [start] - [end]
[/shownext]and[shownext position=end&max=1]Show [start] - [end]
[/shownext]In both cases you can see the purpose of [SearchString] is to fill in all the search variables for you, and it automatically calculates start and end values for its own section of the search. When you specify method=POST inside [shownext], then [SearchString] generates style variables, and if you specify method=GET, then it generates name1=value1&name2=value2 style variables.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ==== Pacific Coast Software | WebCatalog, WebMerchant 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.comRobert Minor ______________________________________ Cybermill Communications 8616 Joseph Ave. St. Louis, MO 63144 (314) 962-4024webmaster@cybermill.com http://www.cybermill.com ______________________________________ Always looking for the easy way! bob

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:

Country & Ship-to address & other fields ? (1997) WebCatalog for guestbook ? (1997) Need relative path explanation (1997) URGENT can not.... (2006) Upgrade on MacOSX 3.05 to 3.08 (2000) [input] questions (1997) WebCat2.0 [format thousands .0f] no go (1997) Download to disk NOT display in browser (2002) pull downs (1997) SM's Tech Help (or lack of) (2000) form data submission gets truncated (1997) Time Tracking (2003) WebCatalog on LinuxPPC (2000) The IBC root beer has arrived! (1997) Re(4): Small Bug: ErrorLog.txt/[FORMVARIABLES]/[ORDERFILE] (1998) Variables for chat (1997) Protecting Images (2003) WebCat2b15MacPlugin - [protect] (1997) Number searching/formats (1998) Country & Ship-to address & other fields ? (1997)