Roku Developer Program

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

LabelList with ContentList ids not showing

Hello,

When I manually have the content nodes defined (with the id) everything works well. However when I create them with code like this

sub addSection(sectiontext as string)
  m.sectionContent = m.content.createChild("ContentNode")
  m.sectionContent.CONTENTTYPE = "SECTION"
  m.sectionContent.TITLE = sectiontext
end sub


 
sub addItem(itemtext as string, id as string)
  item = m.sectionContent.createChild("ContentNode")
  item.title = itemtext
  item.id = id
end sub

then 

m.menu = m.top.FindNode("menu")
m.menu.content = m.content   

the ids don't come through when I do this:

m.menu.content.getChild(m.menu.itemFocused).id

Not sure what I am doing wrong.

Thanks!
0 Kudos