Below is my pathetic attempt at VF and Apex. The two are barely talking to one another. Let's get them to be friends. What do I need to change to get the variables in Mr. Controller to display in Mrs VF page. (I can just see the moderators rip me for this one. Stupid and annoying people do not do well on this list)
I need memTypes, orgs and eventually contact__r.Name to show in a HTML table on Mrs VF but first lets have the two pages talk without needing a lawyer. What does on the apex:repeat line and what goes on the apex:outputtext line?
Mrs. VF Page:
<apex:repeat value="{!orgs}" var="string" id="theRepeat">
<apex:outputText value="{!orgs}" id="theValue"/><br/>
</apex:repeat>
Mr Controller page
public class vfCtrlr_BOG_Committee_Report {
public String[] getOrgs()
{
List bogQueryList = [Select BOG_Membership_Type_New__c, ORG__c, contact__r.Name
FROM BOG_Membership__c
WHERE BOG_Membership_Status__c = 'Active'
AND BOG_Membership_Type_New__c ''
ORDER BY BOG_Membership_Type_New__c , ORG__c, contact__r.Name ];
String[] memTypes = New List ();
String[] orgs = New List ();
for(BOG_Membership__c record :bogQueryList)
{
memTypes.add((String) record.get('BOG_Membership_Type_New__c'));
orgs.add((String) record.get('ORG__c'));
}
return orgs;
}
}