public with sharing class ISO_DemandOperAndDemonsJumpController { public String lid { get; private set; } public IS_Opportunity_Demand__c isid; public ISO_DemandOperAndDemonsJumpController(IS_Opportunity_Demand__c iso){ this.isid = iso; } public ISO_DemandOperAndDemonsJumpController(ApexPages.StandardController controller){ this.isid = (IS_Opportunity_Demand__c)controller.getRecord(); } public void init() { String Id = ApexPages.currentPage().getParameters().get('Id'); String oppId = ApexPages.currentPage().getParameters().get('oppId'); //IS_Opportunity_Demand__c isod = [select Id, Operating_Room_Count__c,Opportunity_ID__c,Demonstration_Number__c from IS_Opportunity_Demand__c where Id = :Id]; lid = 'ISO_DemandOperAndDemonsNew?id='+Id+'&OppoerID='+oppId; } }