Hi all,
I just want to customize the industry entry layout in 5.0, i develp this in 4.5, but upgrade to 5.0, it does not work.
I created 2 tables in db, one is industry and other is sub_industry, so when creating a new account, in industry filed, i want to show the industry and sub_industry with | as seprator. eg. Hotel | 4 stars.
in 4.5 there is a editview.php, and have some if .. else. but in 5.0, i donot know where i can put these in.
1. this is some code in editview.php to show industry, but for 5.0, donot know where can put in.
require_once('include/QuickSearchDefaults.php');
$qsd = new QuickSearchDefaults();
$sqs_objects = array('parent_name' => $qsd->getQSParent(),
'assigned_user_name' => $qsd->getQSUser(),
'indus_display' => $qsd->getQSindustry(),
'billing_street_name_c' => $qsd->getQSstreet(),
);
$quicksearch_js = $qsd->getQSScripts();
$quicksearch_js .= '<script type="text/javascript" language="javascript">sqs_objects = ' . $json->encode($sqs_objects) . '</script>';
2. this is the code for Add Custom Fields
//Add Custom Fields
require_once('modules/DynamicFields/templates/Files/EditView.php');
$display='';
if ($focus->sub_industry_c == '') $display=$focus->industry;
else $display=$focus->industry.' | '.$focus->sub_industry_c;
$xtpl->assign("INDUSTRY_DISPLAY", $display );
3. in custom\modules\Accounts\metadata\editviewdefs.php, what can i add in codecustome,
array (
0 =>
array (
'name' => 'industry',
'label' => 'LBL_INDUSTRY',
'codecustom' => ''
),
thks for any assistance.!


LinkBack URL
About LinkBacks




Reply With Quote
Bookmarks