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
24 views

Is there any option to remove header checkbox of Lightning datatable?

I just want to know is there any way to remove/hide/disable the select all checkbox of header in lightning Aura Component, if there is any way please tell...
0
votes
1answer
21 views

How to show data from SObject variable(SobjList) using Apex pageBlockTable? The variable has SOQL query Result. Please find below my Apex and VF code

I want to display field names along with records of Project__c object on my VF page but I am unable to do that; Visual Force Page code: <apex:page controller="WorkOnFields"> <apex:...
0
votes
1answer
31 views

on click action for specific column in data table

How to have on click action for specific column in data table in lwc. consder this as example, js: columns = [ {label: 'Opportunity name', fieldName: 'opportunityName', type: 'text'}, {label: '...
2
votes
1answer
48 views

Datatable suppress-bottom-bar attribute - what's the use?

In the <lightning-datatable> documentation, there's an attribute suppress-bottom-bar which "If present, the footer that displays the Save and Cancel buttons is hidden during inline editing.&...
0
votes
2answers
113 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 ...
0
votes
0answers
21 views

Link to record === Instead of displaying a text (String)

I'm trying to add a datatable component to a flow in order to display knowledge articles. I've downloaded the component online. Unfortunately the component doesn't give me the possibility to access my ...
1
vote
2answers
28 views

datatable not showing changes when modifying properties in data

I'm trying to achieve a row action which copies the values of the columns of the previous row, into the row I trigger the action. Seems simple enough, but for some reason, when updating the properties,...
1
vote
1answer
161 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 ...
1
vote
1answer
35 views

PDF generation failed. Check the page markup is valid. Issue with datatable and columns tags

When rendering a visualforce page as PDF, I'm running into the error above often and have been unable to figure out what the error is. Through process of elimination, I have been able to narrow down ...
0
votes
1answer
139 views

Add pagination in a lightning: datatable [duplicate]

I have received the documentation and I have not found the option to add a page to the table. https://developer.salesforce.com/docs/component-library/bundle/lightning:datatable/example
1
vote
1answer
249 views

How can I add a hyperlink to a record of a custom object in LWC?

I currently have a custom list view LWC that displays a list of custom objects and its fields. I want to have a hyperlink on a specific field that takes the user to the record page. So, the html for ...
4
votes
1answer
290 views

LWC lightning-datatable not accepting cellAttributes in the first column

Lightning-datatable is not accepting any cellattributes in the first column. All other columns are formatting correctly. Is this a limitation, or am I doing something wrong? (Irrelevant code removed ...
0
votes
1answer
108 views

JQuery Datatable in LWC responsive not working

I am using JQuery Datatable in LWC (https://datatables.net/extensions/responsive/examples/) which i can use both in desktop and mobile version . I am trying to achieve the below responsiveness where ...
0
votes
1answer
49 views

ignore a specific row when sorting in lightning-datatable

So, I'm displaying some information on a lightning-datatable. The last two columns, show two different kind of prices, so for each page in the datatable, I add a last row at the end to show to total ...
0
votes
1answer
70 views

Is it possible to Get clicked row value and know whether row is selected or not in lightning:datatable

In lightning:datatable, is it possible to know whether the row is checked or unchecked if yes, then which row using keyfield? In lightning datatable I have modified the onrowselection event to ...
0
votes
1answer
48 views

Can I output the data to a datatable in my case?

I have a datatable in which I want to display the data in a certain way, namely: I have an Exchange_Rate__c object that has certain currency rates as fields: USD__c, CAD__c, EUR__c, GBP__c, as well as ...
0
votes
0answers
18 views

Selected Values getting wipped out on Search lightning Data table

I have a lightning component, inside which I have a datatable to display products and input box for searching products in data table. Now if I first select any products in datatable and then search ...
0
votes
1answer
65 views

I want to render two data table based on condition..both data table are present in the same lightning web component!

here I have one product data table without checkbox,this is the default one,but when I navigate from opportunity page to product page to add products to opportunity,to add product I need to render ...
0
votes
1answer
276 views

LWC open hyperlink record from datatable

I have created a custom datatable and my goal is to open the records directly as a subtab from the table via hyperlink. The field is clickable, but it's opening on a new tab and is blank .. This is ...
0
votes
1answer
172 views

LWC: Datatable not getting correct row number on Action

I am not able to retrieve the correct line of the datatable on my LWC. Ive followed several searches but apparently Im still missing something. Here is the HTML: <lightning-datatable ...
1
vote
1answer
2k views

Inline Editing field needs to be required field in Lightning Data table - LWC?

I have a lightning data table displaying a set of Records. Also, it have inline editing set true for one column called Price. Is it possible to have the Price column as Required while editing? My Cmp ...
1
vote
1answer
43 views

Search data based on user input

I have a datatable which is populated by a JSON object, what I want to do is this: when the user types a letter I want to display all the values that have that letter, but I still don't know how to do ...
0
votes
0answers
269 views

How to get selected Rows draft value in LWC?

I have created a data-table where it contains nested data now if i click first rows first time ill get the drafted values by clicking any of the rows in second time. I'm not getting the drafted value ...
1
vote
1answer
396 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
21 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
26 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
51 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
143 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
25 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
33 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
240 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 ...
5
votes
1answer
3k 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
28 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
38 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
113 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
121 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 ...
1
vote
1answer
744 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
29 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
1answer
436 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
14 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=...
2
votes
2answers
2k 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
1k 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
1answer
893 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
2k 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
229 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
580 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
476 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
494 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", ...
2
votes
1answer
2k 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
2answers
84 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. ...

1
2 3 4 5