Help for this page

Select Code to Download


  1. or download this
            $result = update_string_to_form($reportoutput, $thisformobjid,
    + 'REPORTBODY')    ;
            if (not defined $result) {
    ...
                    die 'error updating report body on form.';
                }
            }
    
  2. or download this
    sub update_string_to_form {
        my ($string, $formobjid, $column) = @_;
    ...
           return 0;
        }
    }
    
  3. or download this
     . . .
        $string =~ s/'/quot/g;
    ...
        my $sql = "update $formtablename set $column = '$string' where FOR
    +MOBJID = '$formobjid'";
    
     . . .
    
  4. or download this
     . . .
        my $dbh = DBI->connect($data_source, $username, $auth, \%attr);
        $string = $dbh->quote($string);
        my $sql = "update $formtablename set $column = '$string' where FOR
    +MOBJID = '$formobjid'";
     . . .