FAQ
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

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 3 | next ›
Discussion Overview
grouphtml-formfu @
categoriesperl, catalyst
postedNov 17, '10 at 12:27p
activeNov 17, '10 at 4:47p
posts3
users2
websitemetacpan.org...

2 users in discussion

Benjamin Martin: 2 posts Moritz Onken: 1 post

People

Translate

site design / logo © 2022 Grokbase