This file contains hidden or 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
global with sharing class CPPBuilderRob { | |
public CPPBuilderRob() { | |
// Remember: @RemoteActions are static, hence controller has no state | |
} | |
@RemoteAction | |
global static CPP_Report_Poller GetReportGroups(string opportunityId) { | |
// Query from CPP_Report_Request__c |
This file contains hidden or 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
static public Boolean createBaselineData() { | |
Merchandise__c m = new Merchandise__c(Name='Rack Server',Price__c=1245.99,Quantity__c=500); | |
insert m; | |
Invoice__c i = new Invoice__c(); | |
insert i; | |
Line_Item__c li = new Line_Item__c(Name='1',Quantity__c=10,Merchandise__c=m.Id,Invoice__c=i.Id); | |
insert li; | |