Questions tagged [pageblocktable]

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

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

InputField inside of a repeat not updating or saving changes

I have been monitoring strange behaviours in my page since I put the pageBlockTables in repeat and te columns of these tables inside a repeat too. hte recors I try to create appears on my page and I ...
user avatar
  • 23
0 votes
1 answer
22 views

Visualforce page - standard controller account - sort table

do you know how to sort data in an apex:pageBlockTable in a simple way (i am starting visualforce developments). I use the standard account controller for this page. Thanks! here is an example, i want ...
user avatar
  • 1
0 votes
1 answer
34 views

Scroll to a new item in a pageBlockTable

I have a few pageBlockTables which are set up to be scrollable. (See this answer Scrolling in Pageblocktable for a CSS-only way to do this, since someone's Googling this right now, I'm sure.) The new ...
user avatar
  • 1
1 vote
0 answers
46 views

Visualforce table for aggregate result grouped by CreatedBy.Name

I'm trying to create a custom report table in Visualforce based on an aggregate result retrieved by the SOQL: SELECT CreatedBy.Name, Description, SUM(Value1), SUM(Value2), SUM(Value3) FROM Object__c ...
user avatar
  • 11
1 vote
1 answer
28 views

Mass edit a Campaign Member Blocktable

My team is using campaigns extensively for a handful of different recordtypes and a lot of time is wasted by having to click into each campaign members records to update information. I set out as an ...
user avatar
  • 11
-3 votes
1 answer
35 views

pageblocktable is not getting displayed in visualforcepage [closed]

I am new to salesforce, I am trying to show table with records from account in visualforce page using pagination offset in soql. Pageblocktable is not displaying in visualforce page, please help. ...
user avatar
0 votes
2 answers
208 views

Why am I getting this error: Unknown method 'AccountStandardController.Previous()'?

<apex:page standardController="Account" extensions="AccountTitlesController"> <apex:form > <apex:pageBlock title="Títulos" id="...
user avatar
  • 1
1 vote
1 answer
74 views

why Soql have to be inside constructor

hi I'm new to salesforce. I have a basic question hope you guys can help me. I'm doing "Display a SOQL query on a Visualforce page" but throughout all the information i found query have to ...
user avatar
1 vote
1 answer
29 views

Why is save method not working for one VF page but works for the other?

Can anyone help please? For some reason, the save method (from controller extension) does not work on one VF page that I created, but works on the other. Heres' the extension class: public class ...
user avatar
1 vote
1 answer
45 views

Dynamic columns and InputText bindings

I have a map called getMonthAndYear() where it creates values from the startDate and EndDate of an opp. I am also adding two other values so the map looks like this. Product | Description | ...
user avatar
  • 73
1 vote
0 answers
340 views

How to adjust column widths in Visualforce to PDF email attachment?

I wish to send a visualforce page as an email PDF attachment to user. The problem I am facing is that the columns don't fit in the PDF. Hence I sent the PDF in landscape mode. After that, some extra ...
user avatar
  • 1,014
0 votes
1 answer
63 views

Visualforce Table - Iterate Over Two Different Objects with Same Column Headers?

I need to create a data table that contains Task and Opportunity data, but puts them together in the same table that uses days of the week for column headers. Example below - I've never seen a way to ...
user avatar
  • 648
0 votes
1 answer
63 views

PageBlockTable not rendering the data

I have an apex callout that sends an sql query to an external MySQL server. The query output is returned in the response body and I could see that retrieved correctly in the console. But when the JSON ...
user avatar
  • 19
1 vote
2 answers
495 views

Joining a list of strings and a list of integers in a table

I want to make a table of multiple different arrays of different data types. How do I join those in the same table? Simple example: I want the table Value -- String 1 -- a 2 -- b 3 -- c public ...
user avatar
1 vote
1 answer
163 views

SelectList in PageBlock Table is not working as expected

I have created a SelectList inside of a PageBlock Table and when I add a new row to the table and use the select list it will hold the same value in all of the lists instead of just for that one row. ...
user avatar
  • 1,017
1 vote
2 answers
31 views

Hide certain records when a inputCheckBox is set to true

I have a visualforce that shows a pageDataTable with a list of records os a wrapper 'OrderItemWrapper'. I have a inputCheckBox that when it's checked I want to hide some of this records based on a ...
user avatar
0 votes
1 answer
219 views

Clear form fields after adding record to list

I have a custom controller that allows users to input data in inputFields and add the record to an apex:pageBlockTable by hitting a button to add to the list. I would like to reset these fields each ...
user avatar
0 votes
1 answer
218 views

How to add delete button on each record in pageBlock table - VF

I have an extension that allows users to input information and I am trying to add delete functionality to each record in apex:pageBlockTable. How can I edit my extension code to add this? What I've ...
user avatar
0 votes
1 answer
77 views

How I can pass all user inputted quantity values for each row from apex:pageblocktable to apex controller in visualforce?

I am able to pass single value from vf to controller. But here are list of quantity values. Here is my visualforce code - <apex:page standardController="Billing__c" extensions="...
user avatar
0 votes
2 answers
202 views

Unable to add records as multiple pills in visual force page

Currently, I'm working on a requirement which is to display selected records from one table named table to another table named table2 as pills. I have written the code which is working fine without ...
user avatar
  • 1,430
0 votes
1 answer
33 views

Issues while creating a visualforce page

I have made an external API call (JSON type). And I have stored the fields and values in a Map<String, List> object. Now I have to created a visual force page that displays the Map in columnwise ...
user avatar
1 vote
1 answer
93 views

Difference between Output Panel vs Page Block Buttons in Visualforce?

I was looking back in the old code some developer created but already left and have no idea why he had to duplicate the buttons : <apex:pageBlock id="PageBlock" title="Template"&...
user avatar
  • 1,081
0 votes
0 answers
83 views

Visualforce page submit button doesnt work after "rendered"

I have a problem with my visualforce page. Currently I am trying to switch pages based on SelectOption. If selected option is French I need to translate everything to french. Currently this ...
user avatar
0 votes
0 answers
177 views

how to display Url inside a <apex:pageBlockTable>?

I created a custom object with two cloumns, name and url. I just want to dislay these inside an apex page using <apex:pageBlockTable>. I used the following code: <apex:pageBlock id="...
user avatar
0 votes
1 answer
600 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
0 votes
1 answer
225 views

Pageblocktable not showing records

I'm querying Task record from contructor and displaying in Pageblocktable but it's not displaying records in Pageblock table. Could you please let me know what went wrong? <apex:page ...
user avatar
  • 17
1 vote
1 answer
109 views

How do I display a Person Account recordType in a VF page/table?

There seems to be an issue with displaying Person Account recordtypes in a VF page (as a field or in a table) - it says the recordtype is invalid for 'Account'. I'm listing the results of an account ...
user avatar
  • 1,377
1 vote
1 answer
208 views

Wrapper class data is not showing up in pageblock table after commandbutton action

Im having trouble getting a list from my wrapper class to show up in a page block table after clicking a command button. Can someone tell why my wrapper class is not showing up in the table? Is the ...
user avatar
  • 13
0 votes
1 answer
27 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. ...
user avatar
  • 91
1 vote
2 answers
220 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> ...
user avatar
0 votes
1 answer
28 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 ...
user avatar
  • 889
0 votes
0 answers
322 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 ...
user avatar
  • 398
0 votes
1 answer
70 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: <...
user avatar
0 votes
0 answers
130 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 ...
user avatar
  • 1
1 vote
1 answer
55 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'...
user avatar
0 votes
1 answer
150 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 ...
user avatar
  • 1
1 vote
1 answer
38 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 ...
user avatar
0 votes
1 answer
333 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 ...
user avatar
  • 161
0 votes
1 answer
688 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 ...
user avatar
  • 397
0 votes
0 answers
77 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 ...
user avatar
0 votes
1 answer
485 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 ...
user avatar
  • 55
1 vote
1 answer
860 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=...
user avatar
  • 471
0 votes
1 answer
384 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 ...
user avatar
  • 119
0 votes
2 answers
493 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 ...
user avatar
  • 1,183
3 votes
2 answers
3k 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 ...
user avatar
  • 43
1 vote
2 answers
776 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 ...
user avatar
0 votes
1 answer
159 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> <...
user avatar
1 vote
1 answer
3k 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 ...
user avatar
  • 359
0 votes
1 answer
439 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 ...
user avatar
0 votes
1 answer
655 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) ...
user avatar

1
2 3 4 5 6