• Nish Raj
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Hi Team,

 

Could you please help me with below warpper class.

 

public List<Measure__c> ActualList {get; set;} 

     public List<Measure__c> getActuals() {

        String accountId = ApexPages.currentPage().getParameters().get('id');

 List<string> ExistingProds  = new List<string>
 try{
 LIst<CustomForecast__c> MPExisting = [SELECT Product__c FROM CustomForecast__c Where Account__c = :accountId]
 for (CustomForecast__c mp : MPExisting {
                    Existingprods.add(mp.Product__c);
                }
   }


    
        List<Measure__c> ActualInvoice = [select Id, Name,Cross_Reference__c,Calendar__c,Value__c From Measure__c
        Where Cross_Reference__r.Customer_Company__c = :accountId AND Product__c = ExistingProds];
        return ActualInvoice;
       
    }

I want put the actual Inovoice Values with product into Map.

 

How can i do this. can any one help me here.

Like this I dont no whether this correct format or not   Map<String,List<Measure__c>> MeaMap = new Map Map<String,List<Measure__c>>();

  • May 02, 2013
  • Like
  • 0