Re: WC TableGrinder

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 11087
interpreted = N
texte = Hi,Karl and others --- As for tables, check out: http://technotrade.com/table/table.htmlI'm always one to cross-breed! :) Furthermore, this comes from another San Diego developer. Other cool tools there too -- but no Mac, Unix. Grant, John or Jay might want to visit with this dude if you haven't already. It was strange looking at how close that stuff matches PCS stuff. Here is a snip from the HTML page:--- snip starts:This script creates html tables on the fly by reading in your data from an ascii text file. This reduces the hassles of having to upload a new html file with tags each time you need to modify your data. This script is useful for posting a price list or any other type of information that is updated regularly. The only thing you need to change is the text file containing your data, and the Table creator does the rest. How it works The example I have here is for a computer dealer product listing. The dealer uploads a text file containing a list of all products like Ram, Motherboards, Hard drives etc. An additional Search feature has been added which tells the script to only display products that match a certain criteria, for example : Display all RAM or Display, all Monitors etc. We also send the script what we want the table to look like (border, cellpadding,spacing, width), a heading for the table, name of the text file to read and the number of fields in each record. Sample text file Description,Price MotherBoard|486 PCI 256KCache 4-30 2-72pin| $85 MotherBoard|Pentium PCI/ISA 256K Pipeline Cache| $122 MotherBoard|Pentium PCI/ISA 512K Pipeline Cache| $172 CPU|AMD 486 DX4-133MHZ| $45 CPU|Intel Pentium 75 MHZ| $110 CPU|Intel Pentium 100 MHZ| $150 CPU|Intel Pentium 120 MHZ| $165 CPU|Intel Pentium 133 MHZ| $238 CPU|Intel Pentium 166 MHZ| $465 RAM|4 MB 72 pin 1x32| $30 RAM|(2) 4 MB SIMMS=8MB| $60 RAM|8 MB 72 pin 2x32| $60 RAM|(2) 8 MB SIMMS=16MB| $120 You'll notice that all the fields in the file are separated by pipe | characters, and the first line contains the Titles of each field (Description and Price). We can also insert html code into the text file, so in this case the title of each field will come out in bold. Following is how we activate the script.---- end script:Oh yea, Script is on the WWW. Price for commercial use: $20.Could be just what the doctor ordered.Original post follows:>From: Karl Schroll, schroll@sover.net >Reply-To: WebDNA-Talk@smithmicro.com > >For our WC rendered site project, we want to have a series of >templates that our clients can use to render HTML Tables to use in their >WC-generated page. We want the tables to be of variable size based upon >values entered in [NumCols] and [NumRows]. So you enter 4 columns x 4 >rows and get back a form with 16 fields which would correspond to a WC >database. You'd enter the table data and submit, and then WC builds a >Table of this size with the new values. I was thinking you'd have a >separate tables.db that would house all of the table data which would be >linked to the primary.db. I envision lots of [Loop]s but the whole >thing has yet to gel for me. I'd appreciate any suggestions. Thanks! >Karl Bye for now. -------------- Mark Rauterkus, Publisher, S.S.S.mrauterkus@sportsurf.net -------------- Associated Messages, from the most recent to the oldest:

    
  1. Re: WC TableGrinder (Publisher1 1997)
  2. WC TableGrinder (Karl Schroll 1997)
Hi,Karl and others --- As for tables, check out: http://technotrade.com/table/table.htmlI'm always one to cross-breed! :) Furthermore, this comes from another San Diego developer. Other cool tools there too -- but no Mac, Unix. Grant, John or Jay might want to visit with this dude if you haven't already. It was strange looking at how close that stuff matches PCS stuff. Here is a snip from the HTML page:--- snip starts:This script creates html tables on the fly by reading in your data from an ascii text file. This reduces the hassles of having to upload a new html file with tags each time you need to modify your data. This script is useful for posting a price list or any other type of information that is updated regularly. The only thing you need to change is the text file containing your data, and the Table creator does the rest. How it works The example I have here is for a computer dealer product listing. The dealer uploads a text file containing a list of all products like Ram, Motherboards, Hard drives etc. An additional Search feature has been added which tells the script to only display products that match a certain criteria, for example : Display all RAM or Display, all Monitors etc. We also send the script what we want the table to look like (border, cellpadding,spacing, width), a heading for the table, name of the text file to read and the number of fields in each record. Sample text file Description,Price MotherBoard|486 PCI 256KCache 4-30 2-72pin| $85 MotherBoard|Pentium PCI/ISA 256K Pipeline Cache| $122 MotherBoard|Pentium PCI/ISA 512K Pipeline Cache| $172 CPU|AMD 486 DX4-133MHZ| $45 CPU|Intel Pentium 75 MHZ| $110 CPU|Intel Pentium 100 MHZ| $150 CPU|Intel Pentium 120 MHZ| $165 CPU|Intel Pentium 133 MHZ| $238 CPU|Intel Pentium 166 MHZ| $465 RAM|4 MB 72 pin 1x32| $30 RAM|(2) 4 MB SIMMS=8MB| $60 RAM|8 MB 72 pin 2x32| $60 RAM|(2) 8 MB SIMMS=16MB| $120 You'll notice that all the fields in the file are separated by pipe | characters, and the first line contains the Titles of each field (Description and Price). We can also insert html code into the text file, so in this case the title of each field will come out in bold. Following is how we activate the script.---- end script:Oh yea, Script is on the WWW. Price for commercial use: $20.Could be just what the doctor ordered.Original post follows:>From: Karl Schroll, schroll@sover.net >Reply-To: WebDNA-Talk@smithmicro.com > >For our WC rendered site project, we want to have a series of >templates that our clients can use to render HTML Tables to use in their >WC-generated page. We want the tables to be of variable size based upon >values entered in [NumCols] and [NumRows]. So you enter 4 columns x 4 >rows and get back a form with 16 fields which would correspond to a WC >database. You'd enter the table data and submit, and then WC builds a >Table of this size with the new values. I was thinking you'd have a >separate tables.db that would house all of the table data which would be >linked to the primary.db. I envision lots of [loop]s but the whole >thing has yet to gel for me. I'd appreciate any suggestions. Thanks! >Karl Bye for now. -------------- Mark Rauterkus, Publisher, S.S.S.mrauterkus@sportsurf.net -------------- Publisher1

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:

docs for WebCatalog2 (1997)To Err or Not Custom Error (1999)WebCat website for developers and hosters (2001)Title not showing up in ViewOrder template (1998)Automatically submitting form with web cat. (2001)Mac 2.1b4 unknown error: BadSuffix (1997)RE: Credit Card Checksum (1997)Formulas.db question (2002)writefile - continued (1997)WebCat2 several catalogs? (1997)Ampersand Character (&) (1997)[listfiles] (1998)OT: Please set your computer's clock (1997) OT-Load balance (2004)Emailer (1997)RE: Personal Web Server combined with Webcatalog 2.1 (1998)Loss in form (1998)[WebDNA] total (2010) Converting back to numerical date (2003)DB Commit (2000)