You need to sign in to do that
Don't have an account?
problem with dynamically creation of pageblock table
Hi Everyone
i came across a situation where i need to create pageblocktable many times so i want to create a component which will create pageblock table dynamically i have this idea how to resolve it...
My Approch is
Here i am retrieving the object id from the url in visualforce page through object id i have the code to retrieve the object name and fields of that object dynamically...and also i retrieving the records through dynamic soql.....But i stuck How to Display These Records in PageBlockTable......
help me out in this scenario.
visualforce page:
// here we get the object from url dynamically through objid....
Component:
You might want to make use of Apex:repeat for this. Not sure how compatible it is with apex:block .. Please try and let me know
Thnx for reply sammy
even i dont know how it comes pageblock table dynamically that is my scenario...i am unable to call the pageblock table in component..
Use an Apex: repeat Tag. Anything you write in here would be repeated till its counter is not over.
Here strings is a list with say size as 5. So anything written in apex:repeat would be repeated. In my case 5 divs would be created. Works like a for loop