plainblack.com
Username Password
search
Bookmark and Share

    

Thingy "Select List" field: naming of "Possible values"

User VB
Date 8/13/2010 8:16 am
Views 309
Rating 0    Rate [
|
]
Previous · Next
User Message
VB

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

Looks from the code like Thingy wants a Perl-style hash. So something like this:

{
    "Item 1" => "Item 1",
}

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

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:

{
key1 => 'Item 3',
key2 => 'Item 1',
key3 => 'Item 4',
key4 => 'Item 2',
}

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 [
|
]
 
 
    



© 2012 Plain Black Corporation | All Rights Reserved