Roku Community
Sign In
Help
Browse
Browse
Streaming Players
Roku setup
Features, settings & updates
Wi-Fi & connectivity
Channels & viewing
Solving playback issues
Remotes
Roku mobile app
Roku legacy products
Roku TV
Manufacturer support & warranty resources
Discussions
Roku Audio
Discussions
Roku Smart Home
Using your smart home devices
Cameras & doorbells
Lights & power
Smart home app
Roku Pay
Account, payments & subscriptions
Community
Community discussions
Welcome to the Roku Community
Announcements
Developers
Roku Developer Program
Roku Direct Publisher
Roku TV Ready Certification Program
Independent Developer Kit
Roku Developer Program
Developers and content creators—a complete solution for growing an audience directly.
All community
This category
This board
Users
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show
only
|
Search instead for
Did you mean:
Roku Community
:
Developers
:
Roku Developer Program
:
How to get the string from a selected item in a La...
Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
neowinston
Level 7
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
08-24-2017
07:26 AM
How to get the string from a selected item in a LabelList?
I need to get the string from a selected item in a
LabelList
. From the docs I know that
itemSelected
gives me the index, but not the string. How do I get the selected string? Thank you!
0
Kudos
Reply
All Topics
Previous Topic
Next Topic
3 REPLIES
3
tim_beynart
Level 8
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
08-24-2017
11:46 AM
Re: How to get the string from a selected item in a LabelList?
I think you need to use the index to look up the value from the LabelList data provider (peudocode, syntax may be wrong)
list.content[index].title
0
Kudos
Reply
neowinston
Level 7
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
09-08-2017
12:56 PM
Re: How to get the string from a selected item in a LabelList?
Thank you, Tim! You helped me a lot!
0
Kudos
Reply
ackmanx
Level 7
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
12-30-2017
07:19 PM
Re: How to get the string from a selected item in a LabelList?
For future reference of others, the specific code I had to use for your use case was:
m.setList.content.getChild(m.setList.itemSelected).title
Where m.setList was my LabelList.
0
Kudos
Reply
Trending Discussions
Feed not being processed for days
can control the TV off through the TV Off/CEC signal, but can't control Roku through the remote cont
How to start unit testing in bright Script
Labels
Android
1
Audio
1
Channel content question
2
Channel feature-functionality
2
iOS
1
Play on Roku
2
Video
1