Lightning Component: Upload and read a file in the apex controller

In this post we will see how to Upload and read a file in the apex controller through Lightning Component. Though lightning has a file upload component here, sometimes we want to upload files to a third party system or do some other processing rather than attaching it to a Salesforce record. To do that, […]

Lightning Component: Show check boxes for a records list and display selected record

Lets take an example to show check boxes for a records list and display selected record in an alert box. To show check boxes for a list view, we will first display dummy data of 5 contacts in our component. Let’s create an apex class to query 5 random contacts for our component: Next we […]

Lightning Component – How to display Objects and its fields

To display Objects and its fields in a lightning component, follow the simple steps: First of all, create an apex class called “ObjectsFieldsList” which will act as our controller. The “getallobjects” method returns the list of sObjects. The “getAllFields” takes sObject as parameter and returns its fields. Next create a component called as “DisplayObjects” and […]

Lightning Component – Step by Step guide to display records

In this post we will see step by step how to create a Lightning component to display records in tabular fashion. Let’s say we have a custom object called Bank, We want to show all records of Bank object to the user. 1. Open Developer Console and create new Lightning Component called BanksList. Add the […]

Scroll to top