Posts

Security model

Image
  Salesforce provides a robust and flexible data security model to secure data at different levels. It also provides a sharing mechanism to open up access securely based on business need. Organization level security For your whole org, you can maintain a list of authorized users, set password policies, and limit logins to certain hours and locations. Login IP Ranges  – Login IP Ranges defines a set of IP ranges, so a user with that profile can only log in from that set of IP ranges. If the user tries to log in outside that range, the user would be simply kicked out. There is always confusion between trusted IP ranges and login IP ranges. The difference is, using trusted IP ranges, users can log in outside the trusted IP range with verification method, whereas with login IP range, there is no way to log in outside login IP range . Login Hours – It allows us to set login and log out time-based on the day for users with the profile. You can set time daily in a week. With the help of Login

Lightning web Components.

 Lightning Web Components:-  Lightning web components are leverages  new web standards  and allows developers to create web components which  can work in Salesforce Lightning platform. It is new programing model to create lightning components. Lightning Web components are custom HTML elements built using HTML and modern java script ES6+. Lightning Web Components uses core Web Components standards and provides only what's necessary to perform well in browsers supported by Salesforce. Lightning Web Components are lightweight and delivers exceptional performance. Because its built on code that runs natively in browsers. All the key elements  to create component are part of native web browser engine and you don't need any framework to create these components. These are based on modern web standards and It enhance and make use of custom elements, templates ,decorators, Shadow DOM, various modules in ECMAScript7.

Lightning Flow Builder..

Image
Lightning Flow:- Lightning Flow is a product it mainly deals with managing, building,running processes flows. Flow:- Flow is  an application that automates a  business process by collecting data and do something in your S alesforce org or external system. Flow Builder:- Flow Builder is a point-and-click tool for building flows.   Lightning Flow Builder :-     lightning flow builder is a tool which allows you to automate business process  by building application known as Flows and flows can be used to create, update collect, delete information in salesforce. Flows can also execute logic and  interact with salesforce data, call apex class and guide users through screens for collecting and updating data. Flows in salesforce can implemented   by thses following ways:- 1. Screen Flow:-       I n this type of flow  a series of screen elements gather information        from the user and perform some operations. Screen flow can be    accessed from custom button, custom link, Visual pages etc.T

PubSub pattern in LWC

 PubSub design pattern:-    Pubsub is a singleon library(Java Script file)  that follows publish subscribe pattern.  If componets  which are not situated in the same DOM  tree wants to communicate                 between   themselves, we have  to  use   publish subscriber   model in Lightning Web     Component.   Pub-sub is like Application Event in Lightning Aura Component.  In a  publish-subscribe pattern one component  publishes an event while the other components  subscribe to receive and handle  the event. Every component that subscribe  to the event  receive the event. NOTE .  Publish-Subscribe  Model only works for components that are on the same page

EVENTS IN Lightning Web Components

Events in Lightning web components (LWC) | Communicate with Events In this post we will talk about how to use the lightning web component events to communicate between components. Events in Lightning web components are built on DOM Events, a collection of APIs and objects available in every browser. Here we will be see how to the events using the CustomEvent interface and publish-subscribe utility. COMPONENT COMMUNICATION THROUGH EVENTS There are typically 3 approaches for communication between the components using events. Communication using Method in LWC ( Parent to Child ) Custom Event Communication in Lightning Web Component (Child to Parent ) Publish Subscriber model in Lightning Web Component ( Two components which doesn't have a direct relation )  1) COMMUNICATION USING METHOD IN LWC (PARENT TO CHILD) In Aura framework, we can call the method of Child Component from the Parent Component with the help of <aura:method> . In LWC also we can do the same. In LWC Aura Method

Javascript properties in lightning web component

    properties in lwc:-   In any programming languages we will need variables to hold data and in lightning web components we call them properties.   Property names in JavaScript are in  camel case while HTML  attribute names are in kebab case(dash-  separated) to match HTML  standards. For example a javaScript  property named  firstName  maps to   an   HTML  attribute named first -n ame .    In lightning web components  we have two types of properties those are Private and Reactive Properties Public Properties Getter    Non-Reactive Properties.               when ever  the values changes to the property  then it does not re-render the component             we don't need to use decorator  to define this type of property.     Example: testLwc.html < template > < lightning - card title = " Non-Reactive" >                  {description} <lightning button label = "change value" onclick = {changeHandler}></lightning-button> </lightning-card