Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
24 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
0answers
16 views

How do I disable a selected row in the datatable lightning? [duplicate]

I have a lightning component with a datatable with static actions: select and deselect. I would like that when I click on "select" this action is disabled. How and where should I intervene in my ...
0
votes
1answer
43 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
23 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
37 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? ...
1
vote
1answer
58 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 ...
0
votes
0answers
22 views

Error message is not displayed on lightning table

I am using the below markup in the lightning table to show the error message. It is able to highlight the field in redborder but fails to show the error message. Is it not possible to update the ...
-1
votes
1answer
42 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
31 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
141 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 ...
5
votes
0answers
91 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
117 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
121 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
70 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
29 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
22 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
53 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
51 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
35 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
136 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
35 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
0answers
210 views

Sorting on Reference and Date field in lightning data table

I am displaying task records using lightning datatable in a lightning component. This table contains task records with 2 columns: DueDate (date) and Related To (Account). When the component is loaded ...
0
votes
1answer
36 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 ...
0
votes
0answers
13 views

Show List field values in VF Page based on Record Type

I have a requirement to show fields in apex datatable based on their record Type values. Like for Record Type 1 => Field 1, Field 2, Field 3. Record Type 2 => Field 5, record Type 3 => Field 1, Field ...
1
vote
0answers
133 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
141 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
220 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-...
3
votes
1answer
358 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
297 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
36 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
3k 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
102 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
436 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
1k 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
0answers
800 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
2k 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
119 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
187 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}">...
0
votes
1answer
869 views

How to get Reference field value for lightning:datatable data attribute

I'm creating the lightning:datatable dynamically and passing the data by querying from contact object, and I have a parent Account.name field in the SOQL query and I have specified the field Account....
2
votes
2answers
1k views

lightning:datatable clear row selections

Does anyone here know how to clear the selected rows of lightning:datatable on a button click or post processing of checked records?
0
votes
2answers
1k views

lightning dynamic component datatable onclick/onrowselection

I have a lightning component that dynamically creates a lightning:datatable when apex returns a list of records. For the most part its working, but im trying to add an onclick event to the row, but ...
0
votes
1answer
190 views

Display the value of a string which looks like Date Time- JSON parameter

I have a JSON string that I get in a response. Example: {"Place":[{"datetime":"2011-03-11 04:46:23","depth":24.4,"lng":142.369,"lat":38.322}]} I get the JSON values in the controller and put it in a ...
0
votes
1answer
67 views

Dynamically create tabs/tables in Visualforce based on field sets

Here's what I'm trying to do: I have multiple Objects that are related to a Contact. In a Visualforce page, I want to create a tab for each of these related Objects; then, in their respective tabs, I ...
0
votes
0answers
34 views

Using Bracket Notation in VisualForce dataTable

Hi all, I am attempting to use bracket notation inside of the value attribute of an <apex:dataTable>, but I'm having some issues. The reference works when it's written like so: <apex:...
4
votes
1answer
296 views

lightning:dataTable not available in Version 41.0 yet(Winter '18)

I was trying to use the lightning:dataTable in my Winter '18 preview enabled sandbox with Version 41.0(shown in snapshot) But unfortunately it fails to identify the base lightning component(lightning:...
0
votes
1answer
332 views

Export a DataTable generated by a function (HTML tables) to Excel

Based on the requirements, i have to generate 3 dataTable using a JQuery function like below and i need to implenet a button to export the result into an excel file. I'm currently using contentType="{!...
-2
votes
1answer
159 views

Datatable Scroller plugin issue with Lightning (AJax)

I am trying to render my Datatable with Scroller plugin in. Data is loading once but when scrolled further shows loading data only. Am I missing something ? I am trying to implement it in Salesforce ...
1
vote
1answer
365 views

rtl direction for a Lightning data table in vertical view

I am new to lightning design system. I am using a responsive data table for both directions: lrt rtl The horizontal table is working perfectly fine in both direction. But in the vertical table ...
0
votes
1answer
49 views

Sorting function not working

In this table sorting function is not working for mail room date,the icon is showing but its not functioning. This is the code.. <th class="slds-is-sortable" scope="col"> &...
4
votes
1answer
1k views

Query for Emails sent in the past month, unsubscribes opens, clicks for each

Ok this seems like it should be a fairly simple query, but I'm not getting anywhere. What makes it worse is that all the data is stored in several tables. I basically need to recreate the monthly ...