function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SupriyaHSupriyaH 

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:
<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];
    }
}

 

User-added image

 
Best Answer chosen by SupriyaH
SupriyaHSupriyaH
Updated my VF code to : 
<apex:column headervalue="Subject">
    <apex:outputLink value="/{!pt.Id}" target="_blank">{!pt.Subject}</apex:outputLink>
</apex:column>