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 headerValue="Sales">
                   <apex:outputText value="{!bill.Sales__c}"/>       
           <apex:column headerValue="CBs">
                   <apex:outputText value="{!bill.CBs__c}"/>   
           <apex:column headerValue="Net Sales">
                   <apex:outputText value="{!bill.Sales__c + bill.CBs__c}"/>   

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('');
        return Pr;

this code not shows value , what changes i have to made ?
see here for example


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