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
Akshay ShrivastavaAkshay Shrivastava 

omponent does not allow set on nested properties

price : function(component, event, helper){
         var list = component.get("v.ProductList");
        var length = list.length;
        var select = component.find("PName").get("v.value");
        
        
        for(var i= 0;i<length;i++){
           
            if(select == list[i].Name){
              var pr = list[i].Price__c;
               component.find("price").set("v.ItemInstance.Price__c",pr);
              
            }



error---

This page has an error. You might just need to refresh it.
Assertion Failed!: This component does not allow set on nested properties: false
Failing descriptor: {markup://c:DynamicRowitemCmp}


can anyone help me on this
 
Suraj Tripathi 47Suraj Tripathi 47
Hi Akshay Shrivastava

Try this code below, I guess it will help you.
https://developer.salesforce.com/forums/?id=9062I000000DKeFQAW

If you find your solution please mark this as the best answer.

Thank you!
Regards,
Suraj Tripathi