Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
Levashov
Level 7

Component extends ContentNode with nodearray non-resizable

Hi,

I'm trying to extend ContentNode:
<component  name = "ExtContentNode" extends = "ContentNode">
  <interface >
    <field id = "list" type = "nodearray" alwaysNotify="true" />
  </interface>
</component>


But when I try to add value in code:
 for each kid in itemAA.children
     item.list.push(kid)
  end for


I get  "roArray.Push: push ignored for non-resizable array".
How can I make it resizable?
0 Kudos
1 Reply
TheEndless
Level 7

Re: Component extends ContentNode with nodearray non-resizable

Only node field types are accessed by reference, so you can't modify a nodearray directly. You need to reference the nodearray locally, modify it, then reset it.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos