| Previous · Next | |
| User | Message |
|
VB
|
Date: 8/13/2010 8:16 am · Subject: Thingy "Select List" field: naming of "Possible values" · Rating: 0
I have a lot of modperl errors in the logs when I do as follows: 1) create a Thingy; 2) add a field to it of "Select List" type; 3) in the names of "Possible values" use something which has space separated numbers, e.g. "Item 1".
Then the modperl perl logs are flooded with errors like Number found where operator expected at ... (Do you need to predeclear Item?)... or (Missing operator before Item?)
The thingy displays the select lists and fields just fine, only the modperl error log grows qute fast. Do I miss something, for example, such names are not acceptable etc? Am I safe using such names or should I avoid using them (which would not be nice)? Or is this a bug?
I would appreciate some help understanding the problem. Thanks!
P.S. Forgot to mention that I use WebGUI 7.9.12 (I've seen the same earlier in the 7.8.x branch too).
--- (Edited on 8/13/2010 15:22 [GMT+0200] by VB) --- |
| Back to Top |
Rate [ | ]
|
|
preaction
|
Date: 8/13/2010 11:14 am · Subject: Re: Thingy "Select List" field: naming of "Possible values" · Rating: 0
Looks from the code like Thingy wants a Perl-style hash. So something like this: { Try that and let me know how it works? --- (Edited on 8/13/2010 11:14 am [GMT-0500] by preaction) --- |
| Back to Top |
Rate [ | ]
|
|
VB
|
Date: 8/16/2010 5:42 am · Subject: Re: Thingy "Select List" field: naming of "Possible values" · Rating: 0
This works without the errors in the logs, but if multiple items are put in the list, the list sorting order looks weird, e.g. "Item 2 / Item 4/ Item 1 / Item3" instead of "Item 1 / Item 2/ Item 3 / Item 4". To get the "normal" sorting order I need to put this: { However this becomes a mess when I want to have, e.g. "Item 1,2,3.." and "Data 1,2,3.." on the same select list. What can I do to get the alphabeticall sorting automatically?
--- (Edited on 8/16/2010 12:42 [GMT+0200] by VB) --- |
| Back to Top |
Rate [ | ]
|