Now i have the field displayed properly on the search form... But its failing to retrieve any records...
Below are the contents of the files :
custom/modules/Forse_Contactssearch/metadata/SearchFields.php
Code:
'programname_c'=> array('query_type'=>'default','operator'=>'=','options'=>'program_list','db_field'=>array('prog1_c','prog2_c')), custom/modules/Forse_Contactssearch/metadata/searchdefs.php
Code:
'programname_c' =>
array (
'name' => 'programname_c',
'width' => '10%',
'label' => 'LBL_THIS_PROGRAM',
'default' => true,
'type' => 'enum',
'options' => 'program_list',
), custom/modules/Forse_Contactssearch/metadata/metafiles.php
Code:
$module_name = 'Forse_Contactssearch';
$metafiles[$module_name] = array(
'searchfields' => 'custom/modules/'. $module_name. '/metadata/SearchFields.php',
);
?>
custom/Extension/modules/Forse_Contactssearch/Ext/Vardefs/vardefs.ext
Code:
<?php
$dictionary["Forse_Contactssearch"]["fields"]["programname_c"] = array(
'name' => 'programname_c',
'vname' => 'LBL_THIS_PROGRAM',
'type' => 'enum',
'options' => 'program_list',
'source' => 'non-db',
'len' => '100',
);
?>
Bookmarks