Forum Discussion

slingxshot's avatar
slingxshot
Streaming Star
8 years ago

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!
No RepliesBe the first to reply