Int Page Customisation

From Sage CRM Knowledge Base

To customise the personInt screen we can use the API in titan

In our example here we want to insert a CRM screen. To do this we create a div to hold the HTML

add the script to the top of the page

 <script type="text/javascript" src="../sagecrm/component/crmtogether.js" ></script>

then add the script code to get the screen from CRM

 <script>
 window.attachEvent("onload", CRMTogetherLoader);
 
 function CRMTogetherLoader()
 {
     var res=getEntryGroup("company,vcompanype", "CompanyOfficeInt", "comp_companyid="+document.getElementById("_HIDDENpers_companyid").value, "Company");
     document.getElementById("companyinfo").innerHTML=res;
 }
 </script> 

This example inserts a company summary screen into the personint.aspx page within Accelerator.