daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest Feb 21st, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <apex:page standardController="Grievance__c" extensions="MrcCaseListController" sidebar="false">
  2.         <apex:repeat value="{!notes}" var="n">
  3.             <apex:outputText value="{!n.Note__c}" style="width: 100%; display: block; padding:10px 0;border-top:1px solid gray;" />
  4.             <div style="width: 100%; display: flex; justify-content:space-between; padding: 10px 0;">
  5.                 <div style="display: flex; flex-direction: column;">
  6.                     <apex:outputText value="{0,date,MM/dd/yyyy}" style="font-weight: bold;">Contact Date: <apex:param value="{!n.Contact_Date__c}" /> </apex:outputText>
  7.                     <apex:outputText value="{!n.Contact_Type__c}" style="" />
  8.                 </div>
  9.                 <apex:outputText value="{!n.CreatedById}" style="font-weight: bold; padding-right: 20px;" />
  10.                 <apex:outputText style="">
  11.                     <apex:outputLink value="/{!n.id}" target="_blank">
  12.                         <apex:outputText value="{0,date,MM/dd/yyyy h:mm a}">
  13.                             <apex:param value="{!n.Note_Created_Date_Time__c}" />
  14.                         </apex:outputText>
  15.                     </apex:outputLink>
  16.                 </apex:outputText>
  17.             </div>
  18.         </apex:repeat>
  19. </apex:page>
  20.      
  21. public with sharing class MrcCaseListController {
  22.  
  23.     private final Grievance__c mrcCase;
  24.  
  25.     public MrcCaseListController(ApexPages.StandardController stdController) {
  26.         this.mrcCase = (Grievance__c)stdController.getRecord();
  27.     }
  28.  
  29.     public List<Grievance_Note__c> getNotes() {
  30.         return [
  31.             SELECT  Id,
  32.                     Note__c,
  33.                     Note_Created_Date_Time__c,
  34.                     Contact_Date__c,
  35.                     Grievance__c,
  36.                     Contact_Type__c,
  37.                     CreatedById,
  38.                     LastModifiedById
  39.             FROM    Grievance_Note__c
  40.             WHERE   Grievance__c = :mrcCase.id
  41.             ORDER   BY Note_Created_Date_Time__c
  42.         ];
  43.     }
  44. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top