No video

LWC Bootcamp Day 44 | Part 2: Lightning Data Table : Update Record with Inline Edit

  Рет қаралды 2,956

Tech Journey With Ankit

Tech Journey With Ankit

Күн бұрын

Welcome to Part 2 of our Lightning Data Table tutorial series! In this episode, we dive deeper into Salesforce Lightning Data Tables, exploring two crucial functionalities: Updating Records and Loading Picklist Values Dynamically.
⚙️ Updating Records:
Learn how to make your Lightning Data Table interactive by enabling record updates! We'll guide you through the process of configuring editable columns and handling record updates in the Lightning component controller.
🔄 Loading Picklist Values Dynamically:
Discover how to dynamically load picklist values in your Lightning Data Table. We'll leverage Apex controllers to fetch picklist values from Salesforce and seamlessly integrate them into your Lightning component.
🔧 Key Topics Covered:
Enabling record updates in Lightning Data Table.
Configuring editable columns with the editable attribute.
Handling record updates in the Lightning component controller.
Dynamically loading picklist values using Apex controllers.
Integrating picklist values into your Lightning component for a dynamic user experience.
👩‍💻 Prerequisites:
Make sure you have watched Part 1 of our Lightning Data Table series to build a solid foundation before diving into this advanced tutorial.
🔔 Subscribe and Stay Tuned:
Don't forget to subscribe to our channel for more Salesforce tutorials, tips, and best practices. Hit the notification bell to stay updated on the latest content!
#salesforce #lwc #lightningwebcomponent #salesforcedeveloper #salesforcelighting

Пікірлер: 17
@SfdcLearner
@SfdcLearner 6 ай бұрын
Got to this video by Search. I loved it. Now i will watch Whole series from Beginning ❤
@TechJourneyWithAnkit
@TechJourneyWithAnkit 6 ай бұрын
Enjoy and share 😉
@user-dr9dc3yr5t
@user-dr9dc3yr5t 6 ай бұрын
Hello Ankit, its very helpful knowledge you are sharing thanks for that, I am also requesting to you make video on populating lookup field and inline editing.
@TechJourneyWithAnkit
@TechJourneyWithAnkit 6 ай бұрын
Yes will plan for it
@user-db2wb5rw8p
@user-db2wb5rw8p Ай бұрын
Hi @Ankit Jain, Thanks for the Wonderful content, I have had one doubt. How to edit custom Types that we implemented in previous session ? I tried with name column but it's not working
@TechJourneyWithAnkit
@TechJourneyWithAnkit Ай бұрын
I beleive If the component are in use it will not allow to do.
@laggavenkatagiri8464
@laggavenkatagiri8464 3 ай бұрын
Good Video !!
@TechJourneyWithAnkit
@TechJourneyWithAnkit 3 ай бұрын
Glad you enjoyed it
@amarmute7384
@amarmute7384 Ай бұрын
Hi...Ankit how we can update Rich-text area field can u please guide mi in that
@TechJourneyWithAnkit
@TechJourneyWithAnkit Ай бұрын
Don't do that, it will be a bad user experience, use row action, open modal and put rich text there
@amarmute7384
@amarmute7384 Ай бұрын
@@TechJourneyWithAnkit Thanks Ankit for u r reply...but I had a requirement that I want to in-line edit rich text area field in list view...with standard datatable it's not possible it converts rich text into normal....whts could be my approach please guide mi into that
@nitinnainwal
@nitinnainwal 3 ай бұрын
Hi Ankit, Save button functionality is not working for me. It is showing - Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received. Please help.
@nitinnainwal
@nitinnainwal 3 ай бұрын
I have done the exactly same thing as you did in this video.
@Nitin-ep4xg
@Nitin-ep4xg 3 ай бұрын
Hey can you post your code here. i believe you are getting error on the line--> let updateRecPromiseArray = updateRecordsArray.map((currItem) => updateRecord(currItem)) // console.log('updateRecPromiseArray>>>' , JSON.stringify(updateRecPromiseArray)); or you can check in debug console by applying breakpoints.
@rahulsingh-cs8og
@rahulsingh-cs8og 11 күн бұрын
Hi, I was also recieving same issue but need to do some changes and now its working. async HandlerSave(event) { let records=event.detail.draftValues;//return of array of updated values of record let updaterecordArray = records.map((currItem) => { let fieldInput={...currItem}; return{ fields: fieldInput }; }); this.draftValues=[]; let updaterecordPromise = updaterecordArray.map((currItem)=> updateRecord(currItem)); try{ await Promise.all(updaterecordPromise); const evt = new ShowToastEvent({ title: "Success", message: "Record is Updated Successfully", variant: "success" }); this.dispatchEvent(evt); } catch(error){ console.log(error); } } } also if you are trying to update name than you will get error as in salesforce first name and last name you should use to update. but for other field it will work as in my case.
@kallurma
@kallurma 5 ай бұрын
Hi @Anki, it's nice session. It's very useful for me. I need help I'm displaying all columns in lwc datatable popup. When i click on save it's not saving
@TechJourneyWithAnkit
@TechJourneyWithAnkit 5 ай бұрын
Check the error message in catch block to validate why it is not saving
LWC Bootcamp Day 45 | Part 3: Lightning Data Table: Add Picklist Field on Data Table
34:16
Before VS during the CONCERT 🔥 "Aliby" | Andra Gogan
00:13
Andra Gogan
Рет қаралды 10 МЛН
Кадр сыртындағы қызықтар | Келінжан
00:16
managed to catch #tiktok
00:16
Анастасия Тарасова
Рет қаралды 48 МЛН
Salesforce Integration Patterns
1:06:59
Devfacts
Рет қаралды 6 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 354 М.
Export Data in CSV Using Lightning Web Component (LWC)
21:40
Tech Journey With Ankit
Рет қаралды 2,9 М.
LWC Bootcamp Day 29 | Child To Parent Communication in LWC | Custom Events
1:01:45
Tech Journey With Ankit
Рет қаралды 4,1 М.
Rebuilding the Standard List View in 53 Minutes | LWC Tutorial
53:22
7 Database Paradigms
9:53
Fireship
Рет қаралды 1,6 МЛН
Wait... PostgreSQL can do WHAT?
20:33
The Art Of The Terminal
Рет қаралды 193 М.
Before VS during the CONCERT 🔥 "Aliby" | Andra Gogan
00:13
Andra Gogan
Рет қаралды 10 МЛН