You need to sign in to do that
Don't have an account?
mobile vistex
problem in displaying visualforce page
hi i have requirement where i have to built visual force page.. my data will be stored in db like following
i want to show my visual force like following
i have written some sample code to dispaly header..
and page code to display header is
please tell me how can i fill data to that table i want to mshow like above
i want to show my visual force like following
i have written some sample code to dispaly header..
public list<String> getagrmnts(){ m.put('Name',''); m.put('Driver__c',''); period.add('Agreement no'); period.add('Driver'); headerKeys.add('name'); headerKeys.add('driver__c'); list<String> tempStr = new list<String>{}; for(Agreement1__c a : al){ flag = 1; tempStr.add(a.name); tempStr.add(a.driver__c); //if(period.indexOf(a.period__c)==-1) for(String p: period ){ if(p == a.period__c){ flag = 0; } } if(flag == 1){ m.put(a.period__c,''); headerKeys.add(a.period__c); period.add(a.period__c); } } return period; }
and page code to display header is
<apex:page controller="header"> <apex:pageBlock > <table> <tr> <apex:repeat value="{!agrmnts}" var="c"> <td> <apex:outputText value="{!c}"></apex:outputText> </td> </apex:repeat> </table> </apex:page>
please tell me how can i fill data to that table i want to mshow like above
You need to use wrapper class to achive this.
In my opinion, the fact that the month key is dynamic, the wrapper solution would not be so easy.
Maybe you can use this : In VF page : Hope this helps
Gil
Question Solved ? Please mark as the best answer to help other users !
Thanks,
Vishal