Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [table]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
150 views

LWC: Table Body Colspan Not Matching Table Header Span When The Table Body is in a Child Component

I'm working on an LWC to render a report in a Lightning Page & have come across an issue in my HTML that when I have a Table Header in the parent component and table body in the child component. ...
RedQueries's user avatar
0 votes
0 answers
96 views

lwc component that shows the records of a parent and shows the editable child object records

When I try to edit the January field I get the error :"aura_prod.js:51 Uncaught (in promise) TypeError: e[vr] is not a function" I'll show you the code <template> <lightning-card ...
Luca Pompili's user avatar
1 vote
2 answers
195 views

Downloaded data in excel format using LWC in salesforce. When i open the file it shows warning prompt: File format and extension do not match

Hi, Currently iam implementing functionality of downloading data using LWC by using following code: let doc = '<table>'; // Add styles for the table doc += '<style>'; doc +...
Murali AS's user avatar
0 votes
0 answers
34 views

Trying to show FullPhotoURL on a visualforce table

On our org we're capturing a referral person (Referral_Person_Opp__c) on the Opportunity Object - this field is a look up on the User Object. I have created a simple table to show the top 5 referral ...
Timmy's user avatar
  • 11
0 votes
1 answer
380 views

LWC Conditional render to show a field in a data table if that field has value

I'm trying to show or not show the content of field in a data table depending on if it is null or empty etc. What am I doing wrong? <th scope="col"> <div lwc:if={isNotes}&...
Darrell W's user avatar
0 votes
1 answer
659 views

How do I expand a table column that has a LWC Component inside

Trying to figure out a way of getting the expandable section below the main row - expand to be full width of the table. I am having issues with it just fitting within the first column. Are there ...
Darrell W's user avatar
0 votes
1 answer
83 views

How to check few table rows by default when page loads

I have a table with checkbox column which will allow me check all/few rows as required on an LWC component. After selecting required rows user clicks a button and the page gets navigated to second LWC ...
sfdcDev's user avatar
  • 67
1 vote
0 answers
85 views

How to do word breaks inside a Visualforce page that is rendered as PDF?

Hi now I made a table using table-layout: fixed. However, the page is displayed beyond the box, rather than passing the table line as shown in the image. I searched these parts and tried using word-...
phphll's user avatar
  • 11
0 votes
0 answers
353 views

How to add another table inside a datatable when clicked on a row - LWC

I have a requirement to open another table on click of a lightning datatable's row accordion.I already have the datatable code present in which I have used Basic Lightning datatable.Now the ...
Hira Khan's user avatar
1 vote
0 answers
674 views

Data in text block is not showing as designed (as table)

Design: Preview: I have designed the data in a tabular format in text block of omniscript but in the preview section or real time it is showing as random texts. as like images. Please provide a ...
Goku. JR .junior's user avatar
0 votes
0 answers
104 views

Lightning Table Fixed Headers will not center

I am referencing below article in my code, applying fixed headers. When I do this I'm not able to center align the column headers or change the height of the header row. I have tried class="text-...
ThatGuy's user avatar
  • 85
0 votes
1 answer
973 views

html2canvas with a sticky header causing image problems

I am using html2canvas in my Salesforce app to export a table as an pdf, but I am having problems with the header becoming misplaced when I scroll. The table is on its own div on the page and I tried ...
Vicky's user avatar
  • 1
0 votes
0 answers
279 views

How to set header height in visual-force pdf and issue in content over laying in pdf

My issue is table content overlap in second page please guide me to increase header height ========================== My issue is table content overlap in second page please guide me to increase ...
Ravi Mavenprofserv's user avatar
0 votes
1 answer
2k views

Lightning-accordion not collapse

I have a lightning-accordion that works outside a table, but when I tried to put inside a column in a table it doesn't collapse, it's possible to do that? <table class="slds-table slds-...
Alexia's user avatar
  • 83
0 votes
1 answer
346 views

How to pass row information from a table to another table LWC

I'm trying to pass the information of my table after click on add button, the component should pass the value of each cell in the selected row to a child component that is a table true. i'm actually ...
juan pablo correa's user avatar
0 votes
0 answers
239 views

Merging Duplicate cells in SLDS table on multiple columns

I am stuck while trying to create logic for merging duplicate cells coming from apex call on load. It is a simple SOQL on sobject. I understand from my research on internet that rowspan is to be used ...
Rakshit Segwal's user avatar
0 votes
1 answer
82 views

Visualforce page not re rendering table after delete button is clicked?

I'm basically trying to re Render the page after the delete button is hit so that the user doesn't incounters and error message saying that the record was already deleted. The table functionality is ...
Nacho Zve De La Torre's user avatar
0 votes
2 answers
1k views

how can i calculate total value in a table row with javascript in visualforce page?

i have a table with 3 column in visualforce page there is one input value and others are output value. When input value is changes, input value and second column value must be multiplied and the third ...
merve-bulut's user avatar
0 votes
1 answer
76 views

Conditional Formatting Visualforce Cells

Hello there, I am attempting to re-create the lightning stage path with branching stages. I built a Visualforce table with the bare-bones of these stages, but am running into trouble when I go to add ...
Grey Consultant's user avatar
1 vote
1 answer
108 views

Dynamically Adding Rows not Inserting Records - Null JSON

I Have created a LWC to dynamically add rows and insert the records, but the insert is failing with the error below message :"null input to JSON parser" stackTrace: "(System Code)\...
Jeff Callahan's user avatar
0 votes
1 answer
2k views

LWC - Perform Data validation on Table upon entering value on Table column and populate other columns

In one of my requirements I am having a empty table with just one blank row having some 5 columns. I can enter new record/data on the rows. On one particular column, when the user enters the data on ...
Ashfaq Mohammed's user avatar
0 votes
1 answer
4k views

Account Related Contacts in same Custom table in LWC in accordian manner

I have designed an Account and its Contacts relationship in lightning Collapsible and Accordion style where data should should be in same table columns. The data is not populating correctly since it ...
Arun Kumar's user avatar
1 vote
1 answer
229 views

Conditional apex output field

I have a data table in a visualforce page where I would like to display "nothing here" if my sObject field is empty, but if there is something written inside i would like to display it. i ...
MashaMasha's user avatar
3 votes
0 answers
446 views

LWC Responsive Tables In Light DOM

I'm trying to build a div-based responsive table in LWC using Salesforce's new "Light DOM" feature. Unfortunately the table won't render properly, it looks like this: Following is the html-...
MtheD's user avatar
  • 31
2 votes
1 answer
487 views

For each in HTML not working

I am new to SF. I am trying to do something like this: https://www.forcetrails.com/2019/11/how-to-create-slds-table-with-cell.html, but my table data is not being rendered... what is wrong in my for:...
Alice Ricci's user avatar
0 votes
1 answer
1k views

Extra space at bottom of table when adding sticky header

I have a table of data using the < table> element inside a < div> element. The table needs to scroll vertically as needed and the header is to remain in place. Nothing too fancy! Looking ...
Tom Ansley's user avatar
1 vote
1 answer
3k views

How can I put a horizontal scroll bar in this table?

When I try to view the mobile version of this table, I don't get the horizontal scroll bar. What should I do to view the scroll bar or make it responsive? I already tried to add: <div class="...
Cline's user avatar
  • 111
0 votes
1 answer
944 views

Update custom LWC table if record is updated

I am new to LWC and here is my problem: I have table and values needs to be updated once the record fields are updated. Here is the code: 1.Apex Class public with sharing class LWCShowSpendigs { ...
Nomad's user avatar
  • 15
2 votes
1 answer
10k views

Why does the radio button has checked = false , but is selected on screen? [duplicate]

Why when I select a radio button option do I have checked = false ? i guess it's why checked and onchange are working at the same time...but i don't know what to do because I need both. EDIT: I tried ...
Cline's user avatar
  • 143
1 vote
3 answers
5k views

How can I get the value of the selected radio button?

I want to get the value of the selected radio button, i tried it through the function handleRadioChange(event), but I'm recieving that Uncaught TypeError: Cannot read properties of undefined (reading '...
Cline's user avatar
  • 143
-1 votes
1 answer
253 views

How to render a json in the same line? (LWC)

I have a Json like bellow. I want to render complement like in the picture. P.S: I'm able to access the other columns normally. JSON { "postalcode": "1234", "...
Cline's user avatar
  • 143
-1 votes
1 answer
1k views

What could I put in Key tags in my .html (LWC)?

In this table I'm using row as key for many html elements. Could this make a difference in the future? Do I need to use a different key for each tag? I thought to use row.postalcode in the first line ...
Cline's user avatar
  • 143
1 vote
2 answers
168 views

Why is the table generating too many rows (LWC)?

As you can see in .js, the table has only 1 row, but it is generating 5 rows... I don't understand why. .js file import { LightningElement,track } from 'lwc'; export class Table extends ...
Cline's user avatar
  • 143
0 votes
1 answer
333 views

How could I avoid nested for each in a HTML (LWC component)?

I'm starting to create a modal like in this picture, but I only got it doing nested for each (line 42 and 43 of the .html) for the table. That's not good practice, right? So how could avoid it? I ...
Cline's user avatar
  • 143
1 vote
1 answer
3k views

Make onclick row in table LWC

Hi guys ^^ I am new in programming and Salesforce. I have little problem I wrote an apex class and now I want to make a custom tabele (that can't be a datatable) because in feature I will write a ...
1skora's user avatar
  • 23
0 votes
2 answers
721 views

Merged cell in custom table displaying in next column instead of next row

I have a list of records that needs to be grouped by store name and displayed on a table with a collapse/expand function. Table data is displayed properly when expanded, but is displayed as one row ...
XKCRanky's user avatar
0 votes
1 answer
408 views

How to make value table LWC component dynamic

I have the following syntax where I want to replace 'Accounts_List' with a design value : @wire(getDynamicTableDataList, { TableName: 'Accounts_List'}) wiredContacts({ error, data }) { ...
Thomas's user avatar
  • 2,298
0 votes
2 answers
5k views

LWC - How to get <td> input value in HTML table on button save event?

Hi i have iterative table which is consist of two iteration inside i need to take inside input value by click the submit button . NOTE : this is HTML Dynamic Table <template for:each={Products} ...
starboy The's user avatar
0 votes
1 answer
643 views

HTML Table display issue while generating PDF using renderAsPdf in vf page?

I am trying to display multiple html tables in vf page using apex:repeat using renderAsPdf. Issue: Some times the HTML table displays inappropriate way at the end of pdf page like below image : does ...
NewBaySales's user avatar
0 votes
1 answer
2k views

How to dynamically render LWC Table Rows

I am unable to dynamically render table rows as a row using a child component. Parent: <template> <template if:true={data.results}> <table> <tr&...
S.B.'s user avatar
  • 2,071
0 votes
1 answer
3k views

How to color border for a row in table on specific condition in lwc

<table class="slds-table slds-table_cell-buffer slds-table_bordered slds-border_left slds-border_right"> <thead> ...
Abhilash Chandrasekharan's user avatar
1 vote
1 answer
5k views

Nested tables with different headers and data LWC for:each

I have a requirement to create a component that is essentially 2 tables, parent/child. The parent table is Subscriptions, and the child table is Subscription Products that are related to that ...
Carryonplease's user avatar
1 vote
1 answer
2k views

Add a default value if a table cell is empty in a lightning: datatable

in this download column I am returning URL so that the user can view a document and download it. but when it does not return url the cenda remains blank and the idea is to add a message that says not ...
Felipe Peña's user avatar
0 votes
1 answer
443 views

Highlight first complete column with background color in table

Wha can I do to highlight my first complete column of the table with a background color? Below is my code and screenshot of the table. Problem is that I'm using <template for:each={con.listval} for:...
Indresh bhargav's user avatar
0 votes
1 answer
765 views

Lightning Iteration change <td> css

I'm trying to change the css of a specific column of a specific row in an iteration while i'm using the drag and drop API. i have 2 tables, i drag an element of the first table in the second to ...
Fabien Braconnier's user avatar
0 votes
1 answer
300 views

Display number in table where there are two iterations

I am trying to display numbers in a table where there are two iterations. but if I use indexVar attribute the numbers are not displaying in sequence. Is there any solution to it? Is there any other ...
Cherry Mittal's user avatar
1 vote
1 answer
602 views

Create a Table with fields from an Array

I would like to create table as below with LWC Product | Month 1 | Month 2 | Month 3... the header is coming from an array I created where I read the start date and end date of my opportunity and it ...
Eric's user avatar
  • 73
1 vote
2 answers
1k views

Table inside another table is rendering in first td, not all colunms in lightning component

I have a table to show a wrapper list of data. Also, collapse/Hide another (Child record list) table onclick of table row. When I click on a row, the table is showing in the first td length/section ...
AshSFcloud's user avatar
1 vote
1 answer
731 views

HTML table in Lightning using iteration

I have an object 'AccountLineItem' . I have a field 'System' and a boolean field 'isHeader'. I am trying to group by system field where isHeader =true . I have a Map<String,List> .Which I am ...
user75937's user avatar
  • 299
0 votes
1 answer
589 views

Visualforce page at parent with table records from custom child

I have a parent custom object called Game__c and a child custom object called Player__c.). The child Player__c has 4 fields: Name(String), Phone__c(Number), isHealthy__c(boolean), and Game__c(lookup). ...
user91488's user avatar