Difference between revisions of "Sf itemval"

From ARK
Jump to: navigation, search
 
(Example Configuration)
 
Line 24: Line 24:
 
         'op_label' => 'space',
 
         'op_label' => 'space',
 
         'op_input' => 'save',
 
         'op_input' => 'save',
         'op_modtype' => FALSE, //if each modtype uses same fields (see below)
+
         'op_modtype' => FALSE, //this is always false as is not dependant on modtype
 
         'conflict_res_sf' => 'conf_mcd_itemval_conflicts',
 
         'conflict_res_sf' => 'conf_mcd_itemval_conflicts',
 
         'fields' =>
 
         'fields' =>

Latest revision as of 09:18, 26 June 2013

Description

This subform is used for deleting records, it can be implemented either as a typical subform within a column, or it can be called into an overlay form.

This form relies on a further subform to provide conflict resolution feedback to users. This is governed by required setup (see below).

Additional Fields

  • conflict_res_sf - This is NOT optional. Specify the 'name' of the sf_conf array that will handle conflict resolution. This is currently only sf_dnarecord.php.


Example Configuration

An example of sf_delete_record configuration:

$conf_mcd_itemval =
    array(
        'view_state' => 'max',
        'edit_state' => 'view',
        'sf_nav_type' => 'full',
        'sf_title' => 'itemval', 
        'sf_html_id' => 'cxt_itemval', // Must be unique
        'script' => 'php/subforms/sf_itemval.php',
        'op_label' => 'space',
        'op_input' => 'save',
        'op_modtype' => FALSE, //this is always false as is not dependant on modtype
        'conflict_res_sf' => 'conf_mcd_itemval_conflicts',
        'fields' =>
            array(
                $conf_field_itemkey
        )
);