You need to sign in to do that
Don't have an account?
Anita 8
Uncaught [TypeError: Cannot read property 'Product2' of undefined] in lightning design system
Helper
It's undefined " Product2" .
How to fix it ???
Please , help me to resolve it .
Thanks you kindly.
setBillingCatCalc : function(cmp, oli) { $A.log('running Abstract helper'); $A.log('billcatcalcs: '+cmp.get("v.billingCatCalcs")); $A.log('oli: '+cmp.get("v.oli")); if (oli.PricebookEntry.Product2 !== undefined && oli.PricebookEntry.Product2.Billing_Category__c !== undefined) { cmp.set("v.billingCatCalcs",oli.PricebookEntry.Product2.Billing_Category__c.split(";")); } var calcBCC = oli.Billing_Category__c+'_'+oli.BillingCalc__c; cmp.find("selBCC").set("v.value",calcBCC); cmp.set("v.oli",oli); }
It's undefined " Product2" .
How to fix it ???
Please , help me to resolve it .
Thanks you kindly.
All Answers
Thanks Vivek .
It's ok . but I got other error : Uncaught rerender threw an error in 'markup://aura:iteration' [Error: Unable to format NaN]
What wrong with it after I push Product2 to OpportunityLineItem ???
Now It's work fine .