+ Start a Discussion
Waqas AliWaqas Ali 

Visual force page to show the Contracts

I have a button in my opporunity which calls a apex class, Now what i want is: If the Opportunity "Type" field = MyProduct I would like an Visual force page that displays all the active Contracts related to the Account in the Opportunity. I want to be able to change the Status of the existing Contract to Expired or Lapse in visual force page. How should i do all this. I am new to Sales force. That would be a great help if some one can provide some sample code.