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
Waqas AliWaqas Ali 

Visual force page to list 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.