You need to sign in to do that
Don't have an account?
Priyesh Misquith 12
creating wrapper class of seperate list and creating table in vf componet
I want to Create a wrapper class and combine both list and populate in the table .
CustomObject1__c custom1 =[select id,Attn__c,Forwarder__c,Branch_address__c,Currency__c,AB_CODE__c,IBAN__c,Shipper__c,Country__c,Swiftcode__c,Item__r.id from cc_ST_OrderConfigData__c ];
CustomObject2__c custom2 = [Select id,Order__r.id,Product__r.id, Product__r.SKU__c,Product_Name__c,Quantity__c,Total_Price_c, Price__c,ItemTotal__c FROM ccrz__E_OrderItem__c];
Here field Item__r.id and Product__r.id contains same id.
I want to create a table and display in following format in vf page
CustomObject1__c custom1 =[select id,Attn__c,Forwarder__c,Branch_address__c,Currency__c,AB_CODE__c,IBAN__c,Shipper__c,Country__c,Swiftcode__c,Item__r.id from cc_ST_OrderConfigData__c ];
CustomObject2__c custom2 = [Select id,Order__r.id,Product__r.id, Product__r.SKU__c,Product_Name__c,Quantity__c,Total_Price_c, Price__c,ItemTotal__c FROM ccrz__E_OrderItem__c];
Here field Item__r.id and Product__r.id contains same id.
I want to create a table and display in following format in vf page
All Answers
I am getting error on the line 32 because Product__r.id is the field in ccrz__E_OrderItem__c and not on cc_ST_OrderConfigData__c .
Thanks for the help
I fixed the code David Zhu.