Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pageblock]

The tag has no usage guidance.

0
votes
1answer
33 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; } </style> <...
0
votes
0answers
10 views

How can i put Read only once i save child object record Row from related list of parent object on visualforce page

I want to put read only once i save opportunity record dynamically from a related list of Account object on visualforce page. I have created a VF page in which I have used page block table. And when ...
0
votes
0answers
1k views

Alternatives to PageBlock Visualforce in Lightning

I am using 2 pageBlocks in a visualforce page. One is rerendering other based on the selsctions. I want to convert the whole visualforce page into lightning but not getting the clear idea of how can I ...
0
votes
0answers
354 views

How to display the block after clicking command button

<apex:outputPanel id="filterBlock"> <apex:pageBlock rendered="{!isLoadPage}"> <div style="width:35%;" id="maindiv"> <apex:pageblocksection > <apex:...
0
votes
0answers
123 views

dynamic pageblockbuttons not showing on bottom location

i'm trying to show pageblock button in bottom side but its not showing on bottom only showing in top location how to set bottom Component.Apex.pageBlockButtons pbButtons = new Component.Apex....
0
votes
1answer
225 views

Visualforce Checkbox Rerender via Ajax - Whats wrong with my code?

I want to disable the pageblock section when the checkbox is checked,enable it when the check box is unchecked. I had tried with rerender but it is not working as expected. Note:The checkbox is ...
1
vote
1answer
372 views

Render section or display error message

I have a requirement where I want a section to render depending on a value of a controller variable. If the section is not rendered I want an error message to be displayed. I have the following piece ...
0
votes
1answer
40 views

i am writing a wrapper class . error showing Entity is not api accessible

This is class public class Displayprods1 { public List<OpportunityLineItem> proList{get;set;} public list<wrapper1> wrp{get;set;} List<OpportunityLineItemwrapper> ...
3
votes
2answers
2k views

html button inside Visualforce page generate a refresh on the page without any action connected to it

Situation I have a simlpe visualforce page, where inside a pageblocksection i have put a html Button. <apex:page controller="myTestPage" > <apex:form rendered="{!AND(NOT(isError))}" &...
5
votes
1answer
3k views

Background color for Pageblock title

I have a visual force page which uses pageblock tag: <apex:pageblock title="Sample"> </apex:pageblock> I would like to make the background color of title="Sample" as green. How can I ...
0
votes
1answer
316 views

Pageblock title is not coming in the same line

The triangle and the title in the page block is not coming in the same line. Existing output " When i click on the triangle its coming like " The VF page code is <apex:commandButton id="...
0
votes
0answers
78 views

How to avoid page reload on standard Edit action?

I have two pageBlocksection and i put QuickSave action on first PageBlocksection and it's working fine and it's rerender the next pageBlocksection but Now, i want one button on Second pageBlocksection ...
6
votes
3answers
4k views

How to show/hide pageblock based on clicking a button in Visualforce using a standard controller?

Here i have one Visualforce page and my situation is when i am clicking on Save Button both PageBlock will appearing but i want is : when i am click on Save the existing Pageblock should be hide and ...
0
votes
1answer
29 views

Add custom block on each application page

I noticed that almost ALL pages in my application have "Recent Items" block Can I somehow create such "custom blocks" and add them to each page, for example under "Recent Items"?
1
vote
1answer
6k views

How to center align <apex:pageBlock> title with CSS?

I've had a search on google and SE and can't seem to find a definitive answer. How do I center a pageblock table header? It's nested like this: <div class="pbHeader"> <table border="0" ...
0
votes
1answer
75 views

Label for formula field in 3rd column of PageBlock is wrapping

No matter what my formula fields label is wrapping. It has plenty of room to unwrap. The PageBlock it's in has 3 columnns in it. This is my formula field <apex:pageBlockSection title="Costs"...
0
votes
1answer
123 views

How to postion the pageblock with style tag

I have to place one of my the pageblock inside a panelgrid to the top. Now its in the center postion. I tried using Inspect Element at run time, to make it top and found out a way. Its position: ...
0
votes
1answer
855 views

Customize the page block buttons in visualforce page

I am developing an edit page for my company and i have a problem with the page buttons. Is it possible to put them in a random position not just the one offered with the location="top/bottom/both". ...
0
votes
2answers
1k views

How to Wrap PageBlockTable inside PageBlock?

I created a very simple VF page which displays 28 fields from a custom object. The code looks like this: <apex:pageBlock > <apex:pageBlockSection > <apex:...
0
votes
1answer
430 views

Hide pageblock based on field value

I'm new to this so please try to be extra patient with me :) Trying to display an message in the Account layout based on the Account name field. So what I've got working so far is the error message. ...
2
votes
2answers
357 views

How to display a selectlist in the title portion of a pageblock

On my VF page I have a page block that contains a table inside it. I wanted to be able to put selectlists to filter the data in the table, and ideally I want to put them at the top of a pageblock so ...
0
votes
1answer
269 views

Stop apex from displaying label in apex:pageblocksection

Can we stop apex from outputting labels for apex:outputText within a pageblocksection? I have a html table on which I only want to input text field, i.e. without any labels. But the rendered code is ...
1
vote
1answer
478 views

How to freeze a pageBlock?

Most of the posts I went through talk about freezing a column in a pageBlockTable and seems like there is now a new 'floating headers' feature in one of the recent releases. But, I would like to ...
1
vote
1answer
960 views

Approval Process : Lock the whole Opportunity Including Notes and Attachment

Currently I have an approval process, that locks the opportunity and the record but the user, still can submit Notes & Attachments after. Is there a way to lock those as well?
1
vote
1answer
470 views

Query and display aggregate list

I have an aggregated list that counts the number of records from a custom object created by a user that I display on a visualforce page. I need to also display the same thing from a different custom ...
1
vote
1answer
91 views

Collapse a pageblock section when another pageblock section collapsed

can someone let me know how to manage this? Collapse a pageblock section when another pageblock section collapsed?
0
votes
1answer
756 views

How can I Wrap an Apex:image with a condition inside a pageBlockTable Column?

I want to display different images inside this pageBlockTable Column based on the value of a field. I am receiving this error: You may specify either a ''value'' attribute or a body for the ...
0
votes
3answers
2k views

Page Block Title went to a new line

I'm creating a search page. The filters is on a different page block than the results but then the title went to a new line. (see photo) Is there a way to put "Search" and "Filters" on the same line? ...
3
votes
1answer
2k views

Vertically align two pageBlocks

I've got minor annoyance: I'm rendering two pageBlocks one after another, but they end up not aligning correctly. Here's the code: <apex:form > <apex:pageBlock title="Populates all ...
6
votes
1answer
4k views

Scrollbar for pageBlockSection column1 but not for column 2

I have a pageBlockSection that has 2 columns. I would like 1 scrollbar for the left column so that if the information on the left column is very large then you can scroll through it without changing ...
1
vote
1answer
378 views

Which elements get rerendered and which can't be

i previously asked a question reRender is not working .i get a good reply of that .again i am trying to rerender a pageBlock and its not getting rerendered.i want to know which elements get rerendered ...
9
votes
3answers
10k views

PageBlockSection with 4 columns

I have a pageblocksection with 4 columns where the spacing between 3rd and 4th is not equal.How to fix the spacing between columns. <apex:page standardController="Account"> <apex:form >...
0
votes
1answer
7k views

Unable to display map of <string, list> in repeat

I have a map Map of String(key) and List(value). The list is a list of a wrapper class object I initialize the map: map.put('x', new List); map.put('y', new List); I populate the map like: map....
2
votes
4answers
912 views

Compare values in pageBlock using JavaScript

I want to have a little validation when user enter value into apex:inputText it compares it with apex:column, if difference is more than 10%, it would alert the user. Probably it would be triggered ...
1
vote
0answers
878 views

PageBlockTable inlineEdit - save issue

I have VF page where I have displayed Contact information in pageBlockSection with mode="inlineEdit" as below.. <apex:page standardController="Contact" extensions="ContactDetailController" ...
3
votes
1answer
1k views

Controller fields not updated when actionSupport onchange event used

I have 3 fields Client, BilltoClient and project. Client is a lookup and billtoclient and project are dropdown. The project filed should get populated on the bases of client name and the billtoclint. ...
0
votes
1answer
892 views

Show contacts deatils in pageblocksection as selected in picklist

I have List of all contacts in picklist field on visualforce page. Below that field i have a pageblock section giving details of contact. I want to show only the details of the field as selected in ...
2
votes
1answer
2k views

Validation error message shows for all Inputfield in pageblocktable

I have a custom page with standard controller and extension. I have a page block table with inputField to display the account lookup. When the page is submitted with the wrong Account value in account ...
1
vote
1answer
2k views

Display javascript result in a pageblocktable

I am making a Ajax call to a REST API and parsing the response and maintaining the parsed values in a delimited string. I want to display the same string in the pageblocktable without taking the ...
7
votes
1answer
1k views

Translate picklist value in PageBlock title

We are using <apex:pageBlock title="{account.MyField__c}"> where MyField is a picklist with the corresponding translations. The problem is that the picklist value is not translated to the ...
6
votes
3answers
5k views

pageblocktable rows spanning over page breaks when rendered as pdf

I have a pageblocktable that is being rendered as a pdf. The PDF is set as A4 landscape with small margins and page numbering in a style sheet. The problem is that rows in the pageblocktable span the ...
4
votes
2answers
14k views

Label does not get displayed

I am using a apex:inputField in my vf page. This apex:inputField is in page block with apex:inputField their is also a apex:selectOption, to reduce the space between these 2 fields i put them in a ...
3
votes
1answer
3k views

How to create two tables in a apex:pageBlockSection

I want to develope somthing like this screenshot in an apex:pageBlockSection. How can i develop this??
1
vote
1answer
62 views

Reference from page to SObject which is another package

I have a reference in VF page to a SOBject from another package like this... <apex:pageBlockTable value="{!UsageStats}" var="usageStatRecord"> <apex:column headerValue="AM_Details__c"...
3
votes
1answer
1k views

how to make a list persist in a controller on page redirect

I have the following search function: public List<User> SearchResults {get; set;} public ContactSearchController() { if(SearchResults == null) { ...
5
votes
2answers
2k views

Displaying more rows

I have a simple table for displaying users... <apex:page standardController="User" recordSetVar="Users" tabStyle="User"> <apex:pageBlock > <apex:pageBlockSection title="Today’s ...
3
votes
1answer
2k views

Rerender the column in the page block table on command button

I have a page block table whilch has two columns one with the data and the other with two buttons to move the records up and down. I am not able to rerender the column on the change. The code is as ...
1
vote
1answer
10k views

Hide and show pageblock on button click

I am tying to hide and show apex:pageblocker on the bases of the value in list. But i am not able to show when value is not been selected. My anybody tell me what is wrong. I am getting value in the ...