Re: How to Display text in empty fields

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 12301
interpreted = N
texte = >I have a question I was hoping one of you might be able to answer... We >have a database that is comprised of information from different companies, >the fields are: name, url, email, phone, fax, and description. Now, not >all records make use of all the fields, for example a record for a company >might have phone, fax and email, but no URL, while another one might have >a URL and email but no phone or fax. Now the fields that don't contain any >info, are simply blank. Now here's my question, I need to format my >results page to deal with this problem. I need to either insert N/A >automatically for the empty fields, or have them simply be >ignored(i.e.leave no empty space). Does anybody have any suggestions?Blank fields are ignored automatically if they are empty.Use [field][showif [field]=]N/A[/showif] instead of just [field] wherever you want to display N/A in place of an empty field value ... :)Sincerely, Ken Grome WebDNA Solutions Associated Messages, from the most recent to the oldest:

    
  1. Re: How to Display text in empty fields (Trevor Crist 1997)
  2. Re: How to Display text in empty fields (Trevor Crist 1997)
  3. How to Display text in empty fields (Jose A. Gordo 1997)
  4. Re: How to Display text in empty fields (Kenneth Grome 1997)
  5. Re:How to Display text in empty fields (Jay Van Vark 1997)
>I have a question I was hoping one of you might be able to answer... We >have a database that is comprised of information from different companies, >the fields are: name, url, email, phone, fax, and description. Now, not >all records make use of all the fields, for example a record for a company >might have phone, fax and email, but no URL, while another one might have >a URL and email but no phone or fax. Now the fields that don't contain any >info, are simply blank. Now here's my question, I need to format my >results page to deal with this problem. I need to either insert N/A >automatically for the empty fields, or have them simply be >ignored(i.e.leave no empty space). Does anybody have any suggestions?Blank fields are ignored automatically if they are empty.Use [field][showif [field]=]N/A[/showif] instead of just [field] wherever you want to display N/A in place of an empty field value ... :)Sincerely, Ken Grome WebDNA Solutions 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:

Major Security Hole (1998) Webten + Webcat running smooth (1998) problems with 2 tags (1997) includes and cart numbers (1997) WebCat2b15MacPlugin - showing [math] (1997) Help! WebCat2 bug (1997) Major Security Hole IIS NT (1998) Sorry WebCatalog server not running. (2002) Nested tags count question (1997) Resume Catalog ? (1997) [Price] (1997) Formatting dates stored in db (2003) RE: OK, here goes... (1997) Generating Report Totals (1997) [OT] Mozilla | Was: R.I.P. Netscape (2003) Max Record length restated as maybe bug (1997) multiple databases (1997) SandBox and ImageMagick (2003) PSC recommends what date format yr 2000??? (1997) WebDNA+unixODBC+MS SQL (2005)