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:

WC2b15 File Corruption (1997) Help Please WebDNA 6 Secure Forms Problem (2004) Test (2007) Subtotal Not Calculated on Invoice.html (1998) WC2b15 File Corruption (1997) Emailer (1997) Part 2 - [showif] if variable exists (1998) When do we get to request new features? (1999) Limits (2000) How do you hide [math]stuff[/math] (1997) RE: [taxRate] [TaxTotal] ? (1997) Random ads (1998) Typo in the Online Docs ... (1997) wierd [cart] action! (1997) WAP (2000) texta,b,c,d,e (urgent) (2003) [sendmail] problem getting silly now =\ (2000) Re:2nd WebCatalog2 Feature Request (1996) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) [OT] Who's got a cool link (2002)