Screen Customisation

From Sage CRM Knowledge Base
Revision as of 15:51, 26 April 2012 by Crmtogetherkb (talk | contribs)

To add in script code from a page set the link as follows

 <script src="../custompages/pathtofile/commlist.js" type="text/javascript" language="JavaScript"></script>

To enumerate block entries (Ref: https://community.sagecrm.com/partner_community/b/hints_tips_and_tricks/archive/2007/11/28/setting-screen-properties-within-a-multiblock-asp-page-using-the-com-api.aspx)

 //Set EntryBlock properties for an EntryGroup Block using an Enumerator
 var myE = new Enumerator(myBlock);
 while (!myE.atEnd())
 {
    myEntryBlock = myE.item();
    myEntryBlock.ReadOnly = false;
    myEntryBlock.Required = false;
    myE.moveNext();
 }