Questions tagged [table]
The table tag has no usage guidance.
195
questions
0
votes
1
answer
54
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 ...
0
votes
1
answer
23
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 ...
0
votes
0
answers
35
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-...
0
votes
0
answers
81
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 ...
0
votes
0
answers
116
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 ...
0
votes
0
answers
33
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-...
0
votes
1
answer
487
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 ...
0
votes
0
answers
163
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 ...
0
votes
1
answer
816
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-...
0
votes
1
answer
204
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 ...
0
votes
0
answers
47
views
Have merged columns in html table along with apex repeat tag
I have an issue with the following piece of code
<table border="1" style="width: 100%;
table-layout: fixed;
...
0
votes
0
answers
115
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 ...
0
votes
1
answer
64
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 ...
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 ...
0
votes
0
answers
529
views
I want to show lwc datatable in a nexted table row which is being iterated by a parent component, but my table is coming in column instead of row
I have created 3 components, 1. grand parent component :
in that component, I am adding a table header and the view and then in the second component my table rows are coming via lwc iteration and in ...
0
votes
0
answers
266
views
How to show preview of visual force email template (which has a table) in LWC on a button click
My requirement:
From a list of task records, the user can choose records of his choice, and this list of selected records should be passed to an email template and shown as a table in the email ...
0
votes
1
answer
48
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 ...
1
vote
1
answer
80
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)\...
0
votes
0
answers
473
views
Custom LWC tree grid Issues - The child rows shown for all Parent rows
I am trying to implement a custom lightning tree grid for one of my requirements. The standard tree grid does not support inline edit (any workaround?)hence a custom one I am trying out with.
I am ...
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 ...
0
votes
1
answer
687
views
Align two Tables side by side - Visualforce
I need to align two tables side by side. My code is here:
<apex:page docType="html-5.0" renderAs="pdf" standardController="csclm__Agreement__c" extensions="...
0
votes
1
answer
3k
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 ...
1
vote
1
answer
125
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 ...
3
votes
0
answers
342
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-...
2
votes
1
answer
421
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:...
0
votes
1
answer
729
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 ...
1
vote
1
answer
2k
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="...
0
votes
1
answer
808
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 {
...
2
votes
1
answer
8k
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 ...
1
vote
3
answers
4k
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 '...
-1
votes
1
answer
225
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",
"...
-1
votes
1
answer
791
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 ...
1
vote
2
answers
141
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 ...
0
votes
1
answer
274
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 ...
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 ...
0
votes
2
answers
582
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 ...
0
votes
1
answer
351
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 })
{
...
0
votes
2
answers
4k
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} ...
0
votes
1
answer
486
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 ...
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&...
0
votes
1
answer
2k
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>
...
1
vote
1
answer
3k
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 ...
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 ...
0
votes
1
answer
371
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:...
0
votes
1
answer
683
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 ...
0
votes
1
answer
222
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 ...
1
vote
1
answer
514
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 ...
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 ...
1
vote
1
answer
596
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 ...
0
votes
1
answer
491
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).
...