Category: Mobile
Salesforce | Attach PDF from Visualforce page as an email attachment
Problem: How to attach PDF from a Visualforce page in email using apex class or trigger? Description: We had a Visualforce page name ‘templateCOI’ which was rendered as a PDF. We wanted to use this page as an attachment in the automated
How to insert file names in a text file from command prompt
For Windows user: 1. Open folder that contains files in console 2. type dir /b > D:test.txt (it will copy the result in test.txt file) For Linux user: 1. Open folder that contains files in console 2. type ls > /home/user/test.txt (it will copy
Moodle Themes | Totara Themes | Hierarchical Structure
In one of our Totara theme projects, we wanted to display the categories->subcategories->courses structure dynamically up to any level. In Totara a category can have subcategories, each subcategory can have its own set of subcategories and so on up to
How to install Cordova/Phonegap
Steps to install cordova/phonegap To install cordova from command line, follow these steps Download and install Node.js Command : $ sudo apt-get install node.js Node.js is a runtime system for creating server-side applications. Download and install npm Command: $ sudo
Using Isset() function in php
The Isset () Function: The isset () function is used when we have to check whether a value in the variable is set or not. It returns false when variable contains null values. For Example, values are stored in a
English | Some confusing words
1. Accept vs Except vs Expect: Accept: To approve/to agree. Example: I accept the new business proposal. Except: Leaving someone or something. Example: The new software works on every operating system except Windows 98. Expect: To hope. Example: I expect
HTML | Padding in px versus %
In HTML, padding can be given to the text in following ways: Method 1: style=”padding-left:100px;” or style=”padding-right:100px;” Method 2: style=”padding-left:30%;” or style=”padding-right:30%;” It is more appropriate to use “%” than “px”. The reason for this is when px is used,
MySQL | How to automatically update timestamp field
Sometimes, we need to check when was the data last accessed. In MySQL, we had taken a field last_modified_time as timestamp datatype in a table, which was set to CURRENT_TIMESTAMP by DEFAULT. When a new record was inserted, it automatically
Salesforce | Refresh the parent window automatically on closing the child window
On closing child popup window (on click of a button), we wanted to refresh the parent window automatically to check the updates. We can refresh the parent window on closing the popup window by using javascript. Syntax : This is