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.

Filter by
Sorted by
Tagged with
0
votes
3answers
784 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
43 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
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
177 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
770 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
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 ...
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....
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?
0
votes
2answers
2k 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
230 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
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:...
4
votes
1answer
333 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
428 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
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 ...
1
vote
1answer
559 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
84 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
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 ...
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
1answer
162 views

Is it possible to create a tag in visualforce using apex?

I want know if is possible to create a tag html in visualforce using APEX. for example: <table> <!--TR and TD will be generated by APEX--> </table>
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 ...
1
vote
1answer
1k views

How to make apex datatable header fixed [duplicate]

I am using apex data table in apex outputpanel. I want to make the header fixed on scrolling. But I am not able to get the result. Here is my code : <apex:outputPanel styleClass="dataTable" id="...
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, ...
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
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
1answer
727 views

Pagination with Jquery not working [closed]

Following is my code where in i wanted to do pagination for Datatable. <apex:page id="page" standardController="Error_Log__c" extensions="errorLogController_Check_MDSR" sidebar="false" showHeader=...
1
vote
1answer
194 views

Datatable page length selectbox not populating with options when locker service is enabled

When we enable the locker service, then the select box is not populating with the options i.e. no option is visible and its not there in dom as well
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="...
3
votes
1answer
677 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'...
0
votes
1answer
610 views

apex dataTable not applying css

A simple dataTable has no CSS when rendered in Chrome. It just renders plain text. <apex:dataTable value="{!outstandingCoachingTasks}" var="task" id="taskTable" ...
0
votes
1answer
821 views

Bubble sort with Number field in Wrapper Class List

I would need some idea on how to sort a number column in Wrapper class. Wrapper class list is received from Callout and not by querying any SoBject. So cannot use ASC/DESC. Tried out comparable ...
0
votes
1answer
3k views

how to insert ajax result json format into Datatable?

$.ajax({ url: "apex/demopage", success: function(resp) { } }) //and my resp coming as follows [ { "attributes": { "type": "something", "url": "...
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 ...
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 ...
1
vote
1answer
795 views

Passing a string with line breaks from Apex to a jquery datatable cell

So I'm passing the following string structure to populate a jquery datatable cell: rows[i-1].put('Message', rows[i-1].get('Message') + ' *** ' + noteInner.get('Message')); Add this gets ...
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 ...
0
votes
1answer
30 views

How to format the table with custom objects related to Contacts [closed]

By default the table for custom related objects only shows name. You can customize this in salesforce itself, but is there a way to do it through the API? I'm pretty new to salesforce and the apis.
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 ...
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 ...
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 ...
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
3k views

Individual Column Filtering - Show 'All' in drop down and add a label to the filter dropdown

I'm using the following code to add filtering on one column in my datatable: "initComplete": function () { this.api().column(4).every( function () { var column = ...
1
vote
1answer
694 views

Can I wrap the text in a VisualForce dataTable and cause the row to line

I am using apex:dataTable in a VisualForce page in order to display two columns with three rows. The second column is a 'Comments'column. So, the datatable is as such : <apex:dataTable value=...
1
vote
3answers
534 views

JQuery Datatable renders nested Datatable on Visualforce rerender

I've just recently started incorporating jQuery into my Visualforce pages in form of the Datatable plugin. It's worked very well so far, but I'm running into a problem when I need to rerender the ...