Lightning Web Component-05 (lightning-datatable & display list of records)

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ต.ค. 2024

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

  • @HunterAran13
    @HunterAran13 2 ปีที่แล้ว

    Thanks for the clear explanation. Simple and straightforward. I've been looking for this for weeks. Thanks again.

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

    Hi Balaji, Very informative, clear and neat explanation. thanks a lot

  • @chithraprakash8392
    @chithraprakash8392 2 ปีที่แล้ว +1

    Can you upload to navigate to related records from lwc datatable by clicking the name link

  • @SarGuP
    @SarGuP 3 ปีที่แล้ว +2

    How to handle lookup/reference fields in datatable

  • @RecipesandRemediesWithShaz
    @RecipesandRemediesWithShaz 2 ปีที่แล้ว

    I want to display my custom object list of records. Is this the same refference code I should or some other code refferene is there for custom objects?

    • @salesforcetechbook
      @salesforcetechbook  2 ปีที่แล้ว

      You can use same reference code you can use but you have to custom object api name and api name of fileds

  • @conio786
    @conio786 ปีที่แล้ว

    When i go to setup and search for Lightning Component i am able to see the LWC which i created but when i click on Edit Page and try to search for the LWC it is not showing up in the custom tab so that i can drag and drop it , what am i missing ?

  • @jaroddavid1074
    @jaroddavid1074 2 ปีที่แล้ว

    I have a question why is that the text value if my records in the daya table is not translated even though it is translated in the page layout.

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

    Hi Balaji , I have created a lightning datatable with pagination(10 per Page). When I selected first row of the first page, the second page of first row automatically selected. Could you please provide your inputs?

  • @newtech2996
    @newtech2996 2 ปีที่แล้ว

    Data not showing what could be the reason

  • @saurabhdadhich4358
    @saurabhdadhich4358 2 ปีที่แล้ว

    Can you please tell how we can use this datatable in tableau crm and make it interactive with other charts?

    • @salesforcetechbook
      @salesforcetechbook  2 ปีที่แล้ว

      Hi Saurabh I don’t think Tableau CRM supports to include lightning component but it supports internal salesforce objects anyway with multiple features so we don’t need to include our component.

  • @-DSriharshiniDingari
    @-DSriharshiniDingari 2 ปีที่แล้ว

    How can we display recent entries which is in the object in the data table using lwc ?? Please tell me i need this code badly

    • @salesforcetechbook
      @salesforcetechbook  2 ปีที่แล้ว

      Hi
      If you are expecting to display recently created records then just use Order By clause with createddate in soql query as below.
      Eg:
      SELECT Id,name from Account Oder by createddate desc

    • @-DSriharshiniDingari
      @-DSriharshiniDingari 2 ปีที่แล้ว

      @@salesforcetechbook Actually i have a case study . Will you help me in that . I'm a fresher to the company. Can you please tell me how to do the codes please

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

    How can we display the datatable is empty in Javascript

  • @nilkanthugale456
    @nilkanthugale456 2 ปีที่แล้ว

    Hi,
    data not showing in the table. table completely empty

    • @salesforcetechbook
      @salesforcetechbook  2 ปีที่แล้ว

      Hi Nilkanth,
      Check everything once from the beginning

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

    Hi, Very good demonstration. Can u tell how to select current row key value in table and pass to .js function.

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

      Hi Balaji,
      Please check for rowActions in lightning component library documentation on datatable there you can specify row level action and get current row details.

  • @antoninoficalora9895
    @antoninoficalora9895 2 ปีที่แล้ว

    how can i set a field to link the original record in dataTable (like a loockup, i want click on the id of the task and go to the original record task) Please help me

    • @salesforcetechbook
      @salesforcetechbook  2 ปีที่แล้ว

      Hi ,
      Try this once.
      @track data;
      @track columns = [
      {
      label: 'Name',
      fieldName: 'urlLink',
      type: 'url',
      wrapText: true,
      typeAttributes: {label: {fieldName: 'Name'}, target: '_blank'},
      sortable: true,
      },
      { label: 'Phone', fieldName: 'Phone', type: 'phone' },
      { label: 'Industry', fieldName: 'Industry', type: 'text' },
      ];
      @wire (getAccounts) accountRecords({error,data}){
      if(data){
      let records = data;
      if (records.length > 0){
      this.data = records.map( row => {
      return {
      Name : row.Name, urlLink: `/${row.Id}`,
      ...row
      }
      });
      }
      }
      else if (error){
      this.data = undefined;
      }
      }

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

    What should to do to display account records in a picklist using lwc - visual studio code.

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

      Please have a look here
      th-cam.com/video/shzYGhGxe6w/w-d-xo.html

  • @AbhishekSingh-tx6lc
    @AbhishekSingh-tx6lc 4 ปีที่แล้ว

    i am using similar data table to display list of Products on my LWC app which are need to be inserted in Opportunity record?? is this possible with Data table?? like whenever user choose any products using Muli select checkbox then the selected record should be added in Opportunity Object...

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

      Hi Abhisek ,
      Yes it’s possible if you have price book entries associated with selected product and price book

    • @AbhishekSingh-tx6lc
      @AbhishekSingh-tx6lc 4 ปีที่แล้ว +1

      @@salesforcetechbook with {onrowselection} property ? 🤓 nd pass the selected values to apex ? then we can insert selected records... this is what I was thinking currently

    • @AbhishekSingh-tx6lc
      @AbhishekSingh-tx6lc 4 ปีที่แล้ว

      @@salesforcetechbook nd yes.. price book nd products are associated... just need to add products on Opportunity and Quote object.

  • @ShubhamSharma-yb2rw
    @ShubhamSharma-yb2rw 4 ปีที่แล้ว

    How we can place radio button instead of checkbox?

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

      Please use for:each or interator instead of datatable for displaying list of records then you can customise whatever you want.
      datatable has limitations to customise.
      Please have a look into lightning component library for more info on datatable possibilities

  • @Maloka615
    @Maloka615 ปีที่แล้ว

    hi friend, and if i make the field "CreatedDate" ? the date formact