Dear Dmitry

Thank You for your tip!
That was the solution! :)

In my case, the 'datepicker' is a form field in form class (a jquery datepicker widget in html), but in the table there is no such column. The mm_data is the serialized column, which holds the json serialized hash.
The hash has a 'date' value which holds the date value.
The next code snippet appended to form class works perfectly - thanks to Dmitry.

after 'setup_form' => sub {
        my $self = shift;
        my $item = $self->item;

        $self->field('datepicker')->value(
                $item->mm_data->{'date'}
        );
};


Thank You!


On 2011.10.17 14:14, Dmitry L. wrote:
Hello!

May be http://www.catalystframework.org/calendar/2009/3 is what you need.
Look at the end of paragraph "The Editing Form"

On 17 of October 2011 12:19:20 Het�nyi Csaba wrote:


_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to