As you might already know that next big change in Salesforce is introduction to lightning components. As technology is changing rapidly and to take advantage of cutting edge innovations in web technology, Salesforce doesn’t want to stay behind. If we see trend, all major platform has introduced component based design like Polymer, React, Web Components, Angular 2.
We will be discussing basics of Lightning components in this post and how Lightning application, component, controller, helpers and Apex controllers are connected with each other.
Creating Custom button :
Navigate to “Customize | Accounts | Button, Links and Actions”.
In this article, I will show very simple Hello world program using React framework.
Salesforce interview questions for Salesforce developers and admin , mostly related to newly released Salesforce Lightning components and applications
191. Why do we still need Visualforce once Lightning will be GA ? Ans : Visualforce provides the facility for delivering template-driven web pages and email messages. In addition, developers wishing to simply utilize a basic container and maintain more control over the lifecycle of the request may choose Visualforce pages. Finally, organizations that can’t use Apex code can’t use Lightning Components, but they can use Visualforce.
192. What is difference between Visualforce Components and Lightning Components ? Ans : Visualforce provides the facility for delivering template-driven web pages and email messages. In addition, developers wishing to simply utilize a basic container and maintain more control over the lifecycle of the request may choose Visualforce pages. Finally, organizations that can’t use Apex code can’t use Lightning Components, but they can use Visualforce.
Initially i gave though to use visualforce remoting however challenge was how to show progress bar and same challenge was with custom controller or extension also. So, i decided to create one simple Apex REST API to upload attachment.
So what is so special about this framework, other than its developed by Google ?
Unlike Backbone and Ember, You don’t have to spend time on Event Handling (Bind, UnBind Events etc).
It Works on principal of Dirty Checking.
Automatically fires event if something gets changed.
What ? Dirty checking ? wouldn’t it be performance impact on my web application?
You are correct. But Google team has answer for this.
AngularJS performance mainly linked to your computer (Client’s Computer) performance.
Ergonomical point of view, an HTML page should not have more than 200 fields. More fields will just distract users.
In this tutorial, I am going to explain very Simple AJAX and JSON based Auto Complete component with the help of JQuery UI. First I am assuming that you already have Static Resource of named “AutoCompleteWithModal“. This Static resource has all images, CSS and JQuery library needed to implement this component.
Resolving the JQuery error when the Element ID contains colon with Live Demo
Today i came across very known problem of jQuery and thought of sharing same with everyone. In Salesforce the element id is in the format of “j_id0:j_id3:j_id4:c_txt“. In previous post we have already discussed about getting the elementId in Visualforce.