Hello,
I pretty new to ExtJS and the Catalyst controller, so forgive me if I
have missed the blindingly obvious.
Basically I have a grid with gets filled dynamically from a Json store
thanks to CatalystX::ExtJS and HTML::FormFu::ExtJS.
It seems to work well, except for when I try to use the ExtJS handler
'metachange' to dynamically set the column headers. It would seem this
is due the fact that the 'header' key is missing from the metaData
supplied via the Json store.
I can fix this with the following patch to _Field.pm
--- HTML-FormFu-ExtJS-0.077/lib/HTML/FormFu/ExtJS/Element/_Field.pm
2010-11-17 12:07:38.742848507 +0000
+++
perl5/perlbrew/perls/current/lib/site_perl/5.12.1/HTML/FormFu/ExtJS/Element/_Field.pm
2010-11-17 12:09:50.288588892 +0000
@@ -51,6 +51,7 @@
return {
name => _camel_case($name),
mapping => $self->nested_name,
+ header => $self->label,
type => "string",
%args
};
I know this is a hack, but wanted to post here to see if there is a
better way ... what might the knock on effects might be? .. anyone else
had this problem?.. etc. etc.
Many thanks
-Ben
_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu