Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <apex:page standardController="Grievance__c" extensions="MrcCaseListController" recordSetVar="notes" sidebar="false" >
- <apex:pageBlock >
- <apex:pageBlockTable value="{!notes}" var="n">
- <apex:column headerValue="Case Note" value="{!n.Note__c}" style="width: 76%; padding:10px;vertical-align:top;" />
- <apex:column value="{!n.Contact_Date__c}" style="width: 6%; padding:10px; vertical-align:top;"/>
- <apex:column value="{!n.Contact_Type__c}" style="width: 6%; padding:10px; vertical-align:top;"/>
- <apex:column value="{!n.CreatedById}" style="width: 6%; padding:10px; vertical-align:top;"/>
- <apex:column style="width: 6%; padding:10px;vertical-align:top;">
- <apex:outputLink value="/{!n.id}" target="_blank">
- {!n.Note_Created_Date_Time__c}
- </apex:outputLink>
- </apex:column>
- </apex:pageBlockTable>
- </apex:pageBlock>
- </apex:page>
- public with sharing class MrcCaseListController {
- public List<Grievance_Note__c> notes{get;set;}
- public Grievance__c mrcCase {get;set;}
- public MrcCaseListController(ApexPages.StandardController controller) {
- mrcCase = (Grievance__c)controller.getRecord();
- List <Grievance__c> mrcCaseList = [SELECT id FROM Grievance__c WHERE id =: mrcCase.id LIMIT 1];
- notes = [SELECT id,Note__c,Note_Created_Date_Time__c,Contact_Date__c,Grievance__c,Contact_Type__c,CreatedById,LastModifiedById
- FROM Grievance_Note__c
- WHERE Grievance__c = :mrcCase.id
- ORDER BY Note_Created_Date_Time__c];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement