Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. 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.

Filter by
Sorted by
Tagged with
7
votes
3answers
4k views

Is it possible to call a Lightning Component from a Javascript function?

I am using a jQuery Datatable inside one of my lightning components, and would like to call another lightning component on click of one of the fields in the Datatable. On click of the "edit" field ...
7
votes
0answers
318 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 ...
6
votes
2answers
3k views

Used jQuery datatable for pagination and got this issue: Collection size 1,378 exceeds maximum size of 1,000

I have implemented client side pagination using jQuery datatable for pagination and got this issue: Collection size 1,378 exceeds maximum size of 1,000. This resultant list of records is from a ...
5
votes
2answers
4k views

Is there a way to filter rows in an Apex:DataTable?

I've been playing around with an Apex:DataTable in the past few days and would ideally like to find a way to filter out rows from the table: Without using a controller and SOQL query to feed in a ...
5
votes
2answers
2k views

Displaying more rows

I have a simple table for displaying users... <apex:page standardController="User" recordSetVar="Users" tabStyle="User"> <apex:pageBlock > <apex:pageBlockSection title="Today’s ...
5
votes
1answer
4k views

Collection size 1,100 exceeds maximum size of 1,000. Limited my query to 100 items but still getting the error

public class Checkbox_Class { List<assetswrapper> assetsList = new List<assetswrapper>(); List<Asset> selectedAssets = new List<Asset>(); Integer x; public ...
5
votes
1answer
26k views

Filter by multiple conditions / drop-downs using DataTables - Table plug-in for jQuery

Using this example from http://www.verticalcoder.com/2014/11/21/datatables-in-visualforce-part-1/ I implemented a Visualforce page that creates a dropdown and filters records in the datatable based on ...
5
votes
2answers
21k views

How to properly use JQuery Datatable sAjaxSource with Apex providing JSON source

I'm trying to use sAjaxSource with server side processing from Apex class which will provide JSON as source. First I was trying simple example, which won't work and won't output any error (not in ...
4
votes
1answer
5k views

onComplete javascript function in actionFunction behaves differently. Why?

i am having four tabs. Each of the tab contains an actionFunction with the same name "methodOneInJavaScript" but rerender attribute have different pageblock Ids to refresh it based on the click event ...
4
votes
1answer
2k 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 ...
4
votes
1answer
3k views

jQuery Datatable disappears once rerender the pageBlockTable using actionFunction. Any suggestions?

i am calling a method to bring the latest data from SAP on click of a button "Refresh" using actionFunction and set to rerenders pageBlockTable. But, after rerendering happens the entire datatable ...
4
votes
1answer
1k views

apex:actionsupport event not firing

I have this sample page created that uses Jquery datatable within that I'm using <apex:actionsupport> and when I click on the hyperlink for that particular column it does not fire the event and ...
4
votes
1answer
334 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:...
4
votes
3answers
2k views

How to submit all wrapper class records using datatables.net jQuery plugin & apex dataTable?

I am using the [datatables.net][1] jQuery plugin with an <apex:datatable /> and I want to submit all records checked from the dataTable meaning i'm using <apex:stylesheet value="{!$Resource....
3
votes
3answers
7k views

How do we dynamically add columns in a datatable

I am trying to build a VF page which dynamically displays the datatable. The fields to be displayed are not known, they need to taken from a custom setting. Here is what i am trying to achieve I ...
3
votes
1answer
2k views

apex:outputPanel not working with <td> elements

I am building a table using apex:repeats and html and I would like to stick with the method I currently have, but I am not getting my table to output correctly. Current code is the following, <...
3
votes
2answers
745 views

replicate salesforce alphabetic sorting feature on list views

Has anyone ever tried to replicate the alphabet sorting functionality you see in the list views? Any ideas on how to achieve this?
3
votes
1answer
689 views

Use jquery data table export functionality in lightning component of salesforce after enabling locker service?

I have created lightning component to use jquery data table. I am using export functionality of jquery data table. But it is not working. It is showing only Export button. When I clicked that it doesn'...
3
votes
1answer
3k views

Initializing Javascript plugin after loading data in lightning component

I am displaying a list of cases in a table and want to use DataTables jQuery plugin to implement sorting, pagination, search on the table. The list of cases is retrieved as part of component ...
3
votes
1answer
549 views

how can you group results in a datatable

I'm not sure if this is possible, but is there a way to group records that are displayed in a datatable in a type of hierarchical structure? Here is the apex code: public List<Deal__c> ...
3
votes
1answer
1k views

Problems displaying custom objects on VF page using <apex:datatable>

I've created a custom object called Beer. I've also created a VF page and Apex controller to simply display the beers via the customer portal site using a high volume customer portal user license. VF ...
3
votes
1answer
1k views

Return string value of id on jQuery datatable server side sorting

Hi I'm working on a server-side sorting using jQuery datatables based on an example from here. Everything works fine bar one detail - the look up fields to the user returns the user id and I'm not ...
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
556 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
149 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 ...
2
votes
2answers
13k views

get data when click on row in pageBlockTable

I have a pop-up display a table with some columns (Name, ID) of Accounts for example, I want to display additional information of the selected account when I click on specific row. I used something ...
2
votes
2answers
3k views

Jquery datatable error pops up when table is loading

I am using datatable plugin in a visualfroce page. Below warning popsup only at the time of page loading and table looks good after closing the alert. Here is the code... VisualForce Page $('#...
2
votes
1answer
1k 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 ...
2
votes
1answer
555 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 ...
2
votes
2answers
2k views

After rerendering, retrieving elements in jquery seems stopped working

I am using apex:dataTable and implemented some code to do the pagination. But instead of using apex:commandButton to go Next and Previous, I am using pure html tags as listed below in purpose of ...
2
votes
1answer
2k views

Sorting apex:pageblocktable

I was wondering if someone has used the PageBlockTableEnhancerADV plugin and was able to implement sorting function for each column. I was trying to use the www.datatable.com sorting plugin but I can ...
2
votes
2answers
5k views

Building a Table of Data in a Visualforce Page

Want to create a table using vf which displays 10 records will be displayed in a single page and i need to click on next(or) previous button to view records and records number(1-10,11-20,..) must be ...
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 /{...
2
votes
2answers
3k 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?
2
votes
1answer
889 views

How to increase the apex datatable width dynamically

I have designed an inline vf page with lightning design css. But my apex:datatable is not responsive. If i increase the resolution it is not fit into the page block . Please provide me a solution . ...
2
votes
1answer
2k views

Dragging and reordering dataTable/ pageBlockTable rows

I have a dataTable which is populated by the a list of Sobject. I need to be able to drag the rows of the table and reorder them. I have a HTMl table code snippet which does this using jQuery. <...
2
votes
1answer
921 views

How to show the multi-line string in wrapper class in a VF page

I am having a string field in a wrapper class which might contain several lines. And I am showing that field in an <apex:dataTable>. The code looks like this: <apex:dataTable value="{!...
2
votes
1answer
354 views

How to make links enabled in my database table updated code

Unable to add links in the table I am having a database table where if i click the record it is going to next page but i want to expand in same page of the table how can i do it?? which tags can i ...
2
votes
2answers
101 views

How to handle events from LWC datatable custom data types

I have created lightning data table MyLightningDataTable with a custom data type. This custom datatable is a child component of MyDataGroup component and MyDataGroup is a child of MyData component. ...
2
votes
2answers
756 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 ...
2
votes
1answer
48 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 ...
2
votes
2answers
2k views

How to add drill-down jQuery datatable in salesforce

I have a requirement Where I need to create a data table in visualforce using jQuery with a expansion / Drill- down button. If i click on the expansion button it should expand the row and show other ...
2
votes
1answer
1k views

Using wrapper class to update multiple objects in dataTable

I'm fairly new to this, so I apologize if this is an obvious question, but I haven't been able to find answers after an extensive search. Thanks in advance for your help! I have a dataTable that ...
2
votes
2answers
4k views

I can't get index of the row in a aura:iteration component in the client side controller

In my lightning component, I have a table with column that has a menu in it. The menu items are for edit and delete. I'm trying to find a way to get the row that was clicked on and so far everything ...
2
votes
1answer
344 views

How to create a command link in salesforce1 to open a record? [duplicate]

I have a vf Page with Data table where record name is a link like this <apex:CommandLink value="{!m.what.name}" action="/{!m.what.id}" target="_Blank"/> This opens in a new tab in web UI In ...
2
votes
1answer
542 views

Filter the Datatable rows [closed]

I am trying to filter the rows of datable. When the user checks the checkboxes in each row and hits Filter Screen, it should just retain the checked rows and remove/hide the un checked ones from the ...
1
vote
1answer
1k 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="{...
1
vote
3answers
7k 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:...
1
vote
1answer
7k views

How to make a Cascading (Dependent) Select List (Drop Down) in a Data Table in VisualForce?

Outside of a data table, a cascading select list (or drop down) is done generically like so: <apex:selectList value="{!parentValue}"> <apex:selectOptions value="{!ParentOptions}" /> ...
1
vote
1answer
642 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 ...