People who code: we want your input. Take the Survey

Questions tagged [table]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
25 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
1answer
49 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
1answer
23 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
1answer
46 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
1answer
31 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
1answer
67 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
2answers
182 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
1answer
35 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
0answers
45 views

Get the selected value of custom lookup using query selector

I have implemented a html table in lwc and there I have a custom lookup as a column. Using JavaScript I have convert the table into array. I can able to all the input values except the value in custom ...
0
votes
1answer
38 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). ...
1
vote
1answer
227 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 ...
3
votes
1answer
74 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;} ...
0
votes
0answers
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}...
0
votes
0answers
75 views

Dependent picklist issue while adding dynamic rows in table LWC

I'm able to achieve dependent picklist functionality in LWC, I have this functionality in html table, onclick of button (Add rows) I'm adding rows dynamically in the table. As you can see in the ...
0
votes
1answer
33 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 ...
0
votes
1answer
434 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, ...
0
votes
1answer
14 views

I have a table in a lightning component and in the table body there's a column that's displaying Order Number which is a URL

I have a table in a lightning component and in the table body there's a column that's displaying Order Number which is a URL is it possible to add a functionality that when I mousehover in the Order ...
0
votes
1answer
46 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 ...
0
votes
0answers
81 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;} ...
0
votes
0answers
20 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 ...
0
votes
1answer
220 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=...
2
votes
2answers
932 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 ...
0
votes
1answer
230 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. ...
1
vote
1answer
78 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 ...
0
votes
1answer
186 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 ...
1
vote
1answer
19 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 | ...
0
votes
2answers
1k 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}...
2
votes
0answers
342 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-...
0
votes
1answer
686 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 ...
1
vote
1answer
300 views

Create component of rich Text with Table creation

I wonder how can I add more tools to lightning rich text, like - create a table tool. For example - this: <lightning:inputRichText value="{!v.myVal}" placeholder="hi!"/> render to this: ...
1
vote
1answer
1k views

Build table with for:each and Field Sets (LWC)

I'm making a table that displays a custom object with fields retrieved from Field Set on that object (that can, of course, be changed). I have apex logic that returns the List of CustomObject__c and ...
0
votes
1answer
20 views

Unravel table links

What are the relationship links (field names and any other tables used to link) between the four tables below: Account Opportunity Quote User Thanks you for any help
1
vote
0answers
1k views

How to fetch input field value in JS in LWC [closed]

in the below html code I am iterating 2 lists linItemData(11 records) and studyData(20 records) <table class="slds-table slds-table_cell-buffer slds-table_bordered"> <thead> ...
1
vote
2answers
1k views

How to implement Horizontal Scroll on HTML Table in Salesforce Mobile App?

I am in process of implementing a native old HTML table (<table> ... </table>) in a Lightning Aura Component which will be rendered in native Salesforce Mobile App (historically known as ...
0
votes
1answer
46 views

Dynamic rows in lightning component throwing error

I'm trying to create a lightning component that will add and delete rows. I followed a tutorial available online and here is my code. Component: <aura:component controller="testCntrlr"> &...
1
vote
1answer
230 views

displaying the lightning data in CSV file proper format [closed]

i am downloading the lightning data in CSV file as per the below screenshot Now the issue is whenever i am trying to expand the Name column,the data is getting restricted to the name column only....
0
votes
1answer
356 views

Onchange picklist value not showing dependent picklist values

I am working on dependent picklist. I have a parent object on select Parent record in the first picklist I need to get all related child record in the 2nd picklist. This is working fine. But when I ...
0
votes
1answer
365 views

jQuery append not working on custom lightning component

I have a custom component that sets a table header and body dynamically with jQuery append but it's not working. I have loaded my scripts into .cmp and it's working cause I start my onInit controller ...
-2
votes
1answer
40 views

SObject row was retrieved via SOQL without querying the requested field: Webinar_Attendees__c.Voucher_Assign_Date__c

'm trying display parent fields and sub query fields in a table.But I'm unable to display sub query fields.Could anyone suggest an idea for me Page : ====== ...
1
vote
2answers
137 views

How to separate Visualforce table by a value?

I'm trying to separate my Visualforce table by Hummer's Id value: public List<Hammer__c> getHummers() { return [SELECT Id, Name FROM Hammer__c]; } public List<Factory__c> ...
1
vote
1answer
110 views

Is there anyway to combine StandardSetController and List [closed]

I need to be able to edit and save records in a pagination. Right now I can get the pagination to work if i have apex:pageBlockTable value="{!Accounts}" but then i can't refresh the page with a ...
1
vote
1answer
50 views

On click of button another method is called before the actual method is called [closed]

Im new to salesforce. I have just started with apex and Vf. I have built one vf where on page load it fetches account list and displays it in table. Before displaying it in table it calls another ...
0
votes
1answer
487 views

Unable to avoid the page breaking of a list in visualforce PDF

I have to do a visualforce that render a list of list of quotelineitem, that can be spited on more page cause the visualforce is seted to renderAs="pdf". To reach my goal i decide to use an apex ...
2
votes
1answer
876 views

Multi level lightning table with LWC [closed]

Is it possible to create the same table as below (screen was taken from vf page) with lightning-tree-grid in Lightning Web Component? I tried to do that, but it seems there is no possibility to add ...
0
votes
1answer
51 views

Visualforce page - not pulling values from related object and not showing table style

I have the following objects: Object: A Picklist: I Field: 1 Field: 2 Field: 3 Object: B (This is where I want the visualforce page (table) Current visualforce page that works in Object B: <...
0
votes
1answer
138 views

Page Block section is disturbing the table structure

I have a Visualforce page, which is showing table. <apex:page controller="TestControllerForIssue"> <style type="text/css"> .myClass { width: 50px; } <...
3
votes
2answers
2k views

How do I get the value of a row of HTML table in an aura iteration with onclick?

I am trying to make a functionality where my lightning component shows a table of records and I want to make it so if you click a records row, it autofills my form with that records information. Here ...
0
votes
0answers
134 views

PDF Page break and Adding footer line

Hi please help me how to fix this <style type="text/css" media="print"> @page { margin-left: 1cm; margin-right: 1cm; margin-top: ...
2
votes
1answer
2k views

Table row LWC breaking SLDS styles

Situation I'm building a table row LWC to separate and encapsulate some logic like so: <!-- tableComp.html --> <table class="slds-table slds-table_cell-buffer slds-table_bordered"> &...
0
votes
1answer
156 views

display rendered values on the same line

I made a < apex:reapeat> tag within a table and I want to use rendered to display or not values from a list, base on an input search. The problem is if I have 5 values in the list for example: ...