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

LWC variable not defined

I am creating a LWC data table and I would like that when the user click on "Edit Table" The fields in the table will get the inline edit true import { LightningElement, wire, api } from '...
0
votes
0answers
19 views

Aura Component: Datatable removing selection when adding new items

I have a datatable with infinite scroll, that is, whenever we scroll all the way down, it gets more data and add to the table. The problem is: when I add more data it deselects the lines that were ...
0
votes
1answer
21 views

How do I get a datatable component to update column actions menu?

I have a datatable column with custom actions defined like this: statusActions = [ { label: 'Show Unconfirmed Leads', name: 'unconfirmed_leads', }, { label: 'Show All ...
0
votes
1answer
23 views

lightning:datatable component - hiding Save and Cancel buttons replace save with custom save — generate json from oncellchange

I have built an LWC which utilizes a lightning datatable. I want to replace the standard save and cancel with my own custom lightning buttons. I am using suppress-bottom-bar which hides the standard ...
0
votes
0answers
26 views

Hide lightning buttons on click on Pencil (Edit cell) Datatable LWC

I am struggling to hide Save/Exclude Selected Hospitals buttons on click on Pencil Icon. I need to use OOB save/cancel button of datatable on click on edit and hide the lightning buttons.
0
votes
0answers
20 views

Lightning Datatable render with new datasource and existing selectedRows after imperative apex call

I have a use case where i need to render the datatable with the new datasource using imperative apex call and also with the already selected rows but the table is not rendering with the selectedRows.. ...
0
votes
0answers
24 views

Adding and removing objects by checking if it already exists

I am using a base component(datatable) of a managed package which has group-by option to display below data. [ { "callSubReason": "SubReason One one", ...
0
votes
0answers
92 views

LWC Datatable Picklist Dropdown is hiding below

I have been trying so long to solve this issue. I am extending the LWC native datatable with picklists. The dropdown is hiding below in the bottom and is not properly visible. Please suggest me a way ...
2
votes
1answer
723 views

LWC - Extended lightning datatable with picklist is not working

I have use case where i need to show the values in the picklist format in lightning-datatable for which i am extending the lightning-datatable component.The datatable shows a drop-down box but i am ...
0
votes
1answer
18 views

Visualforce Table - Iterate Over Two Different Objects with Same Column Headers?

I need to create a data table that contains Task and Opportunity data, but puts them together in the same table that uses days of the week for column headers. Example below - I've never seen a way to ...
0
votes
0answers
12 views

Selected checkbox value to indicate row selection in apex:pageblocktable is not working

Visualforce Page Code: <apex:page showHeader="true" sidebar="true" standardController="Property__c" extensions="PropertyObjectEnrichmentExtension"> &...
0
votes
1answer
29 views

Salesforce - Lightning Database with lazyload and Sorting

How can we use lightning data table lazy load functionality with sorting of columns? As Lazy load only will bring certain no of records at a time then sorting actually is working on those set of ...
0
votes
0answers
54 views

How to handle save in custom lightning Datatable with lookup fields

We have worked on a cuistom datatable in https://live.playg.app/play/lookup-in-lightning-datatable-lwc . Lookup Fields are not being Auto-populated .Save is also not working . We need some help , We ...
0
votes
0answers
15 views

Lightning Datatable : Winter 21 update : Url attribute in datatable columns are reloading the complete datatable

We have developed a Service console application and we have used lightning datatable in many instances. In Service console, before the Win21 release, If we used to click on the hyperlink, the table ...
1
vote
1answer
207 views

how to show currency symbol instead of 3-letter code in LWC datatable column?

I have a datatable with a currency column. My column definition is: summaryDataColumns = [ { type: "text", label: "Summary", fieldName: "sumName" ...
0
votes
1answer
23 views

how to get the values from the custom lightning table on the click of the user

i have a custom lightning datatable and if user click on the particular item of the table on the particular row then it should fetch that particular value and store in the track property of the lwc ...
0
votes
0answers
303 views

Lightning-datatable horizontal Scroll bar disappears after editing a cell - lightning web component

I am trying to use the built-in lightning-datatable LWC component. My data has a lot of columns, therefore the horizontal scroll bar appears on my table. When I edit a cell, however, the Cancel and ...
0
votes
1answer
213 views

LWC lightning datatable custom labels

How to use custom labels inside label of LWC Lightning datatable. I'm unable to find any resource or documentation to use custom label instead of HardCoded values inside js controller of LWC cmp. Any ...
0
votes
1answer
13 views

How to add if on rerender to select any template

i have a page visual force: <apex:dataTable value="{!listItems}" var="item" id="theTable" rowClasses="odd,even" styleClass="tableClass" columns=...
0
votes
0answers
28 views

How to refer to dynamic field names in lightning web component data table?

I am quite new to LWC programming, and I am being asked to develop an application which I think is relatively "advanced", and I am seeking some help about how to achieve it. The program is ...
0
votes
0answers
20 views

All Updated records data is not sending from VF page to controller in JQuery Datatable Pagination

i have same issue as below questions asked earlier by others.link provided below. There is no answer to these questions.Could you please help me on this. Record changed data is not sending from VF ...
2
votes
2answers
751 views

How to clear draft values in LWC datatable after save

I am working on an LWC datatable application in which I must call an Apex method imperatively, passing it the JSON string of the event.detail.draftValues which it uses to add or update some Sobject ...
0
votes
1answer
395 views

How to prevent <lightning-input-field> from changing the column width of Custom Datatable in LWC

I have developed an LWC which uses custom datatable. In that datatable, If I use <lightning-record-edit-form> and <lightning-input-field>, the column widths change. Please see the ...
0
votes
0answers
48 views

need to resize table automatically, want to resize according to input

<apex:page standardController="Case" showHeader="false" sidebar="false"> <apex:includeLightning /> <apex:includeScript value="/lightning/lightning....
0
votes
1answer
301 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 ...
4
votes
1answer
1k views

LWC Datatable - Turn Custom Lookup Field Value in Editable Datatable to Draft Value for Mass Update

As you know, datatables do not support lookup field. I've built a search lookup field that queries an object, and added that to the LWC datatable as a custom type. The id of the selected record (...
0
votes
1answer
135 views

Conditionally disabling an editable field in lightning Datatable

I have a requirement that an editable field in Datatable should be editable on certain conditions for example lets say, i have a field Disable_Action__c which is a formula field , when this field ...
0
votes
1answer
322 views

Lightning DataTable, adding duplicates and deleting the wrong row

I have 2 lightning data tables, table A is populated by all active products, table b is populated with the selected rows from the first. table a is filterable, and I'd like to persist the selections ...
-1
votes
1answer
286 views

How to hide empty columns in HTML Table

So i've got the table below, i want columns to be automatically removed upon the page loading, i should say i am rendering it as PDF. How would i remove the columns that have no data including the ...
0
votes
1answer
217 views

How to use the Time attribute in LWC table

How do we format the Time in datatable like HH:MM:SS in the LWC data table. In my datatable column type is defined as Time, expecting the date only format HH:MM:SS. { label: "Start Time", ...
0
votes
1answer
848 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
122 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
29 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
55 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
769 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
95 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
92 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
537 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
26 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
220 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
167 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. ...
1
vote
0answers
312 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
208 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
20 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
359 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
1answer
188 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 ...
2
votes
1answer
4k 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
750 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
48 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
959 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 ...

1
2 3 4 5