You need to sign in to do that
Don't have an account?
theop
DataTable not populating
Hi, I have a datatable that doesn't seem to want to render in a popup and the data is there. The command links show and function fine, ex: http://puu.sh/2gfL8
Any help appreciated, thanks,
Theo
@@@this.PopedSpecialEventFees: (evt__Event_Fee__c:{Name=Registration, evt__Description__c=<br>, CurrencyIsoCode=USD, Id=a0rV0000000Owo9IAC, evt__Amount__c=100.00, evt__Category__c=Attendee}, evt__Event_Fee__c:{Name=Lunch Fee, evt__Description__c=<br>, CurrencyIsoCode=USD, Id=a0rV0000000OwoEIAS, evt__Amount__c=20.00, evt__Category__c=Attendee}, evt__Event_Fee__c:{Name=Event Fee Payment - 30 days, evt__Description__c=<br>, CurrencyIsoCode=USD, Id=a0rV0000000OwPWIA0, evt__Amount__c=500.00, evt__Category__c=Attendee}, evt__Event_Fee__c:{Name=Event Fee Payment - 60 days, evt__Description__c=<br>, CurrencyIsoCode=USD, Id=a0rV0000000OwPbIAK, evt__Amount__c=450.00, evt__Category__c=Attendee})
public pagereference showSEPopUp(){ List<evt__Event_Fee__c> tempPopedSpecialEventFees = [SELECT Id, Name, evt__Amount__c, evt__Category__c, evt__Description__c FROM evt__Event_Fee__c WHERE evt__Active__c = true ORDER BY evt__Order__c]; System.debug('@@@this.PopedSpecialEventFees: ' + this.PopedSpecialEventFees); this.sePopup = true; this.PopedSpecialEventFees = tempPopedSpecialEventFees; return null; }//showPopUp
<apex:actionRegion id="act"> <apex:outputPanel id="sepopup"> <apex:outputPanel styleClass="popupBackground" layout="block" rendered="{!sePopup}"/> <apex:outputPanel styleClass="custPopup" id="opanel" layout="block" rendered="{!sePopup}"> start <apex:outputPanel id="sefees" > <apex:dataTable value="{!PopedSpecialEventFees}" var="eventfee" id="eventfees"> <apex:column value="{!eventfee.Name}" headerValue="Name"/> <apex:column value="{!eventfee.evt__Category__c}" headerValue="Category"/> <apex:column value="{!eventfee.evt__Description__c}" headerValue="Description"/> <apex:column value="{!eventfee.evt__Amount__c}" headerValue="Amount"/> </apex:dataTable> </apex:outputPanel> end <table> <tr> <td width="20%"> <div style="float:left"> <apex:commandlink action="{!HidePopUps}" rerender="sepopup"> <apex:image style="" id="theCancelImage" value="{!URLFOR($Resource.ACAMS__Resources,'image/cancel.png')}" /> </apex:commandlink> </div> <div style="float:right"> <apex:commandlink action="{!AddToCart}" rerender="sepopup"> <apex:image style="" id="theAddToCartImage" value="{!URLFOR($Resource.ACAMS__Resources,'image/addtocart.png')}" /> </apex:commandlink> </div> </td> </tr> </table> </apex:outputPanel> </apex:outputPanel> </apex:actionRegion>
Also remove rendered attribute, just to ensure that you are at-least getting table in UI.
All Answers
Thanks Rahul, but no luck, same issue.
Okay, So try this out.
for collecting the list to another list.
It created more table rows but still no data. http://puu.sh/2gk5D
Also remove rendered attribute, just to ensure that you are at-least getting table in UI.
That did it, thanks Rahul. I rerended on the datatable id.