Re: SHOWIF/HIDEIF empty fields

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 61889
interpreted = N
texte = Frank If your field 'FIELD' contains ! then the way that you have written your showif will not work. WebDNA then sees [ShowIf myfield!=] When you expand this out it says ShowIf myfield does not equal equals [blank] For your ShowIf to work consistently it must he written: [ShowIf [URL][FIELD][/URL]=] On 01/05/2005, at 12:49 AM, Frank Nordberg wrote: > Here's something that really puzzles me. > > In theory there are two methods if you want to show a text block only > if a given database field has content: > > [SHOWIF [FIELD]=]{text block}[/SHOWIF] > or > [HIDEIF [FIELD]?]{text block}[/HIDEIF] > > However, I've found that both don't always work. Sometimes the first > one works while the second one doesn't, in other apparently identical > circumstances it's the other way round. Crazily enough there doesn't > seem to be any system to it so the only way to find out which one > works is to try both. > > Does anybody have an idea why WebDNA acts like this? > > > > > Frank Nordberg > http://www.musicaviva.com > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > > Regards Stuart Tremain idfk web developments 114a/40 yeo street neutral bay 2089 australia t +612 9908 2134 f +612 9908 4837 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: SHOWIF/HIDEIF empty fields ( Terry Wilson 2005)
  2. Re: SHOWIF/HIDEIF empty fields ( Kenneth Grome 2005)
  3. Re: SHOWIF/HIDEIF empty fields ( Donovan Brooke 2005)
  4. Re: SHOWIF/HIDEIF empty fields ( Lester 2005)
  5. Re: SHOWIF/HIDEIF empty fields ( Donovan Brooke 2005)
  6. Re: SHOWIF/HIDEIF empty fields ( Frank Nordberg 2005)
  7. Re: SHOWIF/HIDEIF empty fields ( Stuart Tremain 2005)
  8. Re: SHOWIF/HIDEIF empty fields ( Kenneth Grome 2005)
  9. Re: SHOWIF/HIDEIF empty fields ( Bob Minor 2005)
  10. Re: SHOWIF/HIDEIF empty fields ( "WebDna @ Inkblot Media" 2005)
  11. Re: SHOWIF/HIDEIF empty fields ( Kenneth Grome 2005)
  12. Re: SHOWIF/HIDEIF empty fields ( Donovan Brooke 2005)
  13. Re: SHOWIF/HIDEIF empty fields -- OOPS ( Gary Krockover 2005)
  14. Re: SHOWIF/HIDEIF empty fields ( Gary Krockover 2005)
  15. Re: SHOWIF/HIDEIF empty fields ( Kenneth Grome 2005)
  16. Re: SHOWIF/HIDEIF empty fields ( Stuart Tremain 2005)
  17. Re: SHOWIF/HIDEIF empty fields ( Gary Krockover 2005)
  18. Re: SHOWIF/HIDEIF empty fields ( Stuart Tremain 2005)
  19. Re: SHOWIF/HIDEIF empty fields ( Gary Krockover 2005)
  20. Re: SHOWIF/HIDEIF empty fields ( Stuart Tremain 2005)
  21. Re: SHOWIF/HIDEIF empty fields ( Kenneth Grome 2005)
  22. Re: SHOWIF/HIDEIF empty fields ( Donovan Brooke 2005)
  23. Re: SHOWIF/HIDEIF empty fields ( Kenneth Grome 2005)
  24. Re: SHOWIF/HIDEIF empty fields ( Frank Nordberg 2005)
  25. Re: SHOWIF/HIDEIF empty fields ( Kenneth Grome 2005)
  26. SHOWIF/HIDEIF empty fields ( Frank Nordberg 2005)
Frank If your field 'FIELD' contains ! then the way that you have written your showif will not work. WebDNA then sees [ShowIf myfield!=] When you expand this out it says ShowIf myfield does not equal equals [blank] For your ShowIf to work consistently it must he written: [ShowIf [url][FIELD][/URL]=] On 01/05/2005, at 12:49 AM, Frank Nordberg wrote: > Here's something that really puzzles me. > > In theory there are two methods if you want to show a text block only > if a given database field has content: > > [SHOWIF [FIELD]=]{text block}[/SHOWIF] > or > [HIDEIF [FIELD]?]{text block}[/HIDEIF] > > However, I've found that both don't always work. Sometimes the first > one works while the second one doesn't, in other apparently identical > circumstances it's the other way round. Crazily enough there doesn't > seem to be any system to it so the only way to find out which one > works is to try both. > > Does anybody have an idea why WebDNA acts like this? > > > > > Frank Nordberg > http://www.musicaviva.com > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > > Regards Stuart Tremain idfk web developments 114a/40 yeo street neutral bay 2089 australia t +612 9908 2134 f +612 9908 4837 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Stuart Tremain

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:

frames & carts (1997) newbie question about zip code search (2003) Quickbooks import (2006) Triggers (2003) nested showif? (1998) Templates on Unix & CGI on Mac? (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) webdna email center (2003) Find Duplicates in Cart (2001) How to search for fields with 10 or more characters? (2004) More on IE5 (2000) problems with 2 tags shakur (1997) SMSI FTP - calander system THANKS! (2002) Occasional crashes with $remove (1997) webcat- multiple selection in input field (1997) SQL statements (2002) Before I Can Begin . . . (1998) ErrorMessages.db suggestion (1997) Running 2 two WebCatalog.acgi's (1996) [WebDNA] PayPal Instant Payment Notification Guide (2009)