Skip to content

Instantly share code, notes, and snippets.

@sankaran1984
Created February 22, 2017 19:37
Show Gist options
  • Save sankaran1984/2bd85fc417291f3d360337b28a0fb0b3 to your computer and use it in GitHub Desktop.
Save sankaran1984/2bd85fc417291f3d360337b28a0fb0b3 to your computer and use it in GitHub Desktop.
visualforce - beyond basics
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