Help for this page

Select Code to Download


  1. or download this
            my $textanswer = TextAnswer->create(
            response_id => $response_id,
    ...
    print qq(CALLING UPDATE<br />);
            $textanswer->update;
    print qq(CALLED UPDATE<br />);
    
  2. or download this
    
    __PACKAGE__->add_trigger( after_create => sub {
    ...
      my ($self) = @_;
      print "Finished updating album '$self->{answer} <br />";
    });
    
  3. or download this
    ID = '', Answer = 'John Doe
    ID = '2', Answer = 'John Doe
    ...
    TextAnswer->answer =>John Doe
    CALLING UPDATE
    CALLED UPDATE