COM API: Difference between revisions

From Sage CRM Knowledge Base
Created page with " 1. CRM.Init Implemented in .js file on the CustomPages Folder. Usually included in ASP files as an INCLUDE statement at the top of the file. eMsg = CRM.Init( Request.Qu..."
 
No edit summary
 
Line 6: Line 6:
Usually included in ASP files as an INCLUDE statement at the top of the file.
Usually included in ASP files as an INCLUDE statement at the top of the file.


eMsg = CRM.Init(
  eMsg = CRM.Init(
Request.Querystring,
    Request.Querystring,
Request.Form,
    Request.Form,
Request.ServerVariables("HTTPS"),
    Request.ServerVariables("HTTPS"),
Request.ServerVariables("SERVER_NAME"),
    Request.ServerVariables("SERVER_NAME"),
false,
    false,
Request.ServerVariables("HTTP_USER_AGENT"),
    Request.ServerVariables("HTTP_USER_AGENT"),
Accept);
    Accept);


The 5th parameter is a history setting.
The 5th parameter is a history setting.

Latest revision as of 12:06, 7 February 2013


1. CRM.Init

Implemented in .js file on the CustomPages Folder. Usually included in ASP files as an INCLUDE statement at the top of the file.

 eMsg = CRM.Init(
   Request.Querystring,
   Request.Form,
   Request.ServerVariables("HTTPS"),
   Request.ServerVariables("SERVER_NAME"),
   false,
   Request.ServerVariables("HTTP_USER_AGENT"),
   Accept);

The 5th parameter is a history setting. If you have pages that you do not wish to work via the back button you change this to "true".

Recommended that you create a nohistory.js file that is a copy of the current js with this set.