我在custom / Extension / modules / Calls / Ext / Vardefs中创建了一个自定义字段sugarfield_ast_rec_link_c.php,内容如下:
<?php
$dictionary['Calls']['fields']['ast_rec_link_c'] = array
('name' => 'ast_rec_link_c',
'vname' => 'LBL_AST_REC_LINK_C',
'type' => 'varchar',
'len' => '255',
'source' => 'non-db',
'function' => array('name'=>'getRecordLink',
'returns'=>'html',
'include'=>'custom/modules/Calls/CustomLogic.php')
);
?>
Run Code Online (Sandbox Code Playgroud)
`还在custom / Extension / modules / Calls / Ext / Language中添加语言文件。快速修复后,我的自定义字段不会出现在Studio->通话->字段中。所以我不能把它放在视图上。有人可以帮忙吗?