Steve Piercy - Web Site Builder Re: Error in form select option when using comma
Nov 20, 2009; 21:34
Steve Piercy - Web Site Builder
Re: Error in form select option when using comma
On 11/21/09 at 9:35 AM, list@carlestam.com (Jolle Carlestam) pronounced:
>21 nov 2009 kl. 08.56 skrev Johan Solve: > >>At 08.28 +1000 2009-11-21, Jolle Carlestam wrote: >>> Why it needs to split on comma I don't know so I don't dare tamper with it. But >it's rather inconvenient. I can think of a number of occasions >where a list containing comma separated values is relevant. >> >>This is how Lasso stores multiple checkbox values of the same name in MySQL, be it >a varchar field or a SET. >>So an inline like this >>inline(... >>'mycheckbox'='check1', >>'mycheckbox'='check2', >>'mycheckbox'='check3', >>-add); >>/inline; >> >>will be stored like this in mycheckbox in mysql >>check1,check2,check3 >> >>So when reading those values and populating checkboxes for them, we need to split >on ',' to make it match. >> >>It's not cute but this is how it works. >> >>If you find a good workaround for this then I'm all ears. > >That was really odd. Why not store with line feed as separator? >I can come up with a number of valid cases where a value list >can contain comma in the values. >Movie titles: "Patrik 1,5" >The problem case: "1 st 16A, 400V" >Numbers: "1,5"
I ran into this same issue a while ago, and suggested alternatives.
I've never run into this issue before Knop because I never use multi-select form widgets. All my checkboxes are uniquely named.
--steve
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Steve Piercy Web Site Builder Soquel, CA <web@StevePiercy.com> <http://www.StevePiercy.com/>
-- ############################################################# This message is sent to you because you are subscribed to the mailing list <knop@lists.montania.se>. To unsubscribe, E-mail to: <knop-off@lists.montania.se> Send administrative queries to <knop-request@lists.montania.se> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html Project homepage http://montania.se/projects/knop/ Google Code has the latest downloads at http://code.google.com/p/knop/
Nov 20
Johan Solve Re: Error in form select option when using comma
Nov 20, 2009; 23:56
Johan Solve
Re: Error in form select option when using comma
Nov 21
Steve Piercy - Web Site Builder Re: Error in form select option when using comma
Nov 21, 2009; 05:51
Steve Piercy - Web Site Builder
Re: Error in form select option when using comma
Nov 21
Steve Piercy - Web Site Builder Re: Error in form select option when using comma
Nov 21, 2009; 06:15
Steve Piercy - Web Site Builder
Re: Error in form select option when using comma
Nov 21
Jolle Carlestam Error in form select option when using comma
Nov 21, 2009; 08:28
Jolle Carlestam
Error in form select option when using comma
Nov 21
Jolle Carlestam Re: Error in form select option when using comma
Nov 21, 2009; 09:35
Jolle Carlestam
Re: Error in form select option when using comma
Nov 21
Johan Solve Re: Error in form select option when using comma
Nov 21, 2009; 11:13
Johan Solve
Re: Error in form select option when using comma
Nov 21
Steve Piercy - Web Site Builder Re: Error in form select option when using comma
Nov 21, 2009; 12:20
Steve Piercy - Web Site Builder
Re: Error in form select option when using comma
Nov 21
Steve Piercy - Web Site Builder Re: Error in form select option when using comma
Nov 21, 2009; 13:27
Steve Piercy - Web Site Builder
Re: Error in form select option when using comma
Nov 21
Johan Solve Re: Error in form select option when using comma
Nov 21, 2009; 20:27
Johan Solve
Re: Error in form select option when using comma
Nov 21
Johan Solve Re: Error in form select option when using comma
Nov 21, 2009; 22:05
Johan Solve
Re: Error in form select option when using comma
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!