The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>ars_CreateEntry</title>


</head>

<body style="background-color: rgb(255, 255, 255);">

<h2><code>ars_CreateEntry(ctrl, schema, field_id1, value1,
...)</code></h2>

This function creates a new entry (row) in the schema. This is the same
as ``submitting a new ticket''. Pairs of field ids and values should
follow the schema name. Data types are automatically converted.
<dl>

  <dt><b>On success</b></dt>

  <dd> Returns the new entry id. </dd>

  <dt><b>On failure</b></dt>

  <dd> Returns <code>undef</code>. </dd>

</dl>

<p>Example 1: </p>

<pre> ($entry_id = ars_CreateEntry($c, "Schema01", $id, $val)) || <br> die $ars_errstr;<br></pre>

<p>Example 2:</p>

<pre>&nbsp; my %fieldname_to_id = ars_GetFieldTable($c, "User") || <br> die $ars_errstr;<br> my $entry_id = ars_CreateEntry($c, "User",<br> $fieldname_to_id{"Login Name"}, "johnd",<br> $fieldname_to_id{"Full Name"}, "John Doe",<br> $fieldname_to_id{"Password"}, "xyz",<br> ) || die $ars_errstr;</pre>

<p>
<a href="toc.html"><img alt="&lt;--" src="arrow.gif" align="middle"> Back to Table of Contents</a></p>


<address>
Last changes to this page 13th August 2007 by Michiel Beijen<br>

&copy; J.C.Murphy, J.W.Murphy 1997 arsperl@arsperl.org
</address>

</body>
</html>