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
2answers
38 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
31 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
314 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
139 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
176 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
877 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
90 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
238 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
388 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
2answers
737 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
1k 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
807 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
1k 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
45 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
4answers
13k 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
241 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
1k 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
3k 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
4k 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
4k 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
180 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
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....
3
votes
2answers
6k 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
3k 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
271 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
163 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
48 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
346 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
507 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
257 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
886 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
157 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
3k 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
1k 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
222 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
99 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 ...
1
vote
1answer
2k 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
1k 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
128 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
779 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
239 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
382 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
887 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
940 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
1k 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
4k 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
59 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
1k 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 ...