Pastoid

The page you are looking at now is at this URL: http://pastoid.com/aqz

This paste was last updated on March 4, 2009 at 9:29 am.

Pasted Coderaw

public class webdev {
    public class newAP { 
        public Opportunity opp {get;set;}  
        public String role {get; set;} 
        public newAP() { opp = new Opportunity();      }
   }
    public List<newAP> apList {get; set; } {apList = new List<newAp>(); }
&nbsp;
    public webdev() { 
      apList.add ( new newAP() );
      apList.add ( new newAP() ); 
      apList.add ( new newAP() );
   }
&nbsp;
   public PageReference savePartnerData() {
      PageReference opptyPage = new PageReference('http://www.google.com/?newid=' + apList.get(1).opp.AccountId);
      return opptyPage ;
   }
&nbsp;
   public List<SelectOption> getRoles() {
          List<SelectOption> options = new List<SelectOption>();
          PartnerRole[]  partnerRole = [Select  MasterLabel from PartnerRole  where CreatedById <> null];
          options.add(new SelectOption('--None--','--None--'));
          for(Integer i=0;i<partnerRole.size();i++)
          {
              options.add(new SelectOption(partnerRole[i].MasterLabel,partnerRole[i].MasterLabel));
          }
        return options;
   }
}

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 4
search.live.com 1
Is this paste spam?
<Hide