Just one day before I saw your video and next day the interviewer asked me to write the same program and I got the job 😀 Thanks you for the knowledge you shared 😊 👍
Thank you for sharing the knowledge I have query how to get parent values when click on new child button(overridden) along with I need to add check box and radio group, input field how can I achieve this scenario
@19:54: What is the purpose of passing the Apex parameter, 'Boolean flag' into the Apex method, 'contactListCtrl.getContactList'? As I understand in your example, the showContact JS variable gets evaluated, then {flag: '$showContact'} gets passed into the @wire decorator and calls the getContactList Apex method. Is it just an example of showing how to pass a parameter to the Apex method that your example does not use?
@Tom $showContact is a reactive an dynamic property here. So if we are using dynamic property in @wire apex class, whenever value of this property changes($showContact in our case), @wire call is executed. We have not used it in apex method as I just wanted to show how dynamic properties work. Let me give you example, lets say we have account searching application based on user input of account name value, so in that case we can bind this input value to dynamic property so we do not have to use imperative call and @wire will be executed whenever user changes value on UI .
@wire in general is used to fetch the data on load of components or if some parameters passed to apex method changes, so to bring fresh data. Imperative call can be used to fetch data, perform DML operations etc on some events say click of button. You cannot perform DML with @wire call.
How to get the text out of a formula field and pass that text as an argument in the Apex class.(query used is field INCLUDES stringvalue). If you post a video like this. That will be helpful.
Thank you :)@Rajesh. I have already added videos on events. ruclips.net/video/Zews9NIg0N8/видео.html You can watch other videos on playlist for communication between lwc components.
That is correct. If we want cache to be there then we can mark server side method as cacheable while using imperative approach also. But in that case the result returned by method would be immutable and we cannot modify it directly, also we cannot perform any DML operations ,similar to in case of working with @wire
Hi @Amit, I tried explaining each line and also explained in presentation.May be I missed some point.Let me know which part you couldn't understand, will definitely help you. Also, I will take this suggestion and improve from next time so it would be easier for you.
Thank you for making this very informative video. Please make more videos on LWC
Just one day before I saw your video and next day the interviewer asked me to write the same program and I got the job 😀 Thanks you for the knowledge you shared 😊 👍
Hi, Can you share the details of the program query you have been asked in the interview?
write LWC to fetch account and related contacts.
@@shreyaraut9270 thank you
@shreya raut
Thank you. I am glad it helped you. Congratulations for your job and all the best.
Thank you for sharing the knowledge
I have query how to get parent values when click on new child button(overridden) along with I need to add check box and radio group, input field how can I achieve this scenario
Very neatly explained. Will look out for the series on LWC from ur side.
@vineet thank you !
thank u... i am very clear about your explanation....
glad it helped :)
Thank you, great efforts .
I don't get what you are doing with the parameter Boolean in apex class method.
can you tell me what's the reason to write Aura or calling the LWC component in the Aura for writing Wire?
Super simple explanation
@shashi Thank you :)
@19:54: What is the purpose of passing the Apex parameter, 'Boolean flag' into the Apex method, 'contactListCtrl.getContactList'? As I understand in your example, the showContact JS variable gets evaluated, then {flag: '$showContact'} gets passed into the @wire decorator and calls the getContactList Apex method. Is it just an example of showing how to pass a parameter to the Apex method that your example does not use?
@Tom $showContact is a reactive an dynamic property here. So if we are using dynamic property in @wire apex class, whenever value of this property changes($showContact in our case), @wire call is executed. We have not used it in apex method as I just wanted to show how dynamic properties work. Let me give you example, lets say we have account searching application based on user input of account name value, so in that case we can bind this input value to dynamic property so we do not have to use imperative call and @wire will be executed whenever user changes value on UI .
What is the main difference in wire and imperative. when we will go for the wire service ?
@wire in general is used to fetch the data on load of components or if some parameters passed to apex method changes, so to bring fresh data.
Imperative call can be used to fetch data, perform DML operations etc on some events say click of button.
You cannot perform DML with @wire call.
@@SALESFORCEPREDATOR This is exactly what I was looking for.
Thank you.
Thanks a lot🙏
How to get the text out of a formula field and pass that text as an argument in the Apex class.(query used is field INCLUDES stringvalue). If you post a video like this. That will be helpful.
Excellent dear. Today it clear. Please upload about lwc event as well, will be highly appreciated
Thank you :)@Rajesh. I have already added videos on events. ruclips.net/video/Zews9NIg0N8/видео.html
You can watch other videos on playlist for communication between lwc components.
While using @wire, on server method we need to use cacheable = true and it is mandatory.
While using imperative method, it is not mandatory
That is correct. If we want cache to be there then we can mark server side method as cacheable while using imperative approach also.
But in that case the result returned by method would be immutable and we cannot modify it directly, also we cannot perform any DML operations ,similar to in case of working with @wire
Nice bro
Can we use both imparative and wire method in same js file??
@teja Yes, definitely there is no such restrictions.
@@SALESFORCEPREDATOR tq
Event is deprecated
You are just copying and pasting the code.. You are not at all explaining what is happening in each line of your code specially in JS part.
Hi @Amit, I tried explaining each line and also explained in presentation.May be I missed some point.Let me know which part you couldn't understand, will definitely help you.
Also, I will take this suggestion and improve from next time so it would be easier for you.