Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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.

49 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
0answers
309 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 ...
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 ...
3
votes
0answers
550 views

How to make table align correctly Salesforce Lightning design system Javascript Table

I was able to append my data, and now the data does not align correctly with the column headers as well as it is not sortable (in the code I have sortable enabled. and the check boxes do not align ...
3
votes
0answers
146 views

Table with independent rows

I need a table showing sObjects within independent rows. I need to perform actions on single rows without even taking care about all the other rows. Reason: Some rows might be invalid (having ...
1
vote
1answer
56 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
0answers
221 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.
1
vote
0answers
291 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 ...
1
vote
1answer
144 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 ...
1
vote
0answers
99 views

Datatable issue with Input Text in VF Page

I got in to a use case where I have to navigate to a VF page (from a button click on case layout) to enter some custom data of a custom (custom__c) object. Once user enter data it has to populate in ...
1
vote
1answer
996 views

Jquery Datatable pagination checkbox

EDIT: I just wanted to expand little bit more give you guys more information as possible so my question is more towards the jquery datatable so when you go to different pages my checkbox is retain ...
1
vote
1answer
450 views

Matrix table on Visual Force page , struck with Apex:Repeat

I am trying to create a Matrix table something like below I have a problem in looping the apex repeat. I have a MAP defined like MAP<Priority,MAP<Status,integer>> , I am unable to iterate ...
1
vote
0answers
558 views

Errors when using DataTables in Lightning Components?

We're using jQuery datatables without our components but are getting TypeError: $(…).DataTable is not a function errors a lot of times when we load the page (not every time though). In our component ...
1
vote
2answers
257 views

this is my wrapper class on visual force page showing Unknown property 'OpportunityStandardController.OppList'

This is my class public class Displayprods1 { public List<OpportunityLineItem> proList{get;set;} List<OpportunityLineItemwrapper> OppList {get;set;} public Displayprods1(...
1
vote
2answers
2k views

How to retain same page in jquery data table?

I am using jquery data table for the list view. In the list i have Action section, this section contains the 'Edit' option for that row. When selecting the Edit button on record that in 2nd page of ...
1
vote
0answers
889 views

DataTable collapsible rows in salesforce

We are trying to use dataTable collapsible feature https://www.datatables.net/examples/api/row_details.html The problem is that we don't want to use VF remoting and we are looking for something that ...
1
vote
0answers
793 views

apex:outputfield on hover display value using tooltip

I have a datatable with css overflow : hidden. Now for big digit numbers, I want for a particular column, 15th here, enable on hover show value using tooltip. The hover part is working fine and ...
1
vote
0answers
199 views

allow user to select columns from data table on visualforce page

We have lots of visualforce pages where we display search result to user in a data table. These data tables have large number of columns. We need to provide user functionality so that they can select ...
1
vote
0answers
495 views

Apex DataTable showing only one row

I have an aggregateResult query which returns the aggregates(MAX) of few fields and I display that in apex:dataTable in the Visualforce page. This is fine. Now I need to run this aggregateResult ...
1
vote
1answer
2k views

Inline editing DataTable in Lightning Design

I'm currently working on a DataTables in Lightning Design. I basically want to implement the Inline editing feature. I found it bit hard to implement this with real data within Apex:repeat. Can ...
0
votes
0answers
8 views

Lightning Data Table

In Lightning datatable border is not showing in columns after scrollable. <div class="slds-border_left slds-border_right slds-border_bottom slds-scrollable" style="height:37rem" ondblclick="{!c....
0
votes
0answers
11 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
0answers
26 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
23 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
0answers
38 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 ...
0
votes
1answer
55 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 ...
0
votes
1answer
534 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 ...
0
votes
1answer
460 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
25 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
0answers
39 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
279 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 ...
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 ...
0
votes
0answers
108 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 ...
0
votes
1answer
806 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-...
0
votes
1answer
425 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
2k 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....
0
votes
1answer
78 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
40 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:...
0
votes
1answer
575 views

SAQL- How to group by AccountID and report the first value in a table?

I am currently looking to de-duplicate data in a dataset. Reason being, I need to group together all accounts reporting on a criteria, so we may then sum and total the values of each account to get an ...
0
votes
0answers
85 views

VFP scrolls - Set Focus/landing on the last edited record instead of setting it to top record in the scrollable table

I have a scrollable table with some account records. Once any record is edited and save button is clicked/rerenders the focus auto scrolls to top of the Scrollable Table. I am trying to set the focus ...
0
votes
1answer
281 views

Create a table in VF page

So I have a monthly payment $ value pulled from a field "payment__c" and its increases by 10% for every month for 12 months. i want to pull this in the child object and display that using a table in ...
0
votes
0answers
989 views

How to implement Column Resizing in a Data Table in Lightning Component?

Is there any kind of JS function that we can leverage to allow resizing of a column in lightning component? Using 3rd party jQuery libraries are too funky with Locker Service, they would work one day, ...
0
votes
0answers
281 views

salesforce bug? <apex:facet> doesn't render within <apex:repeat>

I am having to plot matrix type chart where I have dynamic data. Here is the code <apex:dataTable value="{!lstTableRows}" var="rows"> <apex:column > <apex:facet name="...
0
votes
1answer
58 views

No paginiation after reRendered Datatable

So after I have added the reRender to the commandButton I do not see the pagination and if I remove the reRender the pagination works, after spent good amount of time and could not able to figure out ...
0
votes
1answer
107 views

visualforce data table displays previous values while using filter?

I am using Visualforce data table to display account records.I am also using alphabetical filter to display account records based on the alphabet selected .while doing so if I press "A" it results in ...
0
votes
1answer
192 views

how to use immediate attribute in data table command button?

I tried to create account records using datable.Its worked fine when the command button is .But using immediate button in the command button (i.e)its not working VF <apex:page controller="...
0
votes
0answers
140 views

Jquery view issue

I am using jquery data table in my vf. when the page loads for the first or when we refresh the page the vf performs normally and the data table is visible as normal. However when i perform some ...
0
votes
0answers
2k views

VF Checkboxes for Selecting Records

I've a problem and can't get solution. I'd like to make some operations on some fields of selected records in a visualforce datatable, but it doesn't work. Controller: public class AccountToMove{ ...
-1
votes
1answer
452 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 ...
-2
votes
1answer
220 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 ...