Questions tagged [pageblocktable]

Similar to a dataTable but has the standard Salesforce styling built in.

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

How can I make my <account> variable filterType equal to the first account returned in a StandardSetController Query?

how would this work with a dynamic search page I have a visual force search page and I have used the stadardsetcontroller for pagination. The initial query during page load is working for me. ...
1
vote
2answers
33 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> ...
0
votes
1answer
24 views

Visualforce jQuery Works when Hardcoding the Value, but Doesn't Properly Run Within Function

I want to pull the styling (width) of one pageBlockTable and apply it to another pageBlockTable dynamically with jQuery - however I'm not sure why this isn't working... This code runs without any ...
0
votes
0answers
16 views

How to refresh a Visualforce table when the method returns a list

How can I reload a table on a VF page that uses Account as the standard controller? I have an extension as well which supplies the data to the table. Visualforce Page: <apex:page ...
0
votes
1answer
27 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
0answers
17 views

How to edit an element on a PageblockTable via Button

I have a list of products with their prices and I would like to be able to apply discounts to each product, but I'm not able to get the discount and the row number when clicking the button. I get an ...
1
vote
1answer
27 views

How to Implement “fluent constructors” inside visualforce page data iterator?

I am trying to put together a custom controller class implementing the fluid interface builder pattern. Said class does compile, and my question is how can it be implemented inside a VisualForce page'...
0
votes
1answer
35 views

Quicksave Inline Editing on a PageBlock table

I have a pageblock table and I enabled InlineEditingSupport. However, everytime I edit it and click quick save, the last row is the only record that is being updated. I tried making my own method but ...
1
vote
1answer
24 views

Remove(substring) doesn't remove table rows permanently

I've been searching the net as I could but could not resolve my problem. In my VFPage I have this column with "Cancel" commandLink that should remove assigned row for good from DB. What happens is ...
0
votes
0answers
18 views

How to use Outputlink to display Contacts next to Accounts

I created a visualforce page to display the contacts of an account in a div next to a pageBlockTable when the account is selected it will display it's contacts linked to it. This is the VisualForce ...
0
votes
0answers
20 views

Maintain the State of a Controller when Opening a Shared Controller VF page as a Console Tab

I am trying to pass all of the values from an object from one Visualforce page to another. objX is queried for two fields id and fieldOne and stored in a list on the controller: listObjX The object ...
0
votes
1answer
62 views

column names are overlapping in PageBlock table when i use in lightning

<apex:pageBlockTable var="a" value="{!selected}"> <apex:column value="{!a.Name}"/> <apex:outputLabel></apex:outputLabel> <apex:column ...
0
votes
1answer
47 views

How to create a custom VF page with dynamically generated HTML code and what VF component to use?

I have a dynamically generated HTML code in apex. I need to put and render this HTML in a custom VF page. How that can be achieved? If I need an <apex:outputLabel> please advise how to put ...
0
votes
0answers
25 views

How To do ReOrdering in Page Block Table rows with inline edit feature as well?

I have a requirement where I need to develop a Pageblock table which should be inline editable as well as the user can reorder the table rows like the drag and drop functionality. This order should ...
0
votes
1answer
73 views

Visualforce Remove/Hide Line Breaks between PageBlockSections

Is it possible to remove the line breaks specifically between PageBlockSections? My Visualforce page is currently set up to render/display fields, however, this is creating an undesired effect of ...
0
votes
0answers
30 views

Add rows on button click without loosing input values from prev row

I'm trying to make a table with add row functionality. The process is next: User works with one row, put data in input fields, and then add another row. The first row must contain data that user ...
1
vote
1answer
95 views

How to get custom table row headers and values on a Apex Page Table?

I am trying to have a tabular display of data using (month and year) as the column header and have text boxes as the values But am not able to see the text boxes. My vpf : <apex:pageBlock title=...
0
votes
1answer
79 views

Hide rows dynamically

I am using following condition to show data on the page, if the text in the table matches a certain criteria then i have render condition in place that hides that text in the table . However In this ...
0
votes
2answers
20 views

Visualforce Page Column Sizing

I have a VF page with a custom controller that calculates grand totals and sub totals for some of my object's numeric values. I have these in separate pageBlockTable tags in my page. Both sections ...
0
votes
0answers
34 views

pageBlockTable Column Widths Sync

I have a custom VF page that uses 2 pageBlockTables, 1 to show aggregate amounts for my fields in total, and another to show aggregates by year. I was not able to get them into 1 table, so I tried to ...
1
vote
2answers
455 views

How to iterate Map<string,List<string>> in vf page

I have a map I am displaying in a Visualforce Page as below: <apex:page controller="MyController"> <apex:repeat value="{!str}" var="key"> {!key} <apex:repeat ...
1
vote
2answers
72 views

Visualforce page rendered as pdf on quote [closed]

How do I create a Visualforce page rendered as pdf with header and footer keeping 'Quote' as standard controller and displaying an image and table on the page. Show company address on top right and ...
1
vote
1answer
59 views

reRender not working on a pageBlockTable column with actionSupport and actionRegion

I have an actionSupport with actionReqion on pageBlockTable which is not rendering properly but it renders perfectly on pageBlockSectionItem. <apex:pageblocktable> <...
1
vote
1answer
314 views

Visualforce Display and Hide Fields

I wrote a visualforce page using a wrapper class. Everything is displaying just the way I want it for the most part. I was trying to figure out how to display columns within my pageblock on conditions ...
0
votes
1answer
97 views

Update record in custom Object and Table

I have a table that is populated from values from a custom object. For each record, I have an <apex:inputField> that shows the Quantity value for a record and the user is able to modify the ...
0
votes
1answer
222 views

Pageblock table not displaying anything after apex function

I have a pageblock table that uses a custom controller to access a custom object through the SOQL. The page, when I click preview, does not load anything from the custom objects. (I've set the SOQL) ...
1
vote
1answer
159 views

Visualforce Grandchild records

I am trying to display Grandchild records however I am not getting the page layout correctly. I am using page-blocks to display the data however from the picture below the columns of the child ...
1
vote
1answer
117 views

Show a map of map data in table format in VF Page

I have a map called configMap. it is of type Map<String, Map<String, List<A__c>>> where it implies like Map<Obj, Map<Rec, List<A__c>>>. Just for understanding I ...
0
votes
1answer
41 views

Show field details in apex page

I have below code where I need to show selected object's fields along with it's API Name, Label, Length, Type in a table format. Can someone please let me know if I can do that using ...
-1
votes
1answer
350 views

Controlling PageBlockTable Table width

I am having trouble setting the width of a table. I have tried using columnsWidth but it does not seem to respect it. <div class="column"> <apex:pageBlock > ...
0
votes
1answer
109 views

SLDS -pageblocktable not responsive inside an outputPanel

I am using SLDS in existing VF page and I also want the page to be responsive. In the code below the outputPanel is responsive but the pageblock table within it is not responsive and it extends out of ...
0
votes
1answer
119 views

Pass field value inside column to javascript

I just try to get the field value from inputField, that inside apex:column tag in PageBlockTable. I'v tried a different ways, but still no result. I've tried the next methods: function testinputJS(...
2
votes
1answer
52 views

Visualforce apex:column can't see record ID in rendered attribute; Hide empty column in pageBlockTable

I create a map in the apex controller to store whether or not a QuoteLineItem has related records: qliHasQimus = new Map<Id, Boolean>(); for (QuoteLineItem qli : qlis) { if (qli....
0
votes
0answers
58 views

Exception: Invalid field X__c for SObject Y__c

I have below VF Page. <apex:pageBlock > <apex:pageBlockTable value="{!CPAT_accounts}" var="c"> <apex:repeat value="{!excelFields}" var="f"> <...
1
vote
1answer
218 views

Loop trough pageBlockTable rows for validation

With regards to my previous question: Wrapper class' validation based on an Existing checkbox, I am trying to find a way to loop through the list of records in the wrapper class using the JavaScript, ...
1
vote
2answers
433 views

Rowspan with apex repeat

I try to create a table with rowspan, but get a wrong table, could somebody help to resolve this? This is my UPD VF Page: <apex:page controller="FinancialProductsController" showHeader="false" ...
1
vote
1answer
639 views

Visualforce Page using Wrapper class in pageblocktable and apex repeat

Error: Unknown property 'VisualforceArrayList.lstWrp' I am trying to understand how does the pageblock table loop the repeat. I have done a similar page to account , contact object it worked fine ...
0
votes
0answers
121 views

Display a table in visualforce with non dynamic rows

I need to create a table in a VF page, but I need to create it row by row (with a header and footer) For now I have something like that : <apex:pageBlockTable > <apex:column> ...
0
votes
1answer
264 views

have apex:pageBlockTable table that has only two columns to extend horizontally on fixed height salesforce

I want to create table that have fixed height of 300px , they table will be only Two Columns. for example one row of table is |Alex Smith|checkbox| I want the table once it reaches the height of ...
0
votes
1answer
371 views

How to sum values in pageblock table

I try to get sum of values in a column to use it in controller. Vf Page: <apex:page showHeader="true" sidebar="true" controller="PNLSplitController" doctype="html-5.0" action="{!onloadmethod}">...
0
votes
1answer
377 views

How to group fields in a visualforce table

I have a visualforce page that shows cohorts and the contacts enrolled in the cohort. I am looking for ways to group the contacts with an but can't figure out how to do it. If anyone could explain to ...
0
votes
1answer
168 views

Does reRender of apex:PageBlockSection invoke the constructor?

I have a visualforce page which calls a controller method via actionFunction. When I reRender the pageBlockSection, the variable values get reset. There is no method that resets the variable values. ...
0
votes
1answer
611 views

Disabling Mouse-hover-color-change for the apex:pageBlockTable

I am displaying a PageBlockTable with 12 records from a Custom object. And each <apex:column> has its own color code rendered based on the value. <apex:column headerValue="Field One" width="...
0
votes
0answers
123 views

Freezing column in visualforce page bageblock section [duplicate]

I have requirement to freez/lock firsrt 2 or 3 colums in a table which is implemented using pageblock table supose i have a page which displays all customer recrod details using pageblock table now i ...
0
votes
1answer
372 views

How to get the row data in apex pageblocktable to update the list in apex class

Im planning to update each row using actionSupport event = "onchange". I'm trying to get the ID of the row but it is NULL. Or Is there any way It can be updated as a list without using the ...
0
votes
2answers
78 views

How-to provide a status message prior to invoking a custom controller method

I have a custom controller to obtain a record set, which I invoke from a commandbutton. pbtable is a pageblocktable populated by the method searchproperties shown below. <apex:commandButton ...
0
votes
1answer
42 views

Visualforce Related List Help

I have a very simple Visualforce page here that is showing a related list of Activities__r related to an Account. The issue is that I want to sort these Activites by their due date. I know how to do ...
0
votes
2answers
113 views

Why the subquery header column doesn't show

my controller is : public List<case> getCases(){ List<case> listCase =[SELECT (SELECT ActivityDate, Description,subject,Status,IsTask FROM OpenActivities where ActivityDate <= :...
1
vote
1answer
107 views

Create Dynamic Table On the basis Of 2 Objects [closed]

There are 2 objects one obj1 and obj2 I have to create dynamic table in visualforce page in which if new record is inserted to the obj1 then one row should be added to table and if one record in obj2 ...
0
votes
1answer
490 views

Use apex:repeat inside apex:pageBlockTable

I am iterating map in pageBlockTable inside of which I have used apex:repeat. An error is coming. public class CreateEditAccount { public Account acc{get;set;} public Contact con{get;set;} ...