Hi Aaron,

I don't specifically refer to the Place column in the template,
just use the generic factory templates. Because I don't want to
display all columns in the table I have the following code:

package Verification::MyData;
sub display_columns
{
   qw(
   Name
   Place
   )
}
sub column_names
{
   Name => 'Name',
   Place => 'Place',
}

The odd thing is if I remove these lines to display all columns, the sorting
works correctly. The beer example uses all lower case column names,
could not find any examples of people using column names starting with
upper case.

Kim

Aaron Trevena wrote:

On 12/04/06, Kim Ryan <[EMAIL PROTECTED]> wrote:
I normally use all lower case letters for my column names and
both ascending and descending column sorts work fine in lists.

I noticed problems when the column name starts with an upper case
letter. For example, I have a column called Place,

mytable/list/?order=Place&page=1 , does not return correct order
mytable/list/?order=Place&page=1&o2=desc ,  does not return correct order

But if  I change Place to place in the URL everything works!
mytable/list/?order=place&page=1&o2=desc   this works, as does ascending
sort

Is there some type of over riding default behaviour here?

Place would be the column label and place would be the column name,
there may be some case sensivity in the sorting code, but that seems
unusual, I don't think I've seen this problem before.

How is the 'Place' value generated in your code/template? Any column
names in urls should match the name/case used internally.

A.





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Maypole-users mailing list
Maypole-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maypole-users

Reply via email to