You need to sign in to do that
Don't have an account?

Unknown Property on Custom Component Controller
Hello friends!
I cannot get this visualforce component to save. After trying a lot of different things in setting the properties i still get the error: Unknown property 'SObject.' on line 0.
Any guidance is greatly appreciated.
<apex:component controller="pdf_QLineItemGrouped2"> <apex:attribute name="qlis" required="true" type="QuoteLineItem[]" assignTo="{!qli}" description="List of quote line items to be displayed."/> <apex:attribute name="totalPrice" required="true" type="Decimal" description="Quotes total sales price"/> <section > <b></b> <table class="qitable"> <tr> <th class="row-name label" >Product</th> <th class="row-date label">Description</th> <th class="row-date label">Quantity</th> <th class="row-status label">CPI</th> <th class="row-status label">Total</th> </tr> <apex:repeat var="qli" value="{!groupedQLIs}"> <tr> <td class="row-name detail" >{!qli.['Family']}</td> <td class="row-name detail" >{!qli['Quantity']}</td> <td class="row-date detail"> <apex:outputText value="{0, number,currency}"> <apex:param value="{!qli.['Amount']}"/> </apex:outputText> </td> <td class="row-date detail"> <apex:outputText value="{0, number,currency}"> <apex:param value="{!qli.TotalPrice}"/> </apex:outputText> </td> </tr> </apex:repeat> <tr class="label"> <td colspan="4" class="alignRight">Total:</td> <td> <apex:outputText value="{0, number,currency}"> <apex:param value="{!totalPrice}"/> </apex:outputText> </td> </tr> </table> <p style="page-break-after: always">Please note that prices do not include GST.</p> </section> </apex:component>
public class pdf_QLineItemGrouped2 { public pdf_QLineItemGrouped2(){} public list<QuoteLineItem> qli {get; set;} set<Id> qlids = (new Map<Id, QuoteLineItem>(qli)).keySet(); public list<SObject> groupedQLIs { get {return groupedQLIs;} private set{ groupedQLIs = [SELECT PricebookEntry.Product2.Family Family, SUM(Quantity) Quantity, SUM(CG_Total_Price__c) Amount FROM QuoteLineItem WHERE Id IN :qlids AND UnitPrice > 0 GROUP BY PricebookEntry.Product2.Family ORDER BY PricebookEntry.Product2.Family ASC]; }} }
Please use API Name of object pdf_QLineItemGrouped2 like this pdf_QLineItemGrouped2__c on controller.
Thanks
and that gives me a different error: unknown component outputText
I found the syntax here: https://salesforce.stackexchange.com/questions/202953/unknown-property-sobject-why-cant-i-display-the-object