Hello People, Using addToViewContextDefinition, ca...
# suitecommerce
a
Hello People, Using addToViewContextDefinition, can I update the value of a property of a specific array index element? So for example, I want to update the description content of an item upon trigger of an event so I would want to update the content property of specific index of details array in
product_details_information.tpl
s
I think theoretically yes as the existing context object is passed through the function parameters
So you would name the existing property you want to overwrite, pass through the object, and the return a modified property of the context object
a
so details in the parameters, and when returning the object; update details.content?
In this case, I am overwriting the thumbnail image
a
I'll check that out. Thank you @Steve Goldberg