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: Formvariables name matching

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 63570
interpreted = N
texte = Try this [FormVariables] [ShowIf [GetChars start=1&end=4][name][/GetChars]=first 4 characters of name] [VALUE] [/ShowIf] [/FormVariables] Stuart Tremain idfk web developments, sydney, australia On 09 Dec 2005, at 6:04 PM, William DeVaul wrote: > Thanks for that fast reply. I wish there were a way to do begins > with, but at least I can work with this. > > Regards, > Bill > > On Dec 9, 2005, at 1:47 AM, Stuart Tremain wrote: > >> William, you need to treat it as a 'contains' >> From the docs: "to exactly match the name of the parameter or >> match any name that contains the "name" value." >> >> Stuart Tremain >> idfk web developments, sydney, australia >> >> >> On 09 Dec 2005, at 5:42 PM, William DeVaul wrote: >> >>> How does formvariables match by name? >>> >>> In one case I have formvariables name=1_vendorname and in another >>> I have name=_1_vendorname. >>> >>> I can't understand why the first one fails but the second works. >>> Does the formvariables with an inexact match match in the middle >>> of the name rather than at the start? >>> >>> --------------Sample code------------ >>> This works as expected: >>> >>> [showif submit=[submit]] >>> [formvariables name=sku_&exact=F] >>> SKU=[text show=T]keyfieldsku=[value][/text]
>>> [formvariables name=_[value]_&exact=F] >>> [grep search=^_[keyfieldsku]_&replace=][NAME]:[/grep]=[value] >>>
>>> [/formvariables] >>> 
>>> [/formvariables] >>> [/showif] >>> >>> Example output for above code: >>> SKU=1 >>> VENDORNAME:=This is the name of vendor1 >>> VENDORADDRESS:=This is the address of vendor1 >>> >>> SKU=2 >>> VENDORNAME:=This is the name of vendor2 >>> VENDORADDRESS:=This is the address of vendor2 >>> >>> >>> >>> This does not work as expected (I have changed the form to remove >>> the _ at the front of the var name.): >>> >>> [showif submit=[submit]] >>> [formvariables name=sku_&exact=F] >>> SKU=[text show=T]keyfieldsku=[value][/text]
>>> [formvariables name=[value]_&exact=F] >>> [grep search=^[keyfieldsku]_&replace=][NAME]:[/grep]=[value]
>>> [/formvariables] >>> 
>>> [/formvariables] >>> [/showif] >>> >>> Example output: >>> SKU=1 >>> VENDORNAME:=This is the name of vendor1 >>> VENDORADDRESS:=This is the address of vendor1 >>> >>> 21_VENDORNAME:=This is the name of vendor21 >>> 21_VENDORADDRESS:=This is the address of vendor21 >>> >>> 31_VENDORNAME:=This is the name of vendor31 >>> 31_VENDORADDRESS:=This is the address of vendor31 >>> >>> >>> ------------------------------------------------------------- >>> 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 >> digest@talk.smithmicro.com> >>> Web Archive of this list is at: http://webdna.smithmicro.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 > digest@talk.smithmicro.com> >> Web Archive of this list is at: http://webdna.smithmicro.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 digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.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/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Formvariables name matching ( Marko Bernyk 2005)
  2. Re: Formvariables name matching ( Donovan Brooke 2005)
  3. Re: Formvariables name matching ( Stuart Tremain 2005)
  4. Re: Formvariables name matching ( William DeVaul 2005)
  5. Re: Formvariables name matching ( Stuart Tremain 2005)
  6. Formvariables name matching ( William DeVaul 2005)
Try this [formvariables] [ShowIf [GetChars start=1&end=4][name][/GetChars]=first 4 characters of name] [VALUE] [/ShowIf] [/FormVariables] Stuart Tremain idfk web developments, sydney, australia On 09 Dec 2005, at 6:04 PM, William DeVaul wrote: > Thanks for that fast reply. I wish there were a way to do begins > with, but at least I can work with this. > > Regards, > Bill > > On Dec 9, 2005, at 1:47 AM, Stuart Tremain wrote: > >> William, you need to treat it as a 'contains' >> From the docs: "to exactly match the name of the parameter or >> match any name that contains the "name" value." >> >> Stuart Tremain >> idfk web developments, sydney, australia >> >> >> On 09 Dec 2005, at 5:42 PM, William DeVaul wrote: >> >>> How does formvariables match by name? >>> >>> In one case I have formvariables name=1_vendorname and in another >>> I have name=_1_vendorname. >>> >>> I can't understand why the first one fails but the second works. >>> Does the formvariables with an inexact match match in the middle >>> of the name rather than at the start? >>> >>> --------------Sample code------------ >>> This works as expected: >>> >>> [showif submit=[submit]] >>> [formvariables name=sku_&exact=F] >>> SKU=[text show=T]keyfieldsku=[value][/text]
>>> [formvariables name=_[value]_&exact=F] >>> [grep search=^_[keyfieldsku]_&replace=][NAME]:[/grep]=[value] >>>
>>> [/formvariables] >>> 
>>> [/formvariables] >>> [/showif] >>> >>> Example output for above code: >>> SKU=1 >>> VENDORNAME:=This is the name of vendor1 >>> VENDORADDRESS:=This is the address of vendor1 >>> >>> SKU=2 >>> VENDORNAME:=This is the name of vendor2 >>> VENDORADDRESS:=This is the address of vendor2 >>> >>> >>> >>> This does not work as expected (I have changed the form to remove >>> the _ at the front of the var name.): >>> >>> [showif submit=[submit]] >>> [formvariables name=sku_&exact=F] >>> SKU=[text show=T]keyfieldsku=[value][/text]
>>> [formvariables name=[value]_&exact=F] >>> [grep search=^[keyfieldsku]_&replace=][NAME]:[/grep]=[value]
>>> [/formvariables] >>> 
>>> [/formvariables] >>> [/showif] >>> >>> Example output: >>> SKU=1 >>> VENDORNAME:=This is the name of vendor1 >>> VENDORADDRESS:=This is the address of vendor1 >>> >>> 21_VENDORNAME:=This is the name of vendor21 >>> 21_VENDORADDRESS:=This is the address of vendor21 >>> >>> 31_VENDORNAME:=This is the name of vendor31 >>> 31_VENDORADDRESS:=This is the address of vendor31 >>> >>> >>> ------------------------------------------------------------- >>> 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 >> digest@talk.smithmicro.com> >>> Web Archive of this list is at: http://webdna.smithmicro.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 > digest@talk.smithmicro.com> >> Web Archive of this list is at: http://webdna.smithmicro.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 digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.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/ 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:

WebTen and WebCat (1997) What am I doing wrong? (2000) more ! testing (1997) FORMS: Returning a specific page (1997) WebCatalog/Mac 2.1b2 - PIXO (1997) [UPPERCASE] (1997) [random] only for 1-100??? (1997) [OT] Mime Headers / Meta-Tags (2003) RAM variables (1997) carriage returns in data (1997) Claris HomePage messes up the code (1997) OR in Showifs (Was: Secure Web Server) (1999) Pithy questions on webcommerce & siteedit (1997) PCS Frames-Default page is solution! (1997) Limitations on fields? Server is crashing (1997) NT BETA BUG???? (1997) [cart]'s ever get recycled? (2000) Leap Day Triggers? -confirmation- (2000) shortening the cart (1998) Authenticate (1997)