Lightning Component Development Sessions Day5

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ต.ค. 2024
  • Want to learn more about salesforce join me at sfdcpanther.com 1 - Introduction to predefined interfaces in LC.
    2 - Add ContactList Component in Account Record Page
    3 - Enhance the ContactList Component to show the Contact related to particular Account only.
    4 - Create UI part of QuickContact Component
    5 - Introduction to Project
    Overview of the Project
    Data Model of the Project
    Here is the link to the document related to the project: -
    drive.google.c...
    #forceHasRecordId #forceHassObjectName #LightningProjectOverview #Salesforce #Lightning #SFDCPanther #Ohana #Learning

ความคิดเห็น • 78

  • @ashishpathak3424
    @ashishpathak3424 4 ปีที่แล้ว +2

    Best Tutorials For Any One To Understand Each And Every concept.Thanks, Sir

  • @findjesudoss
    @findjesudoss 5 ปีที่แล้ว +2

    Thank Amit for this good tutorial. It is very useful for us.

  • @chanakyachatakondu1385
    @chanakyachatakondu1385 3 ปีที่แล้ว

    Thank you very much sir

  • @prashanthkumarenagandula9988
    @prashanthkumarenagandula9988 4 ปีที่แล้ว +1

    Thanks,Amith. these videos are helping a lot!

  • @AnmolSingla-d2b
    @AnmolSingla-d2b ปีที่แล้ว

    NIce Video

  • @irshaadij2016
    @irshaadij2016 3 ปีที่แล้ว +1

    doRedirect function, you used the getSource() function. Why didnt you use the getParam() function ? and also the variable v.name is a bit confusing. Can you shed some light.

  • @khumedsfdc
    @khumedsfdc 6 ปีที่แล้ว +1

    Nice Explanation thank from this we are learning a Lot

  • @Sai-mi7bn
    @Sai-mi7bn 4 ปีที่แล้ว

    Thank you!

  • @vishal5047
    @vishal5047 4 ปีที่แล้ว

    @SFDC Panther A quick component can be created using Flow Builder.
    so why do we create using the lightning component?

    • @sfdcpanther
      @sfdcpanther  4 ปีที่แล้ว

      It's always recommended to use a declarative approach and then go for programming. If you can do this using flow then go with flow

  • @Amitsingh-qc4si
    @Amitsingh-qc4si 4 ปีที่แล้ว +1

    Hi Amit,
    I have done all thing correct and getting ID as well but while redirecting to contact i got error.
    This page has an error. You might just need to refresh it.
    Action failed: c:MyContactList$controller$doRedirect [Cannot read property 'setParams' of undefined]
    Failing descriptor: {c:MyContactList$controller$doRedirect}
    Pleasse help.

    • @sfdcpanther
      @sfdcpanther  4 ปีที่แล้ว

      When it says that property of undefined that means the var in which you are trying to set the parameters using setParams is undefined check that variable

  • @prayagrajpandey9310
    @prayagrajpandey9310 5 ปีที่แล้ว

    Awesome......thanks bhai

  • @shubhrakumari3538
    @shubhrakumari3538 4 ปีที่แล้ว

    Hi Amit,
    I have done all thing correct and getting ID as well but while redirecting to contact i am getting error.
    This page has an error. You might just need to refresh it.
    Action failed: c:MyContactList$controller$doRedirect [Cannot read property 'setParams' of undefined]
    Failing descriptor: {c:MyContactList$controller$doRedirect}
    The below code i have used from your video -
    var eventSource = event.getSource();
    var id = eventSource.get('v.name');

    var navEvt = $A.get("e.force:navigateToSObject");
    navEvt.setParams({
    "recordId": id,
    "slideDevName": "detail"
    Pleasse help.

    • @sfdcpanther
      @sfdcpanther  4 ปีที่แล้ว

      You are trying to navigate from the Lightning application?

    • @SasikumarPadala-vp9sm
      @SasikumarPadala-vp9sm ปีที่แล้ว

      Hey did this issue of yours get it solved ?

  • @jayadev34
    @jayadev34 3 ปีที่แล้ว

    When I follow the similar steps getting below error while creating the contact from Account Detail page.
    16:25:32:010 FATAL_ERROR System.DmlException: Upsert failed. First exception on row 0; first error: INVALID_FIELD_FOR_INSERT_UPDATE, Contact: bad field names on insert/update call: Lastname: [Lastname]
    But if the same Apex method is invoke from Debug --> Open Execute Anonymous Window, it is working as expected.
    Could you please help me in resolving this issue.

  • @saurabhsp87
    @saurabhsp87 4 ปีที่แล้ว +1

    When clicking on View Details, it is not redirecting to contact page. Instead I am getting this error:
    "
    Looks like there's a problem.
    This record is no longer available. Ask your administrator for help."
    Any idea! @SFDC Panther

    • @preetibharti2803
      @preetibharti2803 3 ปีที่แล้ว

      because you haven't written button logic .

  • @subbu8119
    @subbu8119 4 ปีที่แล้ว

    amazing!

  • @RahulKumar-sf2xm
    @RahulKumar-sf2xm 4 ปีที่แล้ว

    Hi Amit,
    Contact record show in detail page and if I click details
    I follow same code as you teach in Video.
    Looks like there's a problem.
    This record is no longer available. Ask your administrator for help.
    Please tell me,how to solve

    • @sfdcpanther
      @sfdcpanther  4 ปีที่แล้ว +1

      Your Id is not valid. In the navigation object while passing the record id make sure you are passing the correct record id.

  • @shreyaraut9270
    @shreyaraut9270 4 ปีที่แล้ว

    Hi Amit,
    Why are we using

    • @sfdcpanther
      @sfdcpanther  4 ปีที่แล้ว

      To align the button in the top right

    • @shreyaraut9270
      @shreyaraut9270 4 ปีที่แล้ว

      thanks for your replay ..

  • @preetibharti2803
    @preetibharti2803 3 ปีที่แล้ว

    Sir , Apki kuch videos me (including this video) voice bhut kam h baki me thik hai

  • @chaitanyaveginati8139
    @chaitanyaveginati8139 3 ปีที่แล้ว

    Hi
    i need some clarification on creating the Address book and coupon objects.
    Do we need to create new custom object or do we need to use any standard feature.
    If it is standard feature how can we use. Please explain me.

    • @sfdcpanther
      @sfdcpanther  3 ปีที่แล้ว

      For this demo we have used custom objects

  • @pallerlapradeep9955
    @pallerlapradeep9955 5 ปีที่แล้ว

    Hi Amit, Iam getting "undefined" message in alert instead of contact id. cld u pls check the below code once:
    doredirect : function(component, event, helper)
    {
    var eventsrc=event.getSource();
    var id=eventsrc.get('v.name');
    alert(id);
    },

    • @sfdcpanther
      @sfdcpanther  5 ปีที่แล้ว

      Hi,
      First you need to get the source using event.getSource()
      And then get the value using the variable in which you are storing the event source

    • @pallerlapradeep9955
      @pallerlapradeep9955 5 ปีที่แล้ว

      @@sfdcpanther Hi Amit, I already used that. And mentioned in above code where I have stored in var. Bt iam nt able to proceed. Cld u pls check nd rply. This is stopping me to proceed with next concept

    • @sfdcpanther
      @sfdcpanther  5 ปีที่แล้ว +1

      Id in con.id should be in caps like Id

  • @AnkitKumar-gl5vy
    @AnkitKumar-gl5vy 6 ปีที่แล้ว +1

    Waiting for next video tutorial

  • @Breathingdays
    @Breathingdays 5 ปีที่แล้ว

    Hi Amit,
    My lightning component is not appearing in the edit page of account object. is there setting that I need to update to add the component in lightning record page?

    • @sfdcpanther
      @sfdcpanther  5 ปีที่แล้ว +1

      Have you implemented the required interface which is flexipage:availableForAllPageTypes

    • @Breathingdays
      @Breathingdays 5 ปีที่แล้ว

      Thanks Amit. I am able to see after implementing this interface.

  • @Indira570
    @Indira570 4 ปีที่แล้ว

    When I click the button,it doesn't redirected to detail page.plz resolve my problem.I was following same code what you have written.
    .
    .
    Waiting for Ur rply

    • @sfdcpanther
      @sfdcpanther  4 ปีที่แล้ว

      Are you getting any error?

    • @Indira570
      @Indira570 4 ปีที่แล้ว

      @@sfdcpanther noo error

    • @vijjurs1706
      @vijjurs1706 3 ปีที่แล้ว

      check if v.record displaying value or not

  • @hifzasyed3700
    @hifzasyed3700 3 ปีที่แล้ว

    I write the same code but contacts are not available on the detail page

    • @sfdcpanther
      @sfdcpanther  3 ปีที่แล้ว

      Are you getting any error?

    • @hifzasyed3700
      @hifzasyed3700 3 ปีที่แล้ว

      @@sfdcpanther error has been resolved

  • @sameerzthegamer.6975
    @sameerzthegamer.6975 4 ปีที่แล้ว

    Hi
    i am getting this error when click on button it should open contact detail list but it is showing below error while redirecting to detail page.
    Looks like there's a problem.
    This record is no longer available. Ask your administrator for help.

  • @suvarnavennapusala2154
    @suvarnavennapusala2154 5 ปีที่แล้ว

    hii amit sir...
    i am creating all record list display usimg lightning component..please tell me sir ..i am new in slds

    • @sfdcpanther
      @sfdcpanther  5 ปีที่แล้ว

      Hey,
      It completely depends on how you wanted to display the records. If you only want to display the records as List then you can use CSS for lookup record. You need to find SLDS Lookup. Or if you wanted to display the record in the card format then you cand use SLDS-Grid and Lightning card. You will get css for most of your requirement if not then for those use case Style component is in Aura Component

  • @venkata210
    @venkata210 4 ปีที่แล้ว

    When we user c or v name spaces to get variable values?

    • @sfdcpanther
      @sfdcpanther  4 ปีที่แล้ว +2

      We only use v to get the variable/attribute values and use c to get the action either of apex or javascript method

  • @prateekbansal3751
    @prateekbansal3751 5 ปีที่แล้ว

    when i add component in my accound record page.component is not shown which i made, A BLANK BOX IS SHOWN ONLY.pLZ reply asap.

    • @sfdcpanther
      @sfdcpanther  5 ปีที่แล้ว

      Do you meant that component is not available to add or anything else

    • @prateekbansal3751
      @prateekbansal3751 5 ปีที่แล้ว

      here is my controller code-
      ({
      doInit : function(component, event, helper) {
      /* STEP1*/
      var action=component.get('c.getContactList');
      action.setParams({
      accountId : component.get('v.recordId'),
      });
      /*STEP 3*/
      action.setCallback(this,function(response){
      var responseValue=response.getReturnValue();
      console.log('responseValue',responseValue);
      component.set('v.contactList',responseValue);
      });
      /*STEP 2*/
      $A.enqueueAction(action,false);
      },
      doRedirect: function(component,event,helper){
      var eventSource = event.getSource();
      var id = eventSource.get('v.name');
      var navEvt = $A.get("e.force:navigateToSObject");
      navEvt.setParams({
      "recordId": id,
      "slideDevName": "detail"
      });
      navEvt.fire();
      },
      })

    • @prateekbansal3751
      @prateekbansal3751 5 ปีที่แล้ว +1

      no need to reply sir the problem is soved now.

  • @prayagrajpandey9310
    @prayagrajpandey9310 5 ปีที่แล้ว

    i m not getting alert after clicking View Details button
    doRedirect : function(component, event, helper) {
    var eventSource = event.getSource();
    var ide = eventSource.get('v.name');
    alert(ide);

    • @sfdcpanther
      @sfdcpanther  5 ปีที่แล้ว

      Your code seems to be fine please check of there is any other code which is preventing the alert

    • @prayagrajpandey9310
      @prayagrajpandey9310 5 ปีที่แล้ว

      how any other code can prevent the alert.
      i m not able to find such things in my code.

    • @sfdcpanther
      @sfdcpanther  5 ปีที่แล้ว +1

      If you are using any other variable in JavaScript which is not defined then it will not execute other lines

    • @prayagrajpandey9310
      @prayagrajpandey9310 5 ปีที่แล้ว

      {!c.FirstNAme}    {!c.Name}
      {!c.Phone}



      ({
      doInitiate : function(component, event, helper) {
      var action=component.get('c.getcontact');
      action.setParams({
      AccountId : component.get('v.recordId'),
      });
      action.setCallback(this,function(response){
      var responseValue = response.getReturnValue();
      component.set('v.conlist',responseValue);
      });
      $A.enqueueAction(action, false);
      },
      doRedirect : function(component, event, helper) {
      var eventSource = event.getSource();
      var ide = eventSource.get('v.name');
      alert(ide);
      }
      })

    • @prayagrajpandey9310
      @prayagrajpandey9310 5 ปีที่แล้ว

      if u find, please tell me.
      thanks a lot for ur support.

  • @shreyaraut9270
    @shreyaraut9270 4 ปีที่แล้ว +1

    In eventsource.get() when I tried to get name in alert,It's showning me name but when I tried to get the ID it's giving me Id is undefined. I'm following the case sensitivity in apex class and in JS also

  • @chander962
    @chander962 5 ปีที่แล้ว

    im getting error when i want to setcallback function what is the issue

    • @sfdcpanther
      @sfdcpanther  5 ปีที่แล้ว

      What error are you getting??

    • @charlesmutsu9689
      @charlesmutsu9689 4 ปีที่แล้ว

      use setCallback b in lowercase