Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Levashov
Visitor

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 1
TheEndless
Channel Surfer

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
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.