function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Amit ChaudharyAmit Chaudhary 

How can i pass list<object__c> one vf page to another . ?

<apex:pageBlock title="Invoice">
          
         <apex:datatable var="bill" value="{!invoices}" border="4" cellpadding="2" cellspacing="3" >
          
           <apex:column headerValue="Paper Plan">
                   <apex:outputText value="{!bill.Paper_Plan__c}"/>
           </apex:column>
          
           <apex:column headerValue="Sales">
                   <apex:outputText value="{!bill.Sales__c}"/>       
           </apex:column>
          
           <apex:column headerValue="CBs">
                   <apex:outputText value="{!bill.CBs__c}"/>   
           </apex:column>
          
           <apex:column headerValue="Net Sales">
                   <apex:outputText value="{!bill.Sales__c + bill.CBs__c}"/>   
           </apex:column>
          
                 
        </apex:datatable>           
          
   </apex:pageBlock>
  ---------------------------------------------------------------------------------------------------------------------------------------------------------

above code same in 2 diffrent vf page . and have following common controller class .which have this method .
------------------------------------------------------------------------------------------------------------------------------------------------------------

  public list<invoice__c> invoices { get; set; }

    public PageReference genrate() {
       
        invoices = [select CBs__c,CBs_Commision__c,Sales__c,Sales_Commission__c,Paper_Plan__c from invoice__c where (News_Paper__c = :selectval AND (from_Date__c < :dt or from_Date__c = :dt)  AND (End_Date__c > :dt or End_Date__c = :dt))];
       
         
         PageReference pr = new PageReference('https://c.ap1.visual.force.com/apex/printable_view');
             pr.setRedirect(false);
             
      
        return Pr;
      
      
    }


this code not shows value , what changes i have to made ?
Subramani_SFDCSubramani_SFDC
see here for example
http://www.infallibletechie.com/2013/03/how-to-send-picklist-values-from-one-vf.html

Pramod_SFDCPramod_SFDC
Hi,

Please see the below mentioned link. I believe this might help you.

>> https://developer.salesforce.com/forums/?id=906F000000097N5IAI


Thanks