Levashov
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2016
07:24 PM
Component extends ContentNode with nodearray non-resizable
Hi,
I'm trying to extend ContentNode:
But when I try to add value in code:
I get "roArray.Push: push ignored for non-resizable array".
How can I make it resizable?
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?
1 REPLY 1

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2016
08:33 PM
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)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)