Tag: Zoho Creator
Moodle/Totara | Moodle not inserting values to new column added to an existing table
In Moodle, if we alter a table by adding a new column to it and use Moodle $DB->insert_record(‘table_name’,$dataobject) , it inserts the value which are assigned to old columns but not to the newly created columns. For Example: if we
Selenium | How to locate an element with css selector and set value in it using code
See the image below and html source of it. There is an element with name “email”. If we want to access that field and set a value in it, we can achieve that with this sample code: public void test()
Salesforce | Get all the documents located in ‘My Personal Documents’ folder
In Salesforce, we can get list of all the documents located in a particular folder by using the following query : folderId = [SELECT Id FROM Folder WHERE Name = ‘FolderName’] [SELECT Id, Name FROM Document WHERE FolderId =:folderId] But
IE11 – How to view webpage in different IE versions
Follow these steps to view the webpage in different versions of IE: 1. Open IE11. 2. Press F12 key. 3. Click on “Edge” that is displayed to the right side of the console bar. See screenshot below: 4. On clicking
Moodle | Fetch Site-Administrator user records from Moodle/Totara database
Steps : 1. Open mdl_config table in Moodle/Totara database. 2. Look for the record with name field set to “siteadmins”. 3. The value field will contain comma separated list of user-ids that have administrative access to site. Screen Shot below
Salesforce | Uploading and using images in Visualforce page
When there is requirement of displaying images in a Visualforce page, following methods can be adopted: Method 1: If the image is present on another website/server. Use this code: <apex:image url=”Paste URL of the image” styleClass=”imageStyle”/> Method 2: Uploading image in “Static
Salesforce | How to show different apex message at different places on clicking a single button?
In a Visualforce page we have multiple UI blocks (for simplicity we have considered only 2 blocks below). In each block we have a form with some html elements and few action buttons to submit form of only that block.
Moodle/Totara | How to give Grade to user in enrolled course
To give grade to user enrolled in course follow the below steps: 1. Open the course in which user is enrolled: 2. To the left, click on link labelled “Grades” as shown below: 3. Click on the button “Turn editing
Eclipse Luna | Dark theme and window split
1. You can select a dark theme for Eclipse Lune now: To use the dark theme, go to Window -> Preferences -> General -> Appearance and choose ‘Dark’. 2. Editors can be split horizontally ( CTRL+_ ) or vertically (