How to send SMS through code

Author - Webner
|
0 Comments
|

There are many SMS sending gateways that provide REST services to send SMS. You need to register and purchase credits first before SMS can be sent. One such gateway is ClickaTell:

Click to view

Below is the sample REST call of Clickatell service provider:
http://api.clickatell.com Read more…

Salesforce | Show Loading on AJAX request and disappear after completing its progress.

Author - Kiran Preet
|
0 Comments
|

Solution : In many scenarios, apex button click sends an AJAX request (for e.g. to render a part of Visualforce page after completing its progress). Sometimes the AJAX request takes so much time.

To cope with this issue we have to show loading or waiting message to the user as Read more…

Salesforce | Send email using apex code along with attachment and manage email history

Author - Shalini
|
0 Comments
|

1. Send simple email using apex :

Messaging.SingleEmailMessage emailTobeSent = new Messaging.SingleEmailMessage();
List <String> listEmailMembers = new List<String>();
listEmailMembers.add(’email@domain.com’);
emailTobeSent.setToAddresses(listEmailMembers);
emailTobeSent.setSubject(‘Hi, Just Testing’);
emailTobeSent.setHtmlBody(‘msg : ‘ + msg);
Messaging.SendEmailResult [] r1 = Messaging.sendEmail(new Messaging.SingleEmailMessage[] {emailTobeSent}
2. Use Read more…

How to add new custom HTML pages in Totara/Moodle

Author - Neelam

Totara / moodle does not have the default feature to add custom HTML pages and display on the site. But we can achieve this by installing a plugin:

“General plugins (Local): Static Pages”

Steps to install and use this plugin in Totara:

1. Install the plugin like any other Read more…

Salesforce | Set CreatedDate for s-object records in test class

Author - Webner
|
0 Comments
|

In some cases, we need to set CreatedDate for records.

setCreatedDate() method can be used to set CreatedDate for records.

For Example : Set createddate for a contact in test class

Contact con = new Contact()
con.FirstName=’Firstname’;
con.LastName=’LastName’;
insert con;
Test.setCreatedDate(con.Id, datetime.newInstance(2014, 9 Read more…

Using UNION syntax in CakePHP 2.4.6

Author - Manju Kashyap

Following UNION syntax works properly in CakePHP 2.4.6 version but it doesn’t work in CakePHP 2.5.2 version:
$unionQuery = $dbo->buildStatement
(
array(
‘fields’ => array( required fields),
‘table’ => $dbo->fullTableName(database_table_name),
‘alias’ => ‘customObject1’,
‘limit’ => null,
‘offset’ => null,
‘joins Read more…

Great British Discounts

Author - Webner

Webner has been involved in the development of another highly successful platform – Great British Discounts , Click to view. Owned and promoted by L-EV8 Marketing, Great British Discounts is the go to site for those who want to avail the best deals in life. Great British Discounts is the choice Read more…

Salesforce | How to call apex method using Javascript

Author - Kiran Preet

We can call apex method from javascript using JavaScript remoting.

Javascript remoting has three main parts :

1. Invoke remote method written in javascript method on Visualforce page.

2. Remote apex method contains an annotation @RemoteAction.

3. The response handler callback function written in javascript method on visualforce page.

Example of Read more…

jQuery line control HTML editor | Post data to server

Author - Parminder Kaur

In jQuery line-control editor, values written inside writing space (div) do not get posted to the server by default. This is because although we create textarea while coding, at run time a DIV is created in which user writes. Editor.editor is the Id of div at runtime. On Read more…

Salesforce | The inner and outer selects should not be on the same object type on recordtype object

Author - Webner
|
0 Comments
|

Problem: SOQL does not support using the same object name in the Subquery which is in use in outer Select.

For Example: We wanted to get the name of the object values (Record type object) using the SOQL having two conditions using different object names in the where condition as Read more…

Heroku | An introduction to Procfile and its use

Author - Webner

Introduction: We can make our Heroku app run different type of processes by creating a Procfile in the app.
There is a specific structure and syntax that we need to follow while creating a Procfile. Following are the main points to be considered while creating a Procfile:

The Procfile must Read more…

LESS Introduction | Dynamic CSS styling

Author - Webner

LESS is an open source CSS pre-processor designed by Alexis Sellier in 2009. It is not exactly CSS but acts like one with the help of Javascript libraries that interpret the stylesheet and make it readable for browsers. The very first benefit of using LESS is that LESS is Read more…

Salesforce | Email workflow created on custom object throwing error while fetching the Related Contact Id

Author - Webner
|
0 Comments
|

In one of our Salesforce projects we are working on, we had a custom object with an email trigger that was supposed to send email to the Related Contact. When we clicked the email button to trigger the email sending process, the Related Contact Id was not passed to the Read more…

Salesforce | Different ways to use datepicker on visualforce page

Author - Shalini

1. Apex:inputfield:

We can simply use apex:inputfield and bind the field with date type field and it will automatically use the Salesforce Calander:
<apex:page standardcontroller=Contact>
<apex:form>
<apex:inputfield value=”{!Contact.Birthdate}”>
</apex:form>
</apex:page&gt Read more…

Salesforce | Show Email sent from Salesforce in activity history

Author - Webner
|
0 Comments
|

Problem : How to show Email sent from Salesforce in activity history of an object

Solution : Here are the steps :

1. Set WhatId

2. Make SaveAsActivity true

Code Sample:

Messaging.SingleEmailMessage emailTobeSent = new Messaging.SingleEmailMessage();
List ToAddress = new List();
ToAddress.add(‘Example@gmail.com’);
emailTobeSent.setToAddresses(ToAddress);
emailTobeSent.setSubject(‘Subject);
emailTobeSent Read more…

Cookie messages on websites and cookie law

Author - Richa
|
0 Comments
|

Why some sites show cookies message (like this site uses cookies, do you accept?) – is it required, if yes then which body recommends it?

Many websites use cookie messages to store information which is required by them for fulfilling various purposes which includes storing user’s login information, saving passwords Read more…

How to create WSDL web service client using Maven

Author - Rita

Maven provides apache cxf plugin to generate web service client.
We have used below code in our pom.xml file to generate java artifact classes (web service client).

There are two ways to generate client code:

Using complete WSDL URL

Using WSDL artifact

1. Using complete WSDL URL Read more…

MySQL | Insert multiple records and update if record(s) already exist in a single query

Author - Ishpreet Kaur
|
0 Comments
|

In MySQL, we generally perform insert, update, select and delete operations on records of table. Multiple Insert operation can also be easily performed on table.

Take an example of Employees table with fields:

Multiple records can be inserted in Employees table in a single query using following MySQL query :

INSERT Read more…

Data Cleansing

Author - Webner
|
0 Comments
|

Data Hygiene or Data Cleansing or Data Cleaning – call it by the name you prefer – all point to the process of making the data better than it is before the process is applied. “Better data” means removing what is not required, fixing what is not right, restoring data correctness, and Read more…

Cordova/Phonegap | How to fix footer at bottom when virtual keyboard is opened

Author - Webner
|
0 Comments
|

Problem :

Footer is not visible or fixed at bottom, when virtual keyboard is opened in Phonegap/Cordova Application.

Solution :

Consider following div create for footer :

<div data-role=”footer” data-position=”fixed” class=’custom_footer’ data-theme=’b’ data-tap-toggle=”false”></div>

To keep Footer fixed Read more…

‹ Prev page1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 Next page ›