What is WebDNA

WebDNA is a scripting and database system designed to easily build web applications.

WebDNA and BioType

BioType service is a biometric keystroke dynamic system. It will be part of WebDNA 8.5

Download WebDNA

Download WebDNA freeware, try it and register later if you want.

WebDNA resources

The list of all WebDNA instructions.
WebDNA
Software Corporation
Search WebDNA Site
 Menu


HOME


DOWNLOADS


LEARN


EDUCATION


NEWS


COMMUNITY


STORE


SUPPORT


CONTACT

Re: Need formatting help

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19591
interpreted = N
texte = >I am trying to output the results of a database search into a page with >specific formatting needs. When there is only one match, I need to have >the results placed into a table with one cell only. When there are two >matches, it would be two cells wide (only one high) and with three, it >would be three wide and one high. If there are more than three, I need >to have the pattern repeat. In other words, if there are four matches, >I need to have the top table to have three cells, and the second table >to have only one cell. > >If this makes any sense, and some one can help me, I would greatly >appreciate it...Here, try this, it always works for me:[search] [founditems] [showif [index]\3][/showif] [/founditems]
[fieldName]
[/search]The [showif] context adds the tags after every three found items, and those tags are responsible for creating the row breaks in your table.Oh, by the way, if the backslash in [showif [index]\3] doesn't work, try a forward slash instead: [showif [index]/3] instead. I always forget whether or not the divisible by character is a forward slash or a backslash, but one of them actually does work ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: Need formatting help (PCS Technical Support 1998)
  2. Re: Need formatting help (Kenneth Grome 1998)
  3. Need formatting help (Dennis J. Bonsall, Jr. 1998)
>I am trying to output the results of a database search into a page with >specific formatting needs. When there is only one match, I need to have >the results placed into a table with one cell only. When there are two >matches, it would be two cells wide (only one high) and with three, it >would be three wide and one high. If there are more than three, I need >to have the pattern repeat. In other words, if there are four matches, >I need to have the top table to have three cells, and the second table >to have only one cell. > >If this makes any sense, and some one can help me, I would greatly >appreciate it...Here, try this, it always works for me:[search] [founditems] [showif [index]\3][/showif] [/founditems]
[fieldName]
[/search]The [showif] context adds the tags after every three found items, and those tags are responsible for creating the row breaks in your table.Oh, by the way, if the backslash in [showif [index]\3] doesn't work, try a forward slash instead: [showif [index]/3] instead. I always forget whether or not the divisible by character is a forward slash or a backslash, but one of them actually does work ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

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:

MacOS alias identification? (1998) Append..... doesn't (2000) About to give up (1998) [append] vs. [appendfile] delta + question? (1997) OT: 800x600 (2003) Subtotal Not Calculated on Invoice.html (1998) ErrorMessages.db (1998) WebCat2.0 [format thousands .0f] no go (1997) You *can!!* overwrite username/password using an HTML form. Also, experts *please* see Q at end (2000) Just testing (2003) Join us at MacWorld! - Part 2 (1998) CountChars (2004) Problems when user hit back (2000) REPOST [SUM field=xxxx] (2000) no template caching (1997) Emailer Set Up (1997) Locking up with WebCatalog... (1997) Frames and WebCat (1997) [HTML*] (a proposition) (1997) [WebDNA] OSX users (2009)