Category: Zoho
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 =
CakePHP | How to skip CakePHP authentication for some controller methods
Description: By default, CakePHP authentication is applied to all application controllers. So it does not allow users to perform any of the action without login. Solution: Each controller has a beforeFilter method which runs when some action is called from controller.
Java | Delete empty string from list or array
public class deleteEmptyStringQuick { public static void main(String[] args) { String[] emptyStringArray={“test”,”test1″,””,”test3″,””,”test4″}; ArrayList arrayListOfEmptyString=(ArrayList) Arrays.asList(emptyStringArray); //normally we will do this ArrayList filteredList = new ArrayList(); for(String string: arrayListOfEmptyString) { if(!string.isEmpty()) { filteredList.add(string); } } //You can achieve this with single
How to handle grub rescue problem in dual boot systems
Description: In a dual boot system (Ubuntu/windows), if you delete the boot partition of ubuntu or delete the Linux operating system by formatting the drive then you will face the grub rescue problem. In this problem we have two cases:
PHP | Header function not working
Code : Function getredirect($subcontactid) { echo”contactid”.$subcontactid; header(“location:https://subscriptions.zoho.com/app#/customers/$subcontactid”); exit; } The header function in the above code does not work. But when we remove the echo from the code, it works properly. Code after removing echo : Function getredirect($subcontactid) { header(“location:https://subscriptions.zoho.com/app#/customers/$subcontactid”);
iOS | Inconsistent Status Bar in iOS Phonegap Application
Problem : Header goes under the status bar and menu button is not clickable in Phonegap/Cordova Application. Solution : In the iOS version 7.0, App View covers full screen including the status bar, and the view starts from top of