+ 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