ars_CreateSchema(ctrl, schemaHash)

This function creates a new schema. You must first populate the schemaHash before calling this routine.

schemaHash is an Schema Attributes hash.

On success
Returns 1
On failure
Returns 0

Example:

This example copies an existing schema to a new schema. I.e. it simply re-saves the active link under a new name.
      ($s = ars_GetSchema($c, "F-foobar")) ||
	    die $ars_errstr;
      $s->{name} = "Copy of ".$s->{name};
      ars_CreateSchema( $c, $s ) || die $ars_errstr;
      
Notes: Hash keys helpText, owner and changeDiary are optional when calling this routine.

This function was introduced in version 1.90 of ARSperl

<-- Back to Table of Contents