I have a SObject list that I am iterating through, so my var="standardOppFields"
I created a loop to generate a value for each opportunity. I want to display both the standard fields AND the custom value in the same visual force table. Is this possible?
openOpps = new List<Opportunity>([Select id,Name, Account.Phone,Account.Id,Postal_Code__c,
(Select contact.Name
From OpportunityContactRoles where role='Primary')
From Opportunity
where (ownerId=:UserInfo.getUserId()]);
Map<String, String> zipToTimeZoneMap = new Map<String, String>();
for(Opportunity o :openOpps){
localTime = system.Now().addHours(d).format('hh:mm a');
}
on my VF page, I'm using this format
<apex:column value="{!openOpps.Postal_Code__c}">
<apex:facet name="header">
<apex:commandLink action="{!openOpps}">
<apex:param value="Postal_Code__c" name="column" ></apex:param>
</apex:commandLink>
</apex:facet>
</apex:column>
When I try to do the same VF format with the localTime variable, it's taking the last value in the loop every time.
standardOppFields
being used in the code? How doeslocalTime
come in to this?