Skip to main content
The 2024 Developer Survey results are live! See the results

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 vote
1 answer
2k views

Data table - Apex refresh is not working in lwc

Apex Refresh is not working, Can any one please help me on this. import { refreshApex } from "@salesforce/apex"; JS @wire(getParentGuardian, { EnrollmentId: "E0008" }) enroll({ data, error }) { ...
SK2889's user avatar
  • 921
5 votes
1 answer
3k views

LWC is it Possible to Load the JQuery Plugin Datatables in a Lightning Web Component?

Edit: Solved! I'm struggling to load the infamous datatables.net jQuery plugin into my Lightning Web Component. Even using the most basic example, I haven't had any luck. It seems like there are a ...
Isaac L's user avatar
  • 174
4 votes
1 answer
4k views

lightning datatable (AURA or LWC) can automatically fetch records from database?

Is it possible to fetch records automatically from database just by mentioning columns? Also can we use relationship fields to get data without any processing? For example CreatedBy.Name ? Other ...
salesforce-sas's user avatar
4 votes
1 answer
6k views

Lightning Datatable - Errors Attribute

Could someone provide a working example of a lightning:datatable that utilizes the 'Errors' attribute? I want to validate fields in a datatable and flag the cells that need correction. According to ...
Brad C's user avatar
  • 55
4 votes
1 answer
8k views

How to control the height of datatable dynamically in LWC?

I wish to control the height of a datatable based on the number of records present. If there are less than 10 rows, the height of the datatable should be just enough to show all rows. There should ...
Koustubh's user avatar
  • 1,203
2 votes
1 answer
5k 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
  • 73
1 vote
1 answer
332 views

Ligntning datatables actions menu hidden

On Lightning Datatables the actions menus is hidden when the table has few rows (1-3 rows). See attached screenshot for more info. Any workaround till its fixed is greatly appreciated.
Rajesh's user avatar
  • 11
6 votes
1 answer
5k views

Query for Emails sent in the past month, unsubscribes opens, clicks for each

Ok this seems like it should be a fairly simple query, but I'm not getting anywhere. What makes it worse is that all the data is stored in several tables. I basically need to recreate the monthly ...
Stan Alachniewicz's user avatar
5 votes
2 answers
2k views

Displaying more rows

I have a simple table for displaying users... <apex:page standardController="User" recordSetVar="Users" tabStyle="User"> <apex:pageBlock > <apex:pageBlockSection title="Today’s ...
dublintech's user avatar
  • 4,283
3 votes
1 answer
4k views

Initializing Javascript plugin after loading data in lightning component

I am displaying a list of cases in a table and want to use DataTables jQuery plugin to implement sorting, pagination, search on the table. The list of cases is retrieved as part of component ...
DCBoy's user avatar
  • 901
3 votes
0 answers
176 views

Table with independent rows

I need a table showing sObjects within independent rows. I need to perform actions on single rows without even taking care about all the other rows. Reason: Some rows might be invalid (having ...
itsmebasti's user avatar
  • 6,487
2 votes
1 answer
1k views

How to show the multi-line string in wrapper class in a VF page

I am having a string field in a wrapper class which might contain several lines. And I am showing that field in an <apex:dataTable>. The code looks like this: <apex:dataTable value="{!...
Lance Shi's user avatar
  • 13k
2 votes
1 answer
30k views

Date formatting to MM/DD/YYYY in LWC datatable

How do we format the date in datatable like MM/DD/YYYY in LWC data table. In my datatable column type is defined as date, value display in table as Jan 10, 2020. Expecting in MM/DD/YYYY format. { ...
SK2889's user avatar
  • 921
2 votes
2 answers
14k views

get data when click on row in pageBlockTable

I have a pop-up display a table with some columns (Name, ID) of Accounts for example, I want to display additional information of the selected account when I click on specific row. I used something ...
user3003810's user avatar
2 votes
1 answer
3k views

Sorting apex:pageblocktable

I was wondering if someone has used the PageBlockTableEnhancerADV plugin and was able to implement sorting function for each column. I was trying to use the www.datatable.com sorting plugin but I can ...
Carlos's user avatar
  • 1,881
1 vote
4 answers
26k views

How to display a checkbox field using ligntning:datatable?

I'm trying to display a check box field using lightning:datatable component. Here is the component markup. <aura:component> <aura:attribute name="invoices" type="Invoice__c[]"/> <aura:...
Riyaz Usman's user avatar
1 vote
1 answer
5k views

How to create collapsible/expandable rows in a table based on user action in lightning

I need to add collapsible/expandable rows based on an icon click. My code is effecting all the rows. But I need it for the specific rows where the user clicks on icons to expand or collapse. Below is ...
Subbarao Muppaneni's user avatar
1 vote
1 answer
854 views

Is there a way to insert a <div> right below a datatable row?

I need to put a div right below a lightning:datatable row. Is there a way ?
Danilo Fucuhara's user avatar
0 votes
2 answers
4k views

Programmatically / Automatically Save Inline Edits on Datatable [closed]

I have a <lightning-datatable> where I want the user to be able to make edits to it, and those changes are automatically saved so that when I call getSelectedRows(), I get all the updated data ...
jbyrd's user avatar
  • 661
0 votes
1 answer
4k views

LWC Datatable - Get the Row Number when editing a column

As the title says, has anyone tried to get the row number when editing a column as a draft value (Quantity in the image reference below). So for example, if I add "2" to the Quantity column ...
Fred's user avatar
  • 51
0 votes
1 answer
191 views

Display Relationships Between Lists on Visualforce Page

I have a list of strings. I am using these strings to populate three other object lists by querying for this string. For every iteration I am adding the lists populated to a List of lists. Ex: ...
S.B.'s user avatar
  • 2,111
0 votes
3 answers
6k views

Add bold style to last row in Lightning Data table

I am using lightning:datatable tag to display set of rows in the UI. A few columns are numeric data. I need the last row to be summarized values of all the data set. I don't find any standard ...
Alex's user avatar
  • 5