我正在使用SugarCRM 6.5社区版,我需要使用合并相关模块创建一个编辑视图。看这里的情景:
因此这两个模块具有一对一的关系。
我想在会议的编辑视图中呈现驱动程序指南服务的自定义字段。
这是现有的关系。现在我想在会议模块中创建无法正常工作的driver_guide_service_cstm'字典。
$dictionary["Meeting"]["fields"]["meetings_dri_driver_guide_service_1"] = array (
'name' => 'meetings_dri_driver_guide_service_1',
'type' => 'link',
'relationship' => 'meetings_dri_driver_guide_service_1',
'source' => 'non-db',
'module' => 'dri_driver_guide_service',
'bean_name' => 'dri_driver_guide_service',
'vname' => 'LBL_MEETINGS_DRI_DRIVER_GUIDE_SERVICE_1_FROM_DRI_DRIVER_GUIDE_SERVICE_TITLE',
'id_name' => 'meetings_dri_driver_guide_service_1dri_driver_guide_service_idb',
);
$dictionary["Meeting"]["fields"]["meetings_dri_driver_guide_service_1_name"] = array (
'name' => 'meetings_dri_driver_guide_service_1_name',
'type' => 'relate',
'source' => 'non-db',
'vname' => 'LBL_MEETINGS_DRI_DRIVER_GUIDE_SERVICE_1_FROM_DRI_DRIVER_GUIDE_SERVICE_TITLE',
'save' => true,
'id_name' => 'meetings_dri_driver_guide_service_1dri_driver_guide_service_idb',
'link' => 'meetings_dri_driver_guide_service_1',
'table' => 'dri_driver_guide_service',
'module' => 'dri_driver_guide_service',
'rname' => 'name',
);
$dictionary["Meeting"]["fields"]["meetings_dri_driver_guide_service_1dri_driver_guide_service_idb"] = array (
'name' => 'meetings_dri_driver_guide_service_1dri_driver_guide_service_idb',
'type' => 'link',
'relationship' => 'meetings_dri_driver_guide_service_1',
'source' => 'non-db',
'reportable' => false,
'side' => 'left',
'vname' => 'LBL_MEETINGS_DRI_DRIVER_GUIDE_SERVICE_1_FROM_DRI_DRIVER_GUIDE_SERVICE_TITLE',
);
以下内容不适用于自定义列。
$dictionary["Meeting"]["fields"]["meetings_dri_driver_guide_service_1_dri_start_city_c"] = array (
'name' => 'meetings_dri_driver_guide_service_1_dri_start_city_c',
'type' => 'relate',
'source' => 'non-db',
'vname' => 'LBL_MEETINGS_DRI_DRIVER_GUIDE_SERVICE_1_FROM_DRI_DRIVER_GUIDE_SERVICE_TITLE',
'save' => true,
'id_name' => 'meetings_dri_driver_guide_service_1dri_driver_guide_service_idb',
'link' => 'meetings_dri_driver_guide_service_1',
'table' => 'dri_driver_guide_service',
'module' => 'dri_driver_guide_service',
'rname' => 'dri_start_city_c',
);
这" dri_start_city_c"是" dri_driver_guide_service"模块的自定义列。这个我想在会议模块的编辑视图中呈现。除了自定义列之外,所有其他列都正常工作,所以任何人都可以帮我解决这个问题。