[html-formfu] MultiForm and fill_formfu_values
Josef Chladek
josef.chladek at gmail.com
Wed Apr 8 19:34:44 GMT 2009
hello,
I've a problem with MultiForms, the "first" form shows the data from
db, the "second" form won't - am I doing something wrong?
the controller code:
sub show : Local : MultiFormConfig('auth/show.yml') {
my ( $self, $c ) = @_;
$c->detach('login') if (!$c->user_exists);
if ( $c->stash->{multiform}->complete ) {
...
}
my $row = $c->model('Frontwave::UserDepot')->find($c->user->obj->id);
$row->fill_formfu_values( $c->stash->{multiform}->current_form );
}
form config is trivial, does not depend on any fields, if I replace
fields shown in "1" and place them in "2" no values are shown...
any hints?
regards
josef
ps: btw, carl, thanks for the last answer regarding "multiple
model_stash?", putting resultset and model in model_config did the
trick!
More information about the HTML-FormFu
mailing list