You need to sign in to do that
Don't have an account?
SupriyaH
Linking Task Subject to Task Record in a Custom List
Hello,
I have created a Custom List of Tasks owned by logged in user for the Home Page compoent. My WhoId and WhatId are being properly linked to the corresponding records but my Task Subjects are not (not even the IDs).
Here is my simple VF page:
And Controller:
I have created a Custom List of Tasks owned by logged in user for the Home Page compoent. My WhoId and WhatId are being properly linked to the corresponding records but my Task Subjects are not (not even the IDs).
Here is my simple VF page:
<apex:pageBlock title="Priority Tasks"> <apex:pageblocktable value="{!priorityTasks}" var="pt" id="mid"> <apex:column style="{font-size:20px;}" headervalue="Subject" value="{!pt.Subject}"/> <apex:column headervalue="Date" value="{!pt.ActivityDate}"/> <apex:column headervalue="Status" value="{!pt.Status}"/> <apex:column headervalue="Program Track" value="{!pt.WhatId}"/> <apex:column headervalue="Contact" value="{!pt.WhoId}"/> <apex:column headervalue="Priority Score" value="{!pt.Priority_Score__c}"/> </apex:pageblocktable>
And Controller:
public with sharing class PrioritizedTaskListController{ public List<Task> priorityTasks {get; set;} public PrioritizedTaskListController(){ priorityTasks = [Select Subject, ActivityDate, Status, WhatId, WhoId, Priority_Score__c from Task where IsClosed = FALSE and OwnerId =: UserInfo.getUserId() order by Priority_Score__c desc]; } }
Best Answer chosen by SupriyaH
SupriyaH
Updated my VF code to :