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

Show results in pageblock dynamically

How to show results in a pageblock table dynamically.
I have two pageblock table on saving the first pageblock the result should show automatically in second pageblock.

Chamil MadusankaChamil Madusanka
You requirement is not dynamic, it's automatically show the page block. Isn't it?
For that,use the rendered and rerender attributes of the pageblock components. 

When you are saving the first block, you can maintain a boolean attribute on the apex class. Use that boolean attribute in the rendered attribute of the 2nd page block. In the save button of the first block, rerender the outer panel of the 2nd page block.

NOTE: Do not rerender the same panel which has specified the rendered attribute. It will not work properly.
Refer: (" target="_blank)

If you get the answer, please mark it as the correct answer. It will be a help to others who are facing the same problem later.

Eswar Prasad@Sfdc11Eswar Prasad@Sfdc11
IN both pageblocktable  can you  create rendered boolean type is pb1, constructor both pb1,pb2 is true  where as save method assign pb1(true),pb2(false) now you get solution.your not getting clearly pls copy code below here i can change modification.

Hope this helps! Mark it as solution if this solves your problem.

Eswar Prasad.