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
2answers
40 views

Hide save button in lightning table in LWC

html: <lightning-datatable data={addressData} columns={columns} onsave={handleSave} key-field="id"></lightning-datatable> Js: handleSave(event){ let ...
0
votes
0answers
34 views

I can not show numbers(Quantity) in lightning datatable. All other fields are showing properly except number. Any solution please?

component.set('v.columns', [ {label: 'Product Name', fieldName: 'Name', type: 'Text'}, {label: 'Total Quantity', fieldName: 'Total_Quantity__c', type: 'number'}, {...
0
votes
1answer
30 views

Hide button inside Lightning Datatable based on row value

I have an LWC datatable. I am using a Apex class to get Custom data and display them using datatable. I have delete Button for each row. I want to hide the delete button for particular Rows. (If ...
0
votes
0answers
52 views

lightning:datatable Multi-Level/ Nested

I'm looking to see to create a multi level lightning data table in LWC. (ie) The parent object has a school Information, If selected a sub level(down arrow) opens and you can see the child records ...
0
votes
3answers
65 views

Data table to getAttribute value in JS LWC

Get attribute key value returns null value. Can anyone please help me on this? <div class="slds-p-top_x-large"> <lightning-datatable key-field="Id" data={studentdata} ...
1
vote
1answer
29 views

Data table In line edit - page got refreshed

When i click of Inline edit Data table page got refreshed in LWC with Visualforce page. Can anyone help me what I'm missing below. HTML: template> <lightning-record-edit-form record-id={...
0
votes
1answer
53 views

Data Table with Inline Editing — On click of Edit button Page got refreshed LWC

On click of Data Table with Inline Edit, whole page got refreshed, Not able to find the issue. Can anyone please help me on this? ( LWC using in Visual-force Page) JS: import { LightningElement, ...
1
vote
1answer
16 views

Datatable clumping all user information in 2 tables

I'm iterating over a list of objects in my visual force page. The goal of the iteration is to create 2 different tables Name | Stage | Recommendation Bob. | 1st. | Pass Questions | Answer | ...
0
votes
1answer
53 views

Apex refresh is not working in LWC

Apex Refresh data-table is not working on LWC. Can anyone please help me what I'm missing below. HTML: <div class="slds-p-top_x-large"> <lightning-datatable key-...
0
votes
0answers
19 views

Lightning component Jquery data table: After create and edit user need to stay on the same page

I am using Jquery data table in my lightning component. We have a EDIT Button to edit the record. Once the edit is done(suppose i am on the 2nd page), i want to stay in the same page(2nd page). But, ...
-1
votes
1answer
57 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 }) { ...
0
votes
1answer
25 views

How to dynamicall assign errors to lightning:datatable errors attribute

I created a CSV parser that takes any combination of Salesforce Object.Field and displays the parsed results in a lightning:datatable. Documentation for lightning:datatable provides the following ...
0
votes
2answers
85 views

Display data from multiple Column to Multiple Rows in LWC

I have a custom Records which has follwing Columns. Father First name, Father Last name, Father Email, Father Cell, Mother First name, Mother last name, Mother Email, Mother Cell Guardian FirstName, ...
2
votes
1answer
48 views

lightning-layout stretches inner datatable

I have the following code in a web component: <lightning-accordion-section name="Products" label="Products"> <lightning-layout> <lightning-layout-...
2
votes
1answer
55 views

Why is 'select' checkbox in aura lightning:datatable squashed up against next column?

My aura lightning:datatable 'select' checkbox is squashed up against the next column. The 'select all' checkbox in the header is not even visible, though it does look to be there, underneath the ...
0
votes
1answer
84 views

Pass Value from Lightning Web Component to Create Page

I'm an admin trying to work on my first LWC and would appreciate any help on the following requirement - We have a LWC datatable for the child object (Preferences) and when the user clicks on the ...
1
vote
1answer
70 views

How to fix a left column of a manual table in LWC

I have a manual table in LWC Playground I want to fix the first left column of the table, I tried cell fixed, position sticky and the below CSS but still no luck .table tr td:first-child { ...
0
votes
1answer
207 views

How to set typeattribute in LWC datatable?

{label:'FCU Trigger', type: "button", typeAttributes: { label: 'Initiate', name: 'initiate', ...
0
votes
0answers
92 views

How to use an image in an Analytics data table column

I have a column in an Analytics datatable where I've selected to Show Data As Image. But all rows show a broken image icon. It's the same question as was asked here: https://success.salesforce.com/...
0
votes
0answers
21 views

How to preselect rows of Datatable exactly matching on filter?

If have a Lightning datatable that shows products matching all products starting with a value entered by the user in a filter field (so product%) After hitting the Search button the datatable shows xx ...
4
votes
1answer
407 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 ...
1
vote
0answers
459 views

How to fetch input field value in JS in LWC [closed]

in the below html code I am iterating 2 lists linItemData(11 records) and studyData(20 records) <table class="slds-table slds-table_cell-buffer slds-table_bordered"> <thead> ...
1
vote
1answer
321 views

Inline editing datatable - show edit button on hover (LWC)

My column entries look like this: <td aria-selected="true" class="slds-cell-edit" role="gridcell"> <span class="slds-grid slds-grid_align-spread"> <span class="slds-...
1
vote
1answer
133 views

How to edit cell value of lightning data table programtically

I have a lightning data table with a inline editable field. It working perfect as expected when I do manual edit and save. What I need in addition to the existing behaviour is, I need to edit the ...
2
votes
2answers
759 views

How to handle events from LWC datatable custom data types

I have created lightning data table MyLightningDataTable with a custom data type. This custom datatable is a child component of MyDataGroup component and MyDataGroup is a child of MyData component. ...
1
vote
1answer
770 views

Sending data to lightning-datatable lwc custom column type

I have a custom datatable with a custom column type containing a button, and a modal that pops up after the button is clicked. I am having trouble figuring out how to send my datatable data to the ...
1
vote
1answer
76 views

displaying the lightning data in CSV file proper format [closed]

i am downloading the lightning data in CSV file as per the below screenshot Now the issue is whenever i am trying to expand the Name column,the data is getting restricted to the name column only....
0
votes
1answer
66 views

Hyperlink a part of Text in Data-table column

I am trying to emulate the below view in LWC. The description value "Click here for Email Template" should only be hyperlink not the entire value, the value is passed from the apex class. Can anyone ...
0
votes
1answer
123 views

How to make a dynamic datatable with dynamic column count?

How to make such datatable, that will fetch all the columns in my custom object with particular data type and, when I add a new field to my object, the table will automatically fetch this field and ...
0
votes
0answers
16 views

Save flattened calculated field to object

I have a flattened datatable column like this one simplified: helper: newLine.amount = newLine.price__c * newLine.qty__c; Now i need to create a new record on the SF Object with this "amount" value....
0
votes
1answer
61 views

Lightning-Datatable: Link to Case

Context - I am attempting to replace a legacy Visual Force table with a Lightning-Datatable. The only drawback I'm facing is that I cannot make the Case number in the table a link that jumps to the ...
0
votes
0answers
56 views

Why does a datatable that is nested inside a recordEditForm call onSubmit() on every inline edit?

As per the title, I have a datatable component nested inside my recordEditForm to display and edit some data (and never submitting, thus the suppressBottomBar="true"). The weird thing is that whenever ...
0
votes
0answers
27 views

How to add breaks in apex:datatable

I have an apex:datatable that lists opportunityLineItems. I want to render the columns based on the value of the lineitem field Product_Type__c and then add a break in between each group. I am able ...
1
vote
2answers
135 views

Passing parameter in getRowActions

JS Noob here. I am currently following lwc datatable documentation to create a datatable with actions. The constructor has an argument as 'data' which I want to pass in getRowActions method. The '...
2
votes
1answer
1k 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 ...
1
vote
0answers
99 views

NavigationMixin : pages persist when going back

So I have this setup where I have a searchfield that, upon button click, navigates to a results screen where there is a lightning datatable. Now, the problem is that if I go back from the results to ...
2
votes
1answer
2k views

Lightning Datatable Picklist and Lookup Work Around [duplicate]

I am aware that lightning:datatable does not support picklists. The approved attributes are: action boolean button button-icon currency date date-local email location number percent phone ...
0
votes
1answer
166 views

Search & Column Sorting with SLDS Data Tables

I am trying to make a basic, external app with the Salesforce look-and-feel using Salesforce Lightning Design System (SLDS). Notably, the app includes data tables so I want to use the Data Table ...
2
votes
2answers
2k views

Re-Evaulating Selected-Rows in Lightning-Datatable When Data Changed

I've been stuck on this issue for a few hours now and don't seem to be getting any closer to resolving it. I currently have a Lightning-Datatable with pagination that renders 20 rows at a time. When ...
0
votes
1answer
48 views

CSS for Excel Accounting Format?

I am working with a data table in Visualforce, and I am trying to get the columns with currency values to format similarly to how the account format looks in Excel, where it will align the dollar ...
1
vote
2answers
449 views

Cannot populate data in lightning data table

<aura:component controller="DisplayconsClass"> <aura:attribute type="Contact[]" name="consList"/> <aura:attribute name="mycolumns" type="List"/> <aura:handler name="...
0
votes
1answer
78 views

Is it possible to use navigateToSObject with data tables

I am using below to convert Subject column to hyperlink as below {label: 'Subject', fieldName: 'linkName', type: 'url', typeAttributes: {label: { fieldName: 'Subject' }, ...
0
votes
2answers
955 views

Lightning Web Components lightning-datatable detect “select all” checkbox

When using the lightning-datatable component, by default each row has a checkbox beside it (unless so explictely specify hideCheckboxColumn to false). So when a row is selected the onrowselection ...
2
votes
1answer
2k views

Lightning Web Components inline editing Datatable - data update issue

I am starting with Lightning Web Components and I've tried to use data table. For some reason I can see data being changed in table - but in js controller my variable remain unchanged. js import { ...
0
votes
1answer
1k views

Is there any way to disabled a row in a data table

I have a following data in a List, From the following data I will create the native lightning datatable and it looks like follows 0: {Name: "Test Contact 2", Person__c: "a0j4E00000BY96GQAT"} 1: {...
0
votes
1answer
26 views

Merge lists to get a good overview

I have two objects (one custom object "sales", two standard object "opportunity" and "account") and I have three lists with aggregateresults. Can I merge these lists into one list? The goal of the ...
0
votes
1answer
1k views

Limit of records to show in <lightning:datatable> [duplicate]

I am new to lightning datatable, Using soql query we can get up to 50000 records, but is there any limit to show these records using lightning:datatable in lightning component ? If yes then how many ...
1
vote
1answer
337 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 ?
0
votes
1answer
1k 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 ...
2
votes
1answer
69 views

Rerender not loading new records for datatable

I am displaying custom object records in a datatable. I modify the data using the Salesforce API (i.e. outside the current page), and then when the user clicks a button I want to rerender the ...