I have to show custom object HCP Depth Tracker in Account's related list.It is having Account reference.It's child of Depth Tracker object which is immediate child of Account.My approach is by creating a vf page and drag it in page section.Please find issue I am facing.I have created below apex class.
global with sharing class poistionController {
public HCP_Depth_Tracker_OAPI__c pos{get;set;}
public poistionController() {
pos = [select Monthly_Call_Attainment_OAPI__c,Name,Account_OAPI__c,Active_HCP_DT_OAPI__c,Id,Territory_OAPI__c,Total_Actual_Calls_Month_OAPI__c from HCP_Depth_Tracker_OAPI__c where HCP_Account_OAPI__c= :ApexPages.currentPage().getParameters().get('id')];
}
}
Apex page:
<apex:page standardController="HCP_Depth_Tracker_OAPI__c" extensions="poistionController" showHeader="false">
<div align="center" width="550px">
<b>
<apex:outputText value="Your maximum salary could be AT MAXIMUM {!HCP_Depth_Tracker_OAPI__c .name}"/>
</b>
</div>
</apex:page>
Getting error in the page like this.
Error: Unknown constructor 'poistionController.poistionController(ApexPages.StandardController controller)'
Please let me know the way out.