- Mon Sep 22, 2014 10:07 am
#780347
1.define field 'NEW_ID' in table 'app_cache_view'
2.defien a new field in a php file same this
customeField.php
$N2_CUSTOM_FIELDS_ARRAY = array();
$N2_CUSTOM_FIELDS_ARRAY[] = array(
'name' => 'NEW_ID',
'label' => 'درود بر اسلام',
'align' => 'right',
'width' => 70,
'position' => 3
);
save this file for example to this address
opt\processmaker\workflow\engine\methods\cases\custom_fields\custom_fields.php
3.go to this address
\opt\processmaker\workflow\engine\methods\cases\case
sListExtJs.php
4.change function belove and add new code
getToDo , getDraft ,getParticipated,getSearch, getUnassigned, getPaused, getToRevise, getToReassign,getGeneral, getReassignList
global $N2_CUSTOM_FIELDS_ARRAY;
require_once('../engine/methods/cases/custom_fields/custom_fields.php');
foreach($N2_CUSTOM_FIELDS_ARRAY AS $N2_CUSTOM_FIELDS_ARRAY_ROW){
$N2_CUSTOM_FIELDS_ARRAY_ROW_ARRAY = array();
$N2_CUSTOM_FIELDS_ARRAY_ROW_ARRAY['header'] = $N2_CUSTOM_FIELDS_ARRAY_ROW['label'];
$N2_CUSTOM_FIELDS_ARRAY_ROW_ARRAY['dataIndex'] = $N2_CUSTOM_FIELDS_ARRAY_ROW['name'];
$N2_CUSTOM_FIELDS_ARRAY_ROW_ARRAY['width'] = $N2_CUSTOM_FIELDS_ARRAY_ROW['width'];
$N2_CUSTOM_FIELDS_ARRAY_ROW_ARRAY['align'] = $N2_CUSTOM_FIELDS_ARRAY_ROW['align'];
array_splice($caseColumns, $N2_CUSTOM_FIELDS_ARRAY_ROW['position'] - 1, 0, array($N2_CUSTOM_FIELDS_ARRAY_ROW_ARRAY));
$caseReaderFields[] = array('name' => $N2_CUSTOM_FIELDS_ARRAY_ROW['name']);
}
return array ( 'caseColumns' => $caseColumns, 'caseReaderFields' => $caseReaderFields, 'rowsperpage' => 20, 'dateformat' => 'Y-m-d' );
for add field to search should do ...