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: 
slingxshot
Streaming Star

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
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.