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: 
km_reel
Visitor

Search function not working properly?

I am creating a channel using the Grid Screen layout. I have four rows, each set to a different .rss for video playback. Here is where I'm having problems: I've tried listing out each row in the ContentList (i.e. oneRow, twoRow, threeRow, fourRow) for the SearchList, and I've tried creating multiple SearchLists. I am either getting errors or only one row listed is working with the search function. What am I missing? Is it possible to link all four rows to the search function? If not, can I remove the search option entirely?

Sub RunUserInterface()
    screen = CreateObject("roSGScreen")
    m.scene = screen.CreateScene("HomeScene")
    port = CreateObject("roMessagePort")
    screen.SetMessagePort(port)
    screen.Show()
    
    oneRow = GetApiArray1()
    twoRow = GetApiArray2()
    threeRow = GetApiArray3()
    fourRow = GetApiArray4()

    list = [
        {
            TITLE : "show 1"
            ContentList : oneRow
        }
        {
            TITLE : "show 2"
            ContentList : twoRow
        }
        {
            TITLE : "show 3"
            ContentList : threeRow
        }
        {
            TITLE : "show 4"
            ContentList : fourRow
        }
    ]
    
    m.SearchList = [
        {
            TITLE : "Search results"
            ContentList : oneRow
        }
    ]
0 Kudos
1 REPLY 1
km_reel
Visitor

Re: Search function not working properly?

Still can't fix this one problem. Can anyone help??
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.