Questions tagged [table]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

Rectangle displayed only on Outlook email [migrated]

We are developing an email which is displayed properly on all the clients browsers. For Outlook we are using ghost tables as here: <!--[if mso]> <table width="100%" valign="...
user avatar
-1 votes
0 answers
16 views

picklist doesn't work on table

I'm trying to present the values ​​in a picklist depending on a list I have in javascript. It comes filled in but when I try to present it in HTML it doesn't work. can someone help me.
user avatar
0 votes
1 answer
224 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 ...
user avatar
1 vote
1 answer
25 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 ...
user avatar
2 votes
0 answers
135 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-...
user avatar
  • 21
2 votes
1 answer
166 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:...
user avatar
0 votes
1 answer
107 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 ...
user avatar
1 vote
1 answer
178 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="...
user avatar
  • 79
0 votes
1 answer
286 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 { ...
user avatar
  • 5
2 votes
1 answer
737 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 ...
user avatar
  • 123
0 votes
3 answers
323 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 '...
user avatar
  • 123
-1 votes
1 answer
84 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", "...
user avatar
  • 123
-1 votes
1 answer
179 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 ...
user avatar
  • 123
1 vote
2 answers
54 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 ...
user avatar
  • 123
0 votes
1 answer
115 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 ...
user avatar
  • 123
1 vote
1 answer
765 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 ...
user avatar
  • 23
0 votes
2 answers
142 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 ...
user avatar
0 votes
0 answers
19 views

How do I display array data from an external service in a tabular format in a screen flow?

My business has a desire to display data internally from one of our databases to staff but does not wish to store it as records in salesforce. Furthermore, we want to display this data in a table. How ...
user avatar
0 votes
1 answer
111 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 }) { ...
user avatar
  • 2,116
0 votes
2 answers
2k 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} ...
user avatar
0 votes
1 answer
158 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 ...
user avatar
0 votes
0 answers
110 views

Lightning Component edit specific column index of table

If i click a line to edit then it opens editing for the entire column instead of just the row index. I've tried: openInlineEditBox: function(cmp, ev) { this.RecList.map(singleRec=>{ ...
user avatar
0 votes
1 answer
789 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&...
user avatar
  • 1,858
0 votes
1 answer
667 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> ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
1 vote
1 answer
939 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 ...
user avatar
0 votes
1 answer
148 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:...
user avatar
0 votes
1 answer
365 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 ...
user avatar
0 votes
1 answer
40 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 ...
user avatar
1 vote
1 answer
188 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 ...
user avatar
  • 73
1 vote
2 answers
618 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 ...
user avatar
1 vote
1 answer
219 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 ...
user avatar
  • 197
0 votes
1 answer
241 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). ...
user avatar
1 vote
1 answer
964 views

Display Tables side by side in Visualforce - Render As PDF

I am new to Visualforce and i want to make a page to represent a contract (render as PDF). I am trying to make 2 tables display side by side. I tried a lot of things with CSS but could not find ...
user avatar
3 votes
1 answer
99 views

Visualforce components disappeared after an action

I am looking into a strange Visualforce effect. Now the problem can be simplified using the following example. MyController: public class MyController { public String firstName {get; set;} ...
user avatar
  • 358
0 votes
0 answers
10 views

How to retrieve INPUT value that belongs to an iteration table

This is the HTML code part that matters: <aura:iteration items="{!v.data2}" var="var" indexVar="index"> <tr id ="{!index}...
user avatar
0 votes
1 answer
70 views

Mirroring of single picklist value in all picklists in nested aura iteraton

I have used an aura iteration to create a table and I have a picklist field inside that table which uses an aura iteration itself. The problem here is that whenever I select the value of any one of ...
user avatar
0 votes
1 answer
1k views

Is comparing two values possible in Html file of LWC?

I need to compare a list of pricebook IDs in a pricebookentries of a product with a list of PricebookIDs. Is it possible in HTML template? I'm attaching a image to get an idea of the table. Here PB1, ...
user avatar
0 votes
1 answer
121 views

How to sort fields of an object related to another object

Sorting fields directly from an object works, but how to sort fields from a related object? How do you access the Description__c field so that you can sort the records? Controller @AuraEnabled public ...
user avatar
0 votes
0 answers
268 views

How to display the following JSON deserialized to VF page

I have the following code. I would like to create a visualforce page like Please refer to the apex class code below: public with sharing class fromJSON{ public string companyName{get; set;} ...
user avatar
0 votes
0 answers
28 views

Table with expandable rows which contain another table using Visualforce

I'm trying to achieve exactly the same table. However i'm unable to add the inner table which appears on row click. As i wanted to achieve this using visualforce (No Aura), please let me know what i ...
user avatar
  • 25
0 votes
1 answer
1k views

Get aura:id and selected option value in controller for <lightning:select>

I have a dropdown in a table in a lightning component. Here is the code of that td. <tbody> <aura:iteration items="{!v.recipientList}" var="recipient"> <tr class=...
user avatar
2 votes
2 answers
3k views

How to get the width of a table inside a LWC to adapt to the widths of its columns?

I have made a LWC that is used on an Account page. Unfortunately I had to resort to the use of raw HTML tables, due to all kinds of reasons. The table can have two to four columns, that depends on ...
user avatar
0 votes
1 answer
674 views

Unique Identifier for Lightning-input inside custom Data table

I have a custom data table and I wish to validate Desired_quantity for each row but I'm having trouble with creating a unique class for lightning-input component and fetching it using queryselector. ...
user avatar
1 vote
1 answer
147 views

columns in lightning aura table is not visible to certain profiles

The Columns Access Revoked and Tax Status are not visible in lightning aura table of a page because there are two issues in the code below: currentUserProfile (String) was compared in permissionMap ...
user avatar
0 votes
1 answer
469 views

Iterate the data in HTML Nested/Multi table with Single Header

Below is my HTML Table, which is iterating the parent and Child record and displaying the data in to the table as below In Child Record, For each rows header is rendering (Yes I'm Iterating the ...
user avatar
1 vote
1 answer
27 views

Datatable clumping all user information in 2 tables

I'm iterating over a list of objects in my visual force page. The goal of the iteration is to create 2 different tables Name | Stage | Recommendation Bob. | 1st. | Pass Questions | Answer | ...
user avatar
0 votes
2 answers
3k views

LWC - Get row Id in JS when in row button pressed

Wondering if there is and easy way to get a the dynamically generated row id using a button onclick attribute in JS. <template for:each={PS} for:item="partserve"> <tr key={partserve.Id}...
user avatar
  • 711
2 votes
0 answers
586 views

Slds-Table data making the table overflowing the horizontal scroll

I have a html table with slds-table class. The table workds fine, as it had dynamic column width based on content The Scroll goes way too long like this-- I tried using slds-truncate with slds-...
user avatar
  • 515
0 votes
1 answer
1k views

Lightning input Field Lookup Drop-down

I have a Table and in each row lookup lightning input field , the problem is that the drop-dawn on the field are not over the next row so I cannot this it how it is : How it is suppose to be : I see ...
user avatar
  • 443