Tag: Zoho Features
Salesforce | Show picklist field value of custom object on Visualforce page
We can show the picklist field value on Visualforce page in a selectlist ( dropdown) using the following code in the controller class: public class classname { public List<SelectOption> selectItemsList() { List<SelectOption> selectOptions = new List<SelectOption>(); Schema.DescribeFieldResult describeResult = CustomObject__c.PickListFieldName__c.getDescribe();
Linux | How to grep only uncommented contents from any configuration file
Problem : How to grep only uncommented contents from any configuration file which is big in size, has many comments and blank lines Solution: This can be achieved by following single command : # grep -v ‘^$’ /etc/httpd/conf/httpd.conf | grep
Netsuite | Invalid email address or account number error on NetSuite, but passed correct credentials
ERROR: Invalid email address or account number error on NetSuite, but passed correct credentials. Need to authenticate NetSuite sandbox account through java application and fetch all the contacts. Below is the link to the WSDL file used to log in:
MySQL | Upgrade MySQL 5.5 to 5.6 in Ubuntu 14.04
MySql 5.5 is the default version for Ubuntu 14.04 Steps to Upgrade the mysql-server If you have existing database in Mysql 5.5. It should be migrated automatically. Take the backup of existing databases: mysql> mysqldump –lock-all-tables -u root -p -all-databases
Zoho | Create Zoho Subscription using the PHP and subscription API
We can create new Zoho Subscriptions via code by using PHP curl and with the help of Subscription APIs. Below is the sample code which is required to create a subscription: $headerArray = array(“Content-Type: application/json;charset=UTF-8”, “X-com-zoho-subscriptions-organizationid: 00000000”, “Authorization: Zoho-authtoken ——–Auth
MySQL | Find if particular value is selected in multi pick list
In simple pick list we can select only one value but in multi pick list we can select one or more values. Scenario: We had to multi pick list data type field Fields that we wanted to select : 1.
PHP | Use Of strtr() function
In PHP if you want to replace multiple variables of the string at one go you could use strtr() instead of using str_replace(). Example : $vars = array( ‘##session_date##’=>$sessiondate, ‘##session_time##’=>$sessiontime, ‘##conferencelinenumber##’ =>$conferencelinenumber, ‘##pincode##’ =>$pincode, ‘##coachingcommnets##’=>$coachingcomments, ‘##actioncommitmnets##’=>$actioncommitmnets, ‘##reminders##’=> ‘ ‘, ‘##name##’
Moodle/ Totara | Page api to get activity details for particular activity
In one of our Totara theme projects, we wanted to hide default breadcrumbs and show our own breadcrumbs on activity page like columns 1, columns 2 or columns 3. To get the activity details for a particular activity, we can
Salesforce | Split function on some special characters like (.) does not work in apex
Description: Using a Split function over some special characters like ‘.’ is bit ambiguous, As Apex does not recognise these characters to be part of the splitting string. For Example: //this will fail reporting a size of 0 string s =