If I don't override the "display_columns" and
"list_columns" subs in my Model class the columns are sorted in alphabetical
order, also it displays more columns than I want. So I overrided the
"display_columns" and "list_columns" subs in my model class. Once I do it, it
displays the correct columns in the order I want, but it will only fill the name
column and all the other columns are blank. When I DONT override the subs it
list the data for all the columns just fine.
I'm overriding the subs like so: ackage Raymond::Lead; use base qw(Maypole::Model::CDBI);
sub display_columns {
(qw/firstname lastname street city state zip
dayphone eveningphone cellphone contacttime email stage hometype startdate
created/)
}
sub list_columns {
(qw/firstname lastname street city state zip
dayphone eveningphone cellphone contacttime email stage hometype startdate
created/)
}
1;
Any reason why it would not be
working??
Thanks in advance.
|
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Maypole-users mailing list Maypole-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/maypole-users