Questions tagged [datatable]

An HTML table that is defined by iterating over a set of data, displaying information about one item of data per row.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
44 views

How to enable/disable button based on user edit access in LWC datatable?

I am building a Lightning Web Component (LWC) that retrieves data from Apex and displays it in a datatable. Currently, the LWC component retrieves all records from Apex, but I want to fetch that the ...
0 votes
0 answers
17 views

Lightning datatable fixed checkbox scroll in aura

is there a way to make the checkbox of a aura lightning:datatable fixed or unscrollable? I finding a way on how to make the checkbox visible after scrolling a horizontal scrollbar to the right if ...
0 votes
0 answers
161 views

jQuery datatable checkbox checked not working

I am trying to use checked. checked property in jQuery datatable based on record selection and want to pass it to server side for further processing. Here is a prototype of what I am trying to do. ...
  • 619
0 votes
1 answer
47 views

Using CSS styling hooks on lighting datatable rows

I want to increase the height of the rows in the lighting (I also want to change the spacing and add shadows)According to the documentation here. But I cant seem to target the row element of the ...
0 votes
2 answers
29 views

about aura datatable cellattributes

I want to approach the following requirement, it is possible to change a valor displayed in a field of the row of datatable regards um determinate valor received, for example if the field has a 1 i ...
  • 1
0 votes
0 answers
37 views

How to concatenate columns of datatable LWC?

I have a table Contacts. Table must contents idName & Name columns.idName column must be closed for editing. Field idName must display a record in format 003XXXXXXXXXXXXXXXName as concatenation of ...
  • 1
0 votes
2 answers
38 views

why is my slds-grid not fitting to page?

I have a datatable inside of a slds-grid so that I can have multiple tables side by side. When I do this though, the LWC does not fit to the page. Is there a tag I am missing that will enforce strict ...
  • 3,329
0 votes
1 answer
33 views

lightning datatable does not show any data, just empty lines

Screenshot attached below: cmp file: <aura:component description="leaderboard" controller="WordshuffleRecordController" implements="force:appHostable,flexipage:...
0 votes
0 answers
113 views

Flow datatable to show data points from different objects/fields

I am trying to use FLOW data table element - https://help.salesforce.com/s/articleView?id=sf.flow_ref_elements_screencmp_data_table.htm&type=5 to display columns data like above screenshot. Given ...
  • 4,661
0 votes
1 answer
177 views

Enable Inline Editing for Lightning Table

I have a LWC Table that is in a custom object and will need to display in the Record Page similar to a Table in Excel. The goal is to be able to enter Quantity and the other columns will not take user ...
0 votes
1 answer
139 views

Why is Refresh Apex not working while Inline Edit in LWC datatable?

Why is refresh Apex not working during Inline Edit? When I edit the record, even though the new value gets updated, but in the datatable the old value gets displayed. How can I fix this? .html <...
0 votes
1 answer
121 views

LWC Custom lookup in custom datatable doesn't extend out of table boundary

I have a custom datatable which contains a custom lookup component. (Custom lookup component is from: https://lwcfactory.com/custom-lookup-salesforce-lwc/) I put it inside of my custom datatable, and ...
0 votes
0 answers
232 views

refresh datatable data in lwc while using imperative method

I have used the Braintree payment gateway to payments on 'Order' object. For this I have created the datatable to fetch the 'TotalAmount' field from the particular record and I'm calling it ...
user avatar
0 votes
1 answer
91 views

Format Date from Datatable selectedRows

In my LWC I have a Datatable with a column for "Date From" - below is the column configuration { label: 'Date From', fieldName: 'werDateFrom', type: 'date', sortable: true, ...
2 votes
0 answers
88 views

Can datatable stripes or selected shading have custom colors?

We have a datatable that has striped shading (slds-table_striped) applied in HTML and selected shading (slds-is-selected) applied programmatically when the user clicks a row. However, both of these ...
  • 805
0 votes
2 answers
1k views

LWC Lightning Data Table - Save All Records(Rows) in the Table upon Save Button Click

I have a requirement to be able to save all records present in the Editable Lightning data table and not just the ones that are edited. Is there a way yo achieve this. I see we can only fetch the drat ...
1 vote
1 answer
70 views

Joining two columns together into a datatable in aura

i have a couple of questions. So, first i have a datatable from a custom obj, where users can add or single email addresses or group of emails (like a mailinglist). There are two columns, one for ...
  • 13
2 votes
1 answer
1k views

Creating Multiple Data Table for list of Records using LWC

Can anyone tell me how do I create multiple data table using single lightning data table in my html and iterating over with template for each with the list ? I am looking at something like this: ...
  • 45
0 votes
0 answers
138 views

What data types do not support inline editing in the Datatable Lightning Web Component?

In the lightning-datatable LWC documentation it is stated that inline editing is available for "some data types". I have reviewed the documentation and can't find which ones do not support ...
  • 135
0 votes
0 answers
135 views

Missing Picklist values in LWC Datatable

The whole component works perfect - only picklist field values are missing. Additionaly after clicking on a pen - the field is moved down. The values are not visible. Do you have any idea what I am ...
2 votes
1 answer
528 views

How can I display response data from apex controller in dataTable?

I want to display data that I'm getting from API response in a datatable. The APEX method returns JSON in this format: { "data": [ [ "765919758146423601", ...
  • 25
1 vote
2 answers
177 views

Sort lightning datatable by default

My sort function works fine, but I the table should be sorted by default. How can I sort the table by date (dateOut) by default? CONTROLLER doInIt : function(component, event, helper) { component....
  • 29
0 votes
0 answers
692 views

Javascript datatable - Row ID's not being picked up after pagnation

I am creating a data table which has an onclick event for 3 columns. When clicking any of the columns on page 1 everything works as expected. If I use the pagination to go to page 2 then the onclick ...
1 vote
0 answers
267 views

How can I display the hierarchy of my custom objects in a Visualforce page using a datatable?

In advance of posting this question, I have attempted to use maps and wrapper classes. I've already made several attempts for the past two months using the suggestions on this forum and the SF ...
1 vote
1 answer
125 views

How to format a number so that dot appears in the thousands?

I have a datatable defined as follows: <lightning:datatable data="{!v.mydata }" columns="{!v.mycolumns}" keyField="id" hideCheckboxColumn="true" ...
  • 25
0 votes
1 answer
2k views

How to delete row in lwc datatable and corresponding object

I have a datable with PermissionSetAssignment objects and I need to delete the record selected from user but when I click delete nothing happens. Here is my code: import { LightningElement, wire, ...
0 votes
0 answers
39 views

If a checkbox is checked then display Primary along with the Name/Title

I am working on a lwc datatable and this is the current position: LWc component is placed in the grant contract object from which a lookup is given to grant object. Here I have the primary contact ...
  • 25
0 votes
2 answers
515 views

Convert checkbox true value to checked symbol

Hi all I am working on a lwc datatable and I have placed a checkbox named Ischecked It currently displays the true/false value in the datatable. Is there some way instead of this true value I can ...
  • 25
0 votes
0 answers
278 views

Print Datatable data LWC

I have a data table in LWC component. I want to print the data of that data table. how can I implement this? I've tried window.print(); but this prints the whole window. anyone knows how can I ...
0 votes
1 answer
2k views

Conditionally disable button in LWC Datatable

I am trying to conditionally disable a button within a LWC Data Table. I have seen similar posts, however none have offered a solution. I am trying to enable or disable the button that displays within ...
  • 35
1 vote
1 answer
2k views

LWC data table not refreshing after save

I have a datatable lwc that displays data returned from an apex method. When I edit the data and hit on save , the data table doesn't refresh automatically and the cell value remains the same although ...
0 votes
1 answer
2k views

LWC Datatable - Add an action button on top left corner

Context : I created my own table that haves a component in the top left corner, that toggles a window with a checkbox group to show or hide some columns. The problem : I now have to port my table into ...
0 votes
1 answer
143 views

Button in datatable is not working with switch case block (lightning component)

Here is my code <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes" access="global" controller="LC_SearchController" > &...
0 votes
0 answers
886 views

LWC datatable wrap text column header

How can I make the column header in the LWC datatable to be wrapped as well ? wrapText:true only applies for the rows <lightning-datatable key-field="Id" data={...
  • 549
0 votes
0 answers
281 views

conditionally highlighting text in aura lightning datatable

I am trying to conditionally highlight text on an aura datatable with edit access. I cant seem to get the css to conditionally show the highlighted text. At present it is not possible to use a LWC as ...
1 vote
1 answer
177 views

Aura Component Datatable not showing data

*** Component *** <aura:component controller ="VehicleController"> <aura:attribute name="VehicleSelected" type="String"/> <aura:attribute name =&...
0 votes
1 answer
2k views

Generate CSV , EXCEL file dynamique with lightning web component

I have a problem with my code , I want to generate a file ( CSV / XLS ) , but with my code I get nothing , I don't now what is the problem . Some help please . <a target="_self" class=&...
0 votes
2 answers
82 views

Customize datatable

everyone! I'm a newbie in Salesforce, and I have a problem: I need to create datatable similar to that: But the only one that I could do is that(I used a standard lightning-datatable, also Usage ...
0 votes
1 answer
892 views

Unable to Get Lightning Datatable Columns in Inline Edit Event

I am new to building a Lightning Web Component and I have what feels like a basic validation using the row's data for inline editing, but I have been unable to figure out. I have a simple table with a ...
  • 3
0 votes
1 answer
870 views

Error "Sorry to interrupt. This page has an error. You might just need to refresh it" in lwc while doing rowaction in datatable

i created an two lwc component in one component i am doing search for an accounts and in another component where i am getting the account list and displaying in data table.while doing row actions in ...
0 votes
4 answers
496 views

Records not appearing on account dataTable

I am not able to pull any of the related records to the account dataTable. I want to see the related records for Trade_Lanes__c on the data table, but nothing shows up. Below is my code. Apex ...
0 votes
1 answer
230 views

How could I avoid nested for each in a HTML (LWC component)?

I'm starting to create a modal like in this picture, but I only got it doing nested for each (line 42 and 43 of the .html) for the table. That's not good practice, right? So how could avoid it? I ...
  • 123
1 vote
1 answer
492 views

Datatable LWC tbody in another component

I am trying to use another component in tbody for a custom data Table in LWC when i use /iterate records in tbody , it is renderinng fine and giving expected result Single Component <template> ...
1 vote
1 answer
940 views

How to wrap cell text properly in datatable in LWC?

I'm struggling with the issue, where cell text in the datatable in LWC isn't wrapping correctly. It obscures the cell from the next column in some cases. I didn't applied any formatting for that table ...
  • 11
2 votes
1 answer
359 views

How to refresh datatable after saving form in Visualforce with CustomController

I'm trying to create a apex:form with an input section where several fields are rendered and the user can save the record. Below this form, is an apex:datatable. I want to rerender the input fields ...
  • 1,380
1 vote
1 answer
1k views

How to copy data from Excel to LWC lightning datatable? [closed]

With the given requirement to allow users to paste content into multiple cells of a LWC lightning-datatable, where the user has previously copied those values from an Excel sheet, what would be the ...
0 votes
1 answer
392 views

How to create and call a JS function from another LWC?

I want to create a utility class that has this two methods for order a datatable column: function sortBy(field, reverse, primer) { const key = primer ? function (x) { return ...
0 votes
1 answer
967 views

LWC Data Table not getting refreshed on click of delete button

LWC Data table is not getting refreshed on delete of a row. code below: import { LightningElement,wire,track,api } from 'lwc'; import distProfileShareList from '@salesforce/apex/...
  • 9
0 votes
1 answer
1k views

LWC - dynamically update a datatable column to editable

Just need some help to dynamically update a datatable column to make it editable. In my column definitions - I need to make a stock level column editable based on the results of my @wire call. Stock ...
  • 133
0 votes
2 answers
5k views

Is there any option to remove header checkbox of Lightning datatable?

I just want to know is there any way to remove/hide/disable the select all checkbox of header in lightning Aura Component, if there is any way please tell...

1
2 3 4 5 6