ShowNext example for GeneralStore

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14315
interpreted = N
texte = 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.com Associated Messages, from the most recent to the oldest:

    
  1. Re: ShowNext example for GeneralStore (Grant Hulbert 1997)
  2. ShowNext example for GeneralStore (Grant Hulbert 1997)
  3. Re: ShowNext example for GeneralStore (Dale Stokdyk 1997)
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.com Grant Hulbert

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:

About WebCatalog and iTools 7 (2003) Sending mail (was forms and variables) (1998) Reversed words (1997) Special characters in field names (1998) WC2.0 Memory Requirements (1997) add to cart within a page? (1997) [WebDNA] Stuck with installing Webdna 8.5 (2017) autocommit problem (1998) purchase.log file (1997) How true is this? (1999) fuzzy searching (1999) Cart ID Duplication (2001) RE: Adding a product from another site (1997) Tab Charactor (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Emailer setup (1997) RED QUESTION MARK (1999) Just Testing (1997) Cart Numbers (1997) Sorting by date (1997)