Posts

Salesforce.com:Debugging Salesforce Lightning Components

Debugging There are a few basic tools and techniques that can help you to debug applications. Use Chrome DevTools to debug your client-side code. To open DevTools on Windows and Linux, press Control-Shift-I in your Google Chrome browser. On Mac, press Option-Command-I. To quickly find which line of code is failing, enable the  Pause on all exceptions  option before running your code. To learn more about debugging JavaScript on Google Chrome, refer to the  Google Chrome’s DevTools  website. Enable Debug Mode for Lightning Components Enable debug mode to make it easier to debug JavaScript code in your Lightning components. Salesforce Lightning Inspector Chrome Extension The Salesforce Lightning Inspector is a Google Chrome DevTools extension that enables you to navigate the component tree, inspect component attributes, and profile component performance. The extension also helps you to understand the sequence of event firing and handling. Log Messages To help d

Salesforce.com:Debugging Aura Component Code

Debugging Aura Component Code There are a few basic tools and techniques that can help you to debug applications. Use Chrome DevTools to debug your client-side code. To open DevTools on Windows and Linux, press Control-Shift-I in your Google Chrome browser. On Mac, press Option-Command-I. To quickly find which line of code is failing, enable the  Pause on all exceptions  option before running your code. To learn more about debugging JavaScript on Google Chrome, refer to the  Google Chrome’s DevTools  website. Enable Debug Mode for Lightning Components Enable debug mode to make it easier to debug JavaScript code in your Lightning components. Salesforce Lightning Inspector Chrome Extension The Salesforce Lightning Inspector is a Google Chrome DevTools extension that enables you to navigate the component tree, inspect component attributes, and profile component performance. The extension also helps you to understand the sequence of event firing and handling. Log

Salesforce.com:Scanning the Salesforce Lightning code for Quality

Salesforce Lightning CLI Lightning CLI is a Heroku Toolbelt plugin that lets you scan your code for general JavaScript coding issues and Lightning-specific issues. This tool is useful for preparing your Lightning components code for LockerService enablement. Lightning CLI is a linting tool based on the open source ESLint project. Like ESLint, the CLI tool flags general JavaScript issues it finds in your code. Lightning CLI alerts you to specific issues related to LockerService. Issues that are flagged include incorrect Lightning components code, and usage of unsupported or private JavaScript API methods. Lightning CLI installs into the Heroku Toolbelt, and is used on the command line. Install Salesforce Lightning CLI Install Lightning CLI as a Heroku Toolbelt plugin. Then, update the Heroku Toolbelt to get the latest Lightning CLI rules. Use Salesforce Lightning CLI Run Lightning CLI just like any other lint command-line tool. The only trick is invoking it th

Salesforce.com:Developing Secure Code in Salesforce Lightning

Developing Secure Code The Salesforce Aura framework uses Content Security Policy (CSP) to control the source of content that can be loaded on a page. The LockerService architectural layer enhances security by isolating individual Lightning components in their own containers and enforcing coding best practices. The Lightning Component framework uses Content Security Policy (CSP) to control the source of content that can be loaded on a page. CSP  is a Candidate Recommendation of the W3C working group on Web Application Security. The framework uses the  Content-​Security-​Policy  HTTP header recommended by the W3C. The framework’s CSP covers these resources: JavaScript LibrariesAll JavaScript libraries must be uploaded to Salesforce static resources. For more information, see  Using External JavaScript Libraries .HTTPS Connections for ResourcesAll external fonts, images, frames, and CSS must use an HTTPS URL. You can change the CSP policy and expand access to thir

Salesforce.com:What is Aura Framework?

What is Aura   Aura is a UI framework for developing dynamic web apps for mobile and desktop devices. Aura provides a scalable long-lived lifecycle to support building apps engineered for growth. Aura supports partitioned multi-tier component development that bridges the client and server. It uses JavaScript on the client side and Java on the server side. Why Use Aura? Aura comes with a rich and extensible component set to kick start building apps. You don’t have to spend your time optimizing your apps for different devices as the components take care of that for you. The framework intelligently utilizes your server, browser, devices, and network so you can focus on the logic and interactions of your apps. The Lightning Component framework  is built on the open source Aura framework. The Aura framework enables you to build apps completely independent of your data in Salesforce.     Source : http://www.saasanalogy.com/what-is-aura-framework/ http:

Techniques for Optimizing Dataload Performance

The Salesforce platform is a robust environment in which native and custom applications can scale to large volumes of data very quickly while continuing to perform well. You can maximize the benefits of these capabilities by: Making queries selective—ensure that reports, list views, and SOQL are using appropriate filters. Reducing the amount of active data—use archiving, mashups, and other techniques to reduce the amount of data stored in Salesforce. Techniques for optimizing Salesforce performance The arrangements, features, mechanisms, and options underpinning those techniques Circumstances in which you should use those techniques and tailor them to your needs Mash UP One approach to reducing the amount of data in Salesforce is to maintain large data sets in a different application, and then make that application available to Salesforce as needed. Salesforce refers to such an arrangement as a  mashup because it provides a quick, loosely coupled i

Salesforce Integration Patterns and Practices

When you implement Salesforce, you frequently need to integrate it with other applications. Although each integration scenario is unique, there are common requirements and issues that developers must resolve. There are a some standard patterns to design a architecture of a particular business requirement. Pattern Scenario Remote Process Invocation—Request and Reply Salesforce invokes a process on a remote system, waits for completion of that process, and then tracks state based on the response from the remote system. Remote Process Invocation—Fire and Forget Salesforce invokes a process in a remote system but doesn’t wait for completion of the process. Instead, the remote process receives and acknowledges the request and then hands off control back to Salesforce. Batch Data Synchronization Data stored in Force.com should be created or refreshed to reflect updates from an external system, and when changes from Force.com should be sent to an external