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
1answer
31 views

how to make the icon on a data table clickable in lwc?

We are trying to extend the data table in lwc where in earlier we are using the default row actions but now we want the icons to be included like edit, delete. But I am not sure on how to make them ...
0
votes
1answer
14 views

How to display component response status and Jobid in data table of lightning component

here I got response like {Id, value} from git server .Now i want to display that in a data table like below. Ex: JobID Status,1237 pending, 1245 success I got expected response of type ...
0
votes
1answer
18 views

Visualforce Email Template apex:facet not showing in result

I am having an issue wherein the apex:facet header for my apex data table is not showing up in the result. I am fairly certain this is due to be adding a filter for the record type in the column. ...
0
votes
0answers
25 views

Lightning datatable not showing values

I'm using a datatable, i think the syntax is ok but the data doesn't show up. here is the HTML: <aura:attribute name="listBaPriveCmp" type="List"/> <aura:attribute name=&...
0
votes
1answer
58 views

I want to show custom help text on mouse hover to the icon in the column header of the datatable in lwc

I am working on lwc datatable. I want to show onmousehover to the column header title, custom helptext or tooltip.
0
votes
0answers
17 views

Lightning Component : Data Table iterating a JSON : Map<string,string> : Value of the Map is a JSON string [duplicate]

I am trying to parse a JSON string and iterate it over to create a data table on the Lightning Component. The MAP<String,String> is a response from the apex class, which i have parsed and ...
0
votes
1answer
23 views

One of the column values not getting displayed in data table

Need help in trouble shooting the Data table related issue: Issue statement: I have used two custom objects with lookup relationships in apex code which is used in .js file. The field information ...
0
votes
1answer
28 views

client side sorting in dynamic html table aura component

I have created a lightning component that iterates over column data and row data and in between this iteration i am calling my other lightning component that basically generates data for the table. ...
0
votes
2answers
23 views

How can I make field mandatory inside datatable based on checkbox input

I need to make amount and mode field mandatory if corresponding checkboxes are checked. <Body class="slds-scope" style="width: min-content"> <apex:form id="disp"> ...
2
votes
1answer
62 views

refreshApex in Lightning Web Components is not working

In Custom Object i have new tab with lightning Input, On Save the Form value we need to Display the data in data table. Data is saving in my object, But Data-table is not refreshing with new data. I'...
0
votes
1answer
45 views

Unique Identifier for Lightning-input inside custom Data table

I have a custom data table and I wish to validate Desired_quantity for each row but I'm having trouble with creating a unique class for lightning-input component and fetching it using queryselector. ...
0
votes
0answers
70 views

lightning web component Inline Editing datatable for Multiple Rows issue

I have inline edit datatable component for a opportunity related object. I am facing an Error when i click 1st click and clicking multple clicks records are updating. Error message is "unable to ...
0
votes
0answers
34 views

How to implement check and uncheck in checkbox using true/false value?

I am getting true/false values from my data and want to implement it as checkbox. Checked for true and unchecked for false. I using the render function to implement it and then setting checkbox value ...
0
votes
1answer
17 views

How to get the URL to a specific record page in render function?

I am trying to generate the dynamic URL to redirect to record but it appends the id to the current page. For example, I am getting--> https://nishant-aishwarya-1234-dev-ed.lightning.force.com/...
0
votes
1answer
42 views

RowAction in LWC datatable to redirect to external site

I am using rowaction with type as 'action' in lwc datatable. Clicking on which should redirect to external site. First I tried using window.open in the handlerowaction method as below handleRowAction(...
0
votes
0answers
32 views

refreshApex in lwc is now working — datatable

I have a custom page with vertical tab iterating the values, On click of each Tab, will display the data in data table based on the tab. In my data table i have custom button in a column, On clicking ...
0
votes
1answer
422 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. { ...
0
votes
2answers
116 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
38 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
132 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
304 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
241 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
40 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
199 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
17 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
102 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
26 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
118 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
46 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
600 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
122 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
77 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
275 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
182 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
593 views

How to set typeattribute in LWC datatable?

{label:'FCU Trigger', type: "button", typeAttributes: { label: 'Initiate', name: 'initiate', ...
0
votes
0answers
211 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
22 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
832 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
640 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
471 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
242 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
1k 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
1k 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
111 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
111 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
206 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
21 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
96 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
78 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
2 3 4 5