
// Examples:
//
// Turn on Debug logging for all sessions in the Web view (use &d=1 in the URL for debug logging in the current instance only)
//g_MqRef.Deb.SetEnableLog(true);
//
// Turn off auto-filtering of companies-contacts-vars
objCustomCode.SetAddWorkflowRules(false);

// Use field 452 instead of the regular substate for the timestamp.
//objCustomCode.SetTSSubstateFldID(452);

// Activate the Chg Mgr extension for voting 
//var oVoteExt=new MqVoteExtension("window.Record.document", objRequest, this);
//oVoteExt.ApprovalCommentsCtlName="mem_446_mem_446_Approval_Comments";
//objCustomCode.GetWVExtensions().AddExtension(oVoteExt);

//Activate the VIP adapter to highlight the background for VIP Contacts
var objVIPAdptr=new MqVIPAdapterExt(m_objViewFields, "-1", "window.Record.document");
objCustomCode.GetWVExtensions().AddExtension(objVIPAdptr);

// Enable the check-in/out extension using the fields Asset Status and Allocate to Person ("865","11")
var m_objCheckInOutAdptr=new MqCheckInOutExt("<F.ID:Status>","<F.ID:Allocated to Person (Overview Tab)>","<F.ID:Requested Until Date (Overview Tab)>", 
					"<F.ID:Location (Overview Tab)>", "<F.ID:Send For Repair>", "<F.ID:Return to Storage Location>", 
					"<F.ID:Check In>", "<F.ID:Check In Asset>", "<F.ID:Check Out Asset>", "<F.ID:To Be Deleted>", this);

objCustomCode.GetWVExtensions().AddExtension(m_objCheckInOutAdptr);