Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. public class getpara_Controller {
  2.  
  3. private ApexPages.StandardController sc;
  4. public getpara_Controller(ApexPages.StandardController sc) {
  5. this.sc = sc;
  6.  
  7. }
  8.  
  9. public String para = ApexPages.currentPage().getParameters().get('custompara');
  10.  
  11. custom_object__c obj = new custom_object__c(lookup__c = para);
  12.  
  13. public PageReference insertRedirect() {
  14.  
  15. sc.save();
  16. PageReference endpage = new PageReference('https://www.example.com');
  17. endpage.setRedirect(true);
  18. return endpage;
  19. }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement