Created
February 22, 2017 19:37
-
-
Save sankaran1984/2bd85fc417291f3d360337b28a0fb0b3 to your computer and use it in GitHub Desktop.
visualforce - beyond basics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class testclass6_22022017 { | |
public OpportunityWrapper oppWrapObj {get;set;} | |
public testclass6_22022017() { | |
oppWrapObj = new OpportunityWrapper(ApexPages.currentPage().getParameters().get('Id')); | |
} | |
class OpportunityWrapper { | |
Public String genericName{get;set;} | |
Public Date openDate{get;set;} | |
Public Opportunity opp{get;set;} | |
Public OpportunityWrapper(Id oppId) { | |
opp = [Select Id, Name, StageName From Opportunity Where Id =: oppId]; | |
genericName = 'Test Opp Generic Name'; | |
openDate = System.Today() + 20; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment