2
您好我正在測試,並試圖在關係表,但沒有成功插入一條記錄插入新記錄。我正在嘗試使用邏輯掛鉤在關係表中輸入新行,當我在Save in Contacts模塊中進行保存時,而不是我得到空白的index.php頁面。 問題在哪裏? 謝謝SugarCRM公司 - 中關係表
<?php
include_once('modules/Contacts/ContactOpportunityRelationship.php');
class User_hook {
function insert()
{
$instance=new ContactOpportunityRelationship();
$instance->$contact_id='96163e07-f55a-eb87-251f-513482e4a1da';
$instance->$opportunity_id='c99178c5-fed5-7092-4a79-4e1da40a1eea';
$instance->save();
}
}
?>
tahnk你很多!你解決了它! – Dejan 2013-03-06 18:04:32
你可以請幫我這個嗎? http://stackoverflow.com/questions/15254673/sugarcrm-how-to-get-popup-when-click-on-save-button我想點擊保存時獲得一些彈出(先用一些消息後,我想添加確定和取消選項)。預先感謝您 – Dejan 2013-03-06 18:05:45
如果我不知道oppID的價值怎麼辦?我如何獲得? – user3286692 2014-06-21 04:30:40