Category Archives: Fields

Set field length at run time in Sage CRM

There are different types of fields in Sage CRM. Well obviously we can change/set the field length as per our convenient and depending upon the data that would be user filling while entering the data. Suppose we need to change the field length then you need to do refer the below link. https://www.greytrix.com/blogs/sagecrm/2008/12/29/changing-field-length-of-a-text-field/ Alternate way… Read More »

Remove unwanted Phone-Email fields Part 2

In my previous blog I had explained how this can be done in standard way. https://www.greytrix.com/blogs/sagecrm/2012/10/20/remove-unwanted-phone-email-fields/ Bu what if you want to just hide the unwanted fields in the Phone/Email tab and not remove them?  Same can be done by implementing JavaScript as explained below. Here are the installation instructions. 1. Create a ClientFuncs.js file… Read More »

Combining two fields in view mode

In Sage CRM, I came across one interesting scenario where I want to display two fields combined. Consider the scenario, if I wanted to display an age field like 24 years. In this case I created two fields one text field which contains age value and another one is selection which contains age description like… Read More »

Executing Stored Procedures using COM API methods

This is developer specific technical tip which can be used in CRM customizations. In customizations we usually execute sql statements using CreateQueryObj function. For Eg. SqlQuery = “Select comp_name from company (nolock) where comp_compname=”+sCompId; SqlObj = eWare.CreateQueryObj(SqlQuery); SqlObj.SelectSQL(); Here to retrieve the value of comp_name we can use SqlObj(“comp_name”). The above example is for the… Read More »

Error while writing scripts on OnChange script section

Recently I came across a problem with OnChangeScript in sage CRM version 7.1. Somehow OnChangeScript for search select advanced fields doesn’t like the script to be on multiple lines! i.e. Below written script doesn’t work: id = document.EntryForm.comp_type.value; alert (‘comp_type:’+id); and Below written script works: id = document.EntryForm.proj_companyid.value;alert (companyid :’+id); First script gives the following… Read More »

Expose hidden fields in Sage CRM entities

Sage CRM has a very good reporting structure inbuilt. You can create views; make them usable as Report view by checking the corresponding checkbox. Further you can attach this view to report and build search criterion/contents based on the same. Sometimes even though field is visible in your view you cannot find it to add… Read More »