function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
NishhNishh 

Pageblocktable rendering problem

Hi,

 

I have a pageblock table without controller and it is having 4 columns

Line item                 Desc              Price             QTy

1                               cdskcn             12                  1

                                     gv                     4                  1

                                     ds                   3                   2

                                    dhbd               34                 1

 

i have 1 line item and other are blank so i want to show in it two tables

1. Table 1,in which line item field is not blank and its related records

2. Second table, in which line item is blank and its related records

 

 

 

Maros SitkoMaros Sitko
You can create manually tables, and put apex:repeat for creating lines. In each loop, will contains apex:outputPanel with layout = none and rerender={! line item != null}, in second table rerender={! line item != null}.

Or I recommend create controller/extension where you divide into 2 list, which you can use in your 2 page block tables