HI Debaranjan, Can you modify your apex class as below and see if it fixes the error:
public with sharing class UALServicesPDF {
public Id aids { get; set; }
public List<UAL_Customer_Services__c> UalSvmstlist { get; private set; }
public List<UAL_Customer_Service_Details__c> UalSvDtllist { get; private set; }
public UALServicesPDF(Apexpages.StandardController std) {
aids = Apexpages.currentPage().getParameters().get('Id');
UalSvmstlist = [SELECT id, name from UAL_Customer_Services__c where id = :aids];
UalSvDtllist = [SELECT ... FROM UAL_Customer_Service_Details__c WHERE UAL_Customer_Services__r.id = :aids];
}
}
By changing private set; to public get; private set;, the UalSvmstlist property will be accessible in the Visualforce page
Additionally, you mentioned that you tried <apex:repeat value="{!UalSvDtllist}" var="SvDtllist"> and encountered an error as well. If you face any issues with UalSvDtllist, ensure that the SELECT statement inside the Apex extension is correctly retrieving the necessary data from the UAL_Customer_Service_Details__c object.If this information helps, please mark the answer as best. Thank you
3 Antworten