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
0 votes
0 answers
22 views

Date range filter using JQuery DataTable with Salesforce as server side

I have a requirement where I need to put all the TXN__c records in a table where I have more than 50,000+ records that's why I use server-side. On load I can now get what I want. My next challenge ...
Fer Catapang's user avatar
0 votes
0 answers
30 views

Flexcard Datatable not showing icon

I am trying to add an icon to the flexcard datatable cell. There is an option to choose the data type as an icon. but I just can't make it work. Sample data I used: { "flexcard_datatable":...
Lee Fang's user avatar
1 vote
1 answer
59 views

LWC extract values from Apex Map<String,List<Sobject>>

In my LWC I am using an Apex Class to return a Map<String,List> containing lists for Leads and Contacts. I want to iterate this Map and use the individual lists in separate datatables. I have ...
Jeff Callahan's user avatar
0 votes
2 answers
51 views

How can I pass children fields to a datatable?

I'm looking for a way to make my datatable display records from my current object and children records. The query i'm running is: List<Account> accounts = [ SELECT Id, Name, ...
Frans's user avatar
  • 29
0 votes
1 answer
119 views

Fetching Related Records from flow Data Table

I'm trying to display a chosen value from a data table's lookup field, but it's coming up as null. I've checked the permissions, and this is related to the User lookup field, where I'm trying to get ...
Krishnamurthy's user avatar
0 votes
1 answer
72 views

Picklist field is disabled in LWC Datatable

I have a picklist field which I am fetching data from Apex. Now the scenario is I have to fetch all the data and I'm able to see those values in console.log but the picklist field looks greyed out and ...
Shyamala Varadharajan's user avatar
0 votes
1 answer
63 views

how to get values which is inserted in a cell of lwc datatable

<template> <table class="slds-table slds-table_cell-buffer slds-table_bordered" aria-labelledby="element-with-table-label other-element-with-table-label"> ...
Raja's user avatar
  • 3
0 votes
0 answers
174 views

How to add another table inside a datatable when clicked on a row - LWC

I have a requirement to open another table on click of a lightning datatable's row accordion.I already have the datatable code present in which I have used Basic Lightning datatable.Now the ...
Hira Khan's user avatar
-1 votes
2 answers
506 views

Data table in screen flow salseforce

I added data table to my screen flow, and when I have one item the selected icon look like a radio button , I want that it will be like a check box, how to do that? (The flow called from button on ...
user136207's user avatar
1 vote
0 answers
105 views

How to include nested datatable with custom columns

Currently, I'm displaying the aggregate list of opportunities in a data table along with a custom button named "View Details" as a column. When someone clicks this button I want to display ...
Pavan tej's user avatar
  • 1,439
1 vote
0 answers
377 views

Salesforce Flow - How to use In Operator with Data Table element selected Rows

I am using Flow element Data Table I have scenario like, two picklist values are added on the screen e.g. Status and Type of Object, and also the comment field. When the user clicks on next I will ...
herr's user avatar
  • 133
0 votes
0 answers
602 views

LWC Datatable Inline Edit for Picklist

I have create an LWC datatable component to handle related record and Edit the records once displayed. I have one picklist field and i need to render as picklist during inline edit. I have implemented ...
Arun patro's user avatar
0 votes
0 answers
80 views

How to download a file in a lightning datatable using the download icon

I'm hoping someone can provide me guidance on this since I haven't been able to find an answer. I have created a lightning datatable which displays delete and download icons on each row. I am able to ...
Joe's user avatar
  • 13
1 vote
1 answer
335 views

Force to hide numeric column in LWC Datatable

I have a datatable where it's possible for the user to be able to inform the amount of products he/she wants to purchase. The problem is that as I'm making some columns editable (editable=true), the ...
dsd's user avatar
  • 121
0 votes
0 answers
870 views

Data Table component in a Screen Flow does not display all fields from a Variable

I'm using 2 Assignment elements to populate a Quote Line Item variable. There are a number of decision required for Sales Price, hence the 2nd Assignment element. In the debug the fields in the ...
Dragos Zelezneac's user avatar
0 votes
0 answers
50 views

Inline editing lightning-datatable bar

I have a lightning datatable that has columns editables, I wanna to suppress the bottom bar and with a button get the values, but it's not working, because only the last column that was filled remain ...
Alexia's user avatar
  • 81
0 votes
1 answer
1k views

Omnistudio Datatable link to current record

I have a datatable in a flexcard where I show information from the Account object, example: Name, Account Number etc... the user wants to click on the account name in a row of the table and be ...
Eduardo Secolin's user avatar
-1 votes
1 answer
293 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 ...
Akshay Gupta's user avatar
0 votes
0 answers
40 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 ...
Rwwwwwr's user avatar
  • 15
0 votes
0 answers
1k 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. ...
CRM Guy's user avatar
  • 619
0 votes
1 answer
413 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 ...
Sandeep Daniel's user avatar
0 votes
2 answers
67 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 ...
GRC7's user avatar
  • 1
0 votes
0 answers
156 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 ...
Kiril's user avatar
  • 1
0 votes
1 answer
103 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 ...
Olivia's user avatar
  • 3,431
0 votes
1 answer
74 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:...
RandomNickname23's user avatar
0 votes
0 answers
958 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 ...
SfdcBat's user avatar
  • 4,761
0 votes
1 answer
4k 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 ...
FrancoDD's user avatar
0 votes
1 answer
539 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 <...
user275494's user avatar
0 votes
1 answer
380 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 ...
missinghome's user avatar
0 votes
0 answers
364 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
258 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, ...
Jeff Callahan's user avatar
2 votes
0 answers
171 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 ...
Chuck's user avatar
  • 877
1 vote
2 answers
3k 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 ...
Ashfaq Mohammed's user avatar
1 vote
1 answer
146 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 ...
Simon's user avatar
  • 13
2 votes
1 answer
3k 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: ...
Ajay's user avatar
  • 45
0 votes
0 answers
393 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 ...
ApexNewbie's user avatar
2 votes
1 answer
1k 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", ...
Maria's user avatar
  • 25
1 vote
2 answers
713 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....
FenTro's user avatar
  • 29
0 votes
0 answers
984 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 ...
Ryan Gemmell's user avatar
1 vote
0 answers
484 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 ...
Veronica Towers-Dioso's user avatar
1 vote
1 answer
380 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" ...
BlueSac's user avatar
  • 25
0 votes
1 answer
5k 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, ...
Ивелина Иванова's user avatar
0 votes
0 answers
66 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 ...
PJ98's user avatar
  • 25
0 votes
2 answers
1k 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 ...
PJ98's user avatar
  • 25
0 votes
0 answers
459 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 ...
mayur pardeshi's user avatar
1 vote
1 answer
4k 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 ...
JLadage's user avatar
  • 53
1 vote
1 answer
3k 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 ...
JackSparrow's user avatar
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 ...
ShinProg's user avatar
0 votes
1 answer
253 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" > &...
Lê Anh Khoa's user avatar
0 votes
0 answers
1k 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={...
osos9's user avatar
  • 559

1
2 3 4 5 6