Difference between revisions of "Sf assemblage"

From ARK
Jump to: navigation, search
 
Line 10: Line 10:
  
 
===Set-Up===
 
===Set-Up===
 +
 +
sf_assemblage needs a number of different 'op' variables set in the sf_conf and also it will need some custom validation set up (to allow for the chains).
 +
 +
  $conf_mcd_coords =
 +
    array(
 +
        'view_state' => 'max',
 +
        'edit_state' => 'view',
 +
        'sf_nav_type' => 'full',
 +
        'sf_title' => 'coordinates', //appears in the titlebar of the subform (mk nname)
 +
        'sf_html_id' => 'fst_cd_coordinates', //the form id tag (must be unique)
 +
        'script' => 'php/subforms/sf_assemblage.php',
 +
        'op_assemblage_type' => 'projection',
 +
        'op_label' => 'save',
 +
        'op_input' => 'save',
 +
        'fields' => array(
 +
            $conf_field_easting,
 +
            $conf_field_northing
 +
        )
 +
  );

Revision as of 09:39, 24 August 2007

These are some notes describing the sf_assemblage.

Description

sf_assemblage can be used for displaying and editing attributes that have numbers chained to them. As an example, this could be used for recording the numbers of a certain type of seed in a sample, or for attaching total numbers of findtypes.

Usage

This form should normally be used in conjunction with sf_attr_bytype. The attribute gets added to the item and then sf_assemblage will offer you the chance to add one or more numbers to that attribute.

Set-Up

sf_assemblage needs a number of different 'op' variables set in the sf_conf and also it will need some custom validation set up (to allow for the chains).

 $conf_mcd_coords =
   array(
       'view_state' => 'max',
       'edit_state' => 'view',
       'sf_nav_type' => 'full',
       'sf_title' => 'coordinates', //appears in the titlebar of the subform (mk nname)
       'sf_html_id' => 'fst_cd_coordinates', //the form id tag (must be unique)
       'script' => 'php/subforms/sf_assemblage.php',
       'op_assemblage_type' => 'projection',
       'op_label' => 'save',
       'op_input' => 'save',
       'fields' => array(
           $conf_field_easting,
           $conf_field_northing
       )
 );