LWC create Record RecordEditForm Use the lightning-record-edit-form component to create a form that's used to add a Salesforce record or update fields in an existing record. The component displays fields with their labels and the current values, and enables you to edit their values. http://simpluslabs.com/how-to-create-update-delete-and-fetch-records-in-lightning-web-component/ <template> createAccountRecord<lightning-card title="Create Account" icon-name="custom:custom57"></lightning-card> <div class="slds-grid slds-wrap slds-p-around_small"> <!-- Create a record with Lightning Data Service --> <div class="slds-col"> <lightning-record-form object-api-name={accountObject} fields={myFields} onsuccess={handleSuccess} onsubmit={handleSubmit}> mode="edit"> </lightning-record-form> </div> </div> </template> createAc...
Posts
Showing posts from April, 2020
Lightning Web Component
- Get link
- X
- Other Apps
Lightning Web Component salesforce 🌩 : What is Lightning Web component? · Latest Programming Model for Building lightning component. · Built using custom HTML and modern JavaScript · SuperLight Weight and highly Performant (less over Head). · Template, Shadow DOM(Encapsulation CSS effect, NO override ) For Documentation: · https://developer.salesforce.com/docs/component-library/documentation/en/lwc · https://developer.salesforce.com/docs/component-library/bundle · https://github.com/salesforce/lwc · ...
2018 Jan -Collection In Salesforce
- Get link
- X
- Other Apps
Harry: A for Apple ,B for Ball , C for Cat..... Adam : Harry, Are you Okay..? Harry: Yes I'm Okay, just preparing myself how to learn Apex collection from begining. :-) Adam: Ohhh Man...Seriously!!! No need to worry just turn off your mobile & sit with me, we will go together using Develope console. Adam: Basically three types of collection: List, Set, Map: *List in Salesforce : List : List is collection of an ordered set of elements.which can contain duplicate items. Example: //Creation of list List<String> lst= new List<String>(); lst.tempVeri=’mayur’; system.debug(‘list First element :’+ tempVeri.get(0)); Methods in list 1 Add 2 Add(1,20) which means at index value of 1 add 20. 3 addAll. Example: List<Integer> v1= new List<Integer>(); v1.add(10); v1.add(20); System.debug('V1 0 , v1 1 place values: '+V1); List...