Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Map<Id, DateTime> photos {
- get {
- if(photoIds == null) {
- photoIds = new Map<Id,DateTime>();
- for(Attachment att : [select Id,CreatedDate from Attachment where ParentId = :account1.Id and name LIKE '%.jpg' LIMIT 5]) {
- //photoIds.put(1,att.Id);
- //photoIds.put(2,att.CreatedDate);
- photoIds.put(att.Id,att.CreatedDate);
- }
- }
- return photoIds;
- }
- }
- <apex:repeat value="{!photos}" var="photo">
- <th class="tg-031e">
- <apex:outputlink value="{!URLFOR($Action.Attachment.Download, photo)}" id="theLink" onclick="window.open(this.href, 'mywin',
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement