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
0answers
22 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 ...
0
votes
2answers
38 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 '...
0
votes
1answer
83 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 ...
0
votes
0answers
26 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 ...
1
vote
1answer
64 views

Lightning Datatable Picklist and Lookup Work Around

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
38 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
1answer
152 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
33 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
110 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
46 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
1answer
429 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 ...
1
vote
1answer
875 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
325 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
24 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
720 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
146 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
0answers
36 views

Is it possible to set a value (in table) dynamically through lightning javascript event?

I have list of object records displayed in a table on lightning component. I would like to dynamically set a field value when another field value is changed. I should be showing the set value to the ...
0
votes
1answer
650 views

Can we add bold style to last row in Lighitng Data table??

I am using "lightning:datatable" tag to display set of rows in UI. Few columns are numeric data. I needed last row to be summarized values of all the data set. I don't find any standard summary ...
2
votes
1answer
36 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 ...
1
vote
1answer
285 views

Datatable inline lookup editing

As showed here we can easily implement an inline editing of a data table. Now I will need to have this editable field to behave like a lookup field and not a normal text field. Is this possible? ...
2
votes
1answer
943 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 ...
-1
votes
1answer
400 views

Lightning table header and body are not aligning

I have a component where the data is displayed using html data table aura:iteration. However the header is not aligned with the body. I have tried with many slds css but no success. Can anyone pls ...
0
votes
1answer
66 views

Line Break in Visual Force Page Table

i did already a little research and could not find the right answer to it. I have a visual force page with tables for an invoice template. In the details for line items, i have the description field, ...
1
vote
1answer
974 views

jquery datatables in lightning component

I have a lightning component which uses jquery datatables.User needs to filter the datatable using Stage picklist and date field.Based on the user selection(Stage and Date) then datatable needs to ...
7
votes
0answers
303 views

Lightning Datatable Action Violates Content Security Policy directive

I'm using Lightning Datatable with Static Actions and following the guide in Developer Salesforce.com Lightning Datatable component guide but getting the following error (seen in the Chrome developer ...
0
votes
1answer
245 views

jQuery DataTables Checkboxes in Visualforce Page

I am trying to manipulate multiple row selections using jQuery DataTables checkboxes plugin.But having issues in getting selected rows from page to controller ...getting c.selected = false in ...
1
vote
1answer
816 views

Insert a link in lightning datatable Column Value

I am trying to insert a link in a result column of lightning:datatable Below is the code snippet : Datatable Code: <lightning:datatable data="{! v.contactList }" columns="{...
0
votes
2answers
88 views

VisualForce - Data Table - Floating Headers

I can't figure out if the Script itself isn't working or if I am doing something else wrong with my visualforce page. My goal is to get the table headers to stay visible but every single approach I ...
0
votes
2answers
30 views

add two numerical values from soql and show on visualforce page

I want to add actTotalAmount and purTotalAmount and show it on the visualforce page. Right now I have another fuction to show actTotal and purTotal on visualforce page, but I couldn't find a way to ...
1
vote
2answers
27 views

Calculating grand total of child object's field

public static List <Pricing_Lookup__c> getGrandTotal(){ List<Pricing_Lookup__c> calculateTotal = [Select Name, (Select Name, Unit_Price__c From Activity_Lookup__r) From ...
1
vote
0answers
190 views

lightning:datatable table headers are disappearing in iPad safari browser

I am using lightning:datatable, the table headers are disappearing in iPad safari browser when I try to resize the coloum headers by draging. Please help me in resolving this.
0
votes
1answer
83 views

Need help writing query for 3 custom objects in master detail relationship

I'm trying to create a table on Visualforce page like this. Each pricelookup's description has it's own activity and purchase info. Custom parent object - Pricing_Lookup__c Custom child object - ...
0
votes
0answers
80 views

Compare Table experts needed!

Description: I have a table like below, the Price Change row which contains '300' for 2018 and '600' for 2019 is the sum of values of all products per year. Price Change is a column defined by the ...
1
vote
1answer
390 views

How to iterate sub query on lightning page

I want to display the contact names and opportunity names where AccountID is not null, I am able to display the contact names, can someone please help me to display the opportunity names too? Below ...
0
votes
1answer
49 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: ...
0
votes
1answer
63 views

Show table headers in a row

I have below table where the headers and data are showing perfectly but in a same column. Instead I need to show them in a proper table format. Unfortunately, I am unable to do so. Can someone please ...
1
vote
0answers
253 views

Popover section on top without resizing table

Current I have a table and want to display a popover whenever the user mouseover's a comment section in a table. What happens when the popover executes, it resizes the table to accommodate it by ...
0
votes
1answer
283 views

remove footer for lightning data table

I want to remove the standard buttons "Cancel" and "Save" in a lightning dataTable when a record is edited. I want to retrieve the values for a Wrapper Class through the onchange event when the record ...
0
votes
1answer
697 views

Add in-context search to Record List lightning component

I've created the AccountList component from Trailhead below to display a table of data. However, I modified mine slightly to display case data. https://trailhead.salesforce.com/en/projects/slds-...
2
votes
1answer
503 views

How to rename 'Checkbox' column in lightning 'datatable' component?

Description: Lightning datatable component allows to place checkboxes within the rows. Checkbox column on top contains a select all checkbox by default. Question: Would it be possible to put a ...
0
votes
3answers
679 views

Get field value in apex:repeat row, when checkbox is selected

I'm trying to populate an amount field at the top of a table when a row's checkbox is selected, this is only for UI purposes and does not need to be written to the DB. The checkbox itself is a field ...
0
votes
1answer
41 views

Table with navigable values in Salesforce Lightning

I am new to Salesforce Lightning and I would like to make a table that has values that I could click on, and open the object details in another tab. In salesforce Classic, I did this way: <apex:...
1
vote
3answers
6k 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:...
0
votes
1answer
159 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.
0
votes
2answers
729 views

lightning:datatable link to sObject

Do you have to use the url data type to navigate to a sObject like how it is on list views? For example, this is the data table which I want to refactor to use the base datatable lightning component:...
1
vote
1answer
2k 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 ...
2
votes
1answer
2k views

Why Lightning:datatable typeAttributes do not support neither tooltip nor title for url?

I want to use lightning:datatable component to display list of records where the first column is the URL with label and tooltip consisting of record name and value directing to record URL in format /{...
3
votes
2answers
3k views

Hyperlinking in Lightning:Datatable

Currently when I use the lightning:datatable and then a column of type url. I cant seem to bind a actual event to the url.. My Code is currently as follows Component <lightning:layoutItem ...
1
vote
1answer
138 views

Move “actions” dropdown in Lightning:datatable in front of other page elements

I'd like the "actions" dropdown menu on my lightning:datatable to appear above the component and other page elements so that it doesn't force the user to scroll down to see all of the options. Does ...
0
votes
1answer
371 views

How to sum values in pageblock table

I try to get sum of values in a column to use it in controller. Vf Page: <apex:page showHeader="true" sidebar="true" controller="PNLSplitController" doctype="html-5.0" action="{!onloadmethod}">...