Re: CountChars

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59590
interpreted = N
texte = Thank you. This *is* the ENCTYPE style of form, and I fixed the problem by adding another named variable for sku in the [formvariables] context. This is just like the one for "thename" that is used in the default script. [showif [url][name][/url]^[url]"sku"[/url]] [text]sku=[value][/text] [/showif] This did the trick, as it carries the value when the form is posted for one picture to the next. Thanks for the help, ----- Patrick Junkroski On Oct 13, 2004, at 1:19 PM, WebDna @ Inkblot Media wrote: > If the form is using ENCTYPE="multipart/form-data" you will need to > use the quotes in the variable. > > ["sku"] > > To verify this use a [formvariables] loop to see what is being passed > into the page. > > > > ----- Original Message ----- From: "Patrick J." > To: "WebDNA Talk" > Sent: Wednesday, October 13, 2004 9:16 AM > Subject: Re: CountChars > > >> Actually, you brought up an important point I forgot to mention. I'm >> using this in the context of a file upload, not a search - though the >> SKU is carried over via a form from the previous page. I think you >> put me in the right direction, Brian. Thanks. >> >> ----- >> Patrick Junkroski >> President/CEO >> 239.642.0304 >> http://www.vsm.net >> >> On Oct 13, 2004, at 11:52 AM, Brian Boegershausen wrote: >> >>> [text show=F]TheSku=[sku][/text] >>> [countchars][TheSku][/countchars] >>> >>> If the count chars comes up as 5 again, then you having an issue >>> with the results. >>> >>> Are you sure you have the tag inside the [founditems] tags? >>> >>> Brian >>> ----- Original Message ----- From: "Patrick J." >>> To: "WebDNA Talk" >>> Sent: Wednesday, October 13, 2004 11:14 AM >>> Subject: CountChars >>> >>> >>>> Hi everyone. >>>> >>>> I have a system that, as the result of some changes and updates, is >>>> dealing with two different SKU lengths. One has 7 digits, the other >>>> has 10. For the most part it makes no difference. However, there is >>>> a feature I need to program that will need to assess the number of >>>> digits in the SKU so that those with 7 digits can be handled >>>> differently than those with 10. >>>> >>>> When I use [countchars][sku][/countchars] it only gives me "5" (the >>>> number of characters in [sku]). It doesn't actually INTERPRET the >>>> [sku] field before counting the characters. And no, using the >>>> [interpret] tag didn't help me either. Clearly, I'm missing >>>> something ridiculously simple. >>>> >>>> Anyone know what that might be? I'm using 4.5.1 on OS X. >>>> >>>> Thanks, >>>> >>>> ----- >>>> Patrick Junkroski >>>> >>>> >>>> ------------------------------------------------------------- >>>> 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/ >>> >>> >>> >>> ------------------------------------------------------------- >>> 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/ >>> >> >> >> ------------------------------------------------------------- >> 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/ > > > ------------------------------------------------------------- > 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/ > ------------------------------------------------------------- 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: CountChars ( Patrick J. 2004)
  2. Re: CountChars ( "WebDna @ Inkblot Media" 2004)
  3. Re: CountChars ( Patrick J. 2004)
  4. Re: CountChars ( "Brian Boegershausen" 2004)
  5. CountChars ( Patrick J. 2004)
  6. Re: ShowIf & CountChars (John Butler 2000)
  7. Re: ShowIf & CountChars (Anup Setty 2000)
  8. Re: ShowIf & CountChars (Mark Derrick 2000)
  9. ShowIf & CountChars (John's Lists 2000)
Thank you. This *is* the ENCTYPE style of form, and I fixed the problem by adding another named variable for sku in the [formvariables] context. This is just like the one for "thename" that is used in the default script. [showif [url][name][/url]^[url]"sku"[/url]] [text]sku=[value][/text] [/showif] This did the trick, as it carries the value when the form is posted for one picture to the next. Thanks for the help, ----- Patrick Junkroski On Oct 13, 2004, at 1:19 PM, WebDna @ Inkblot Media wrote: > If the form is using ENCTYPE="multipart/form-data" you will need to > use the quotes in the variable. > > ["sku"] > > To verify this use a [formvariables] loop to see what is being passed > into the page. > > > > ----- Original Message ----- From: "Patrick J." > To: "WebDNA Talk" > Sent: Wednesday, October 13, 2004 9:16 AM > Subject: Re: CountChars > > >> Actually, you brought up an important point I forgot to mention. I'm >> using this in the context of a file upload, not a search - though the >> SKU is carried over via a form from the previous page. I think you >> put me in the right direction, Brian. Thanks. >> >> ----- >> Patrick Junkroski >> President/CEO >> 239.642.0304 >> http://www.vsm.net >> >> On Oct 13, 2004, at 11:52 AM, Brian Boegershausen wrote: >> >>> [text show=F]TheSku=[sku][/text] >>> [countchars][TheSku][/countchars] >>> >>> If the count chars comes up as 5 again, then you having an issue >>> with the results. >>> >>> Are you sure you have the tag inside the [founditems] tags? >>> >>> Brian >>> ----- Original Message ----- From: "Patrick J." >>> To: "WebDNA Talk" >>> Sent: Wednesday, October 13, 2004 11:14 AM >>> Subject: CountChars >>> >>> >>>> Hi everyone. >>>> >>>> I have a system that, as the result of some changes and updates, is >>>> dealing with two different SKU lengths. One has 7 digits, the other >>>> has 10. For the most part it makes no difference. However, there is >>>> a feature I need to program that will need to assess the number of >>>> digits in the SKU so that those with 7 digits can be handled >>>> differently than those with 10. >>>> >>>> When I use [countchars][sku][/countchars] it only gives me "5" (the >>>> number of characters in [sku]). It doesn't actually INTERPRET the >>>> [sku] field before counting the characters. And no, using the >>>> [interpret] tag didn't help me either. Clearly, I'm missing >>>> something ridiculously simple. >>>> >>>> Anyone know what that might be? I'm using 4.5.1 on OS X. >>>> >>>> Thanks, >>>> >>>> ----- >>>> Patrick Junkroski >>>> >>>> >>>> ------------------------------------------------------------- >>>> 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/ >>> >>> >>> >>> ------------------------------------------------------------- >>> 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/ >>> >> >> >> ------------------------------------------------------------- >> 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/ > > > ------------------------------------------------------------- > 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/ > ------------------------------------------------------------- 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/ Patrick J.

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:

[WebDNA] Code Library (2013) RequiredFields template (1997) page redirect in webDNA (1997) Ampersand (1997) WebCat2 Append problem (B14Macacgi) (1997) Triggers (2003) WebCatalog f2 Installation (1997) Secure server question (1997) Signal Raised (1997) [Shell]ps -A[/Shell] Linux Webcat Q (2000) Locking up with WebCatalog... (1997) f2 download problems (1997) service stop and restart (1997) Adding Message to Order (1997) [WebDNA] Searching Possible Bug (2009) StoreBuilder Q's (2003) [WebDNA] RE: Error. WebDNA (version 5.1g or later) is not running. (2012) Avery 5160 Mailing Labels (2003) quantity minimum problem (1997) WebCatalog Work (2001)