1024Tech
14 years agoVisitor
Little help needed on the roSearchScreen
Hi everyone,
I am trying to implement roku search functionality using the suggestions from the component reference guide and this post( http://forums.roku.com/viewtopic.php?f=34&t=30099&p=184075&hilit=rosearchscreen#p184075) by roku team.
I was able to retrive the searchresults from the server, parse it in to roArray. But I am not able to get to display them on the 'roPosterScreen'. I am not sure why the posterscreen is not displaying. Below is the code i am using.
Could anybody shed some light on this as I am stuck here forever trying to figure out what is preventing 'roPosterScreen' from being displayed?
I am trying to implement roku search functionality using the suggestions from the component reference guide and this post( http://forums.roku.com/viewtopic.php?f=34&t=30099&p=184075&hilit=rosearchscreen#p184075) by roku team.
I was able to retrive the searchresults from the server, parse it in to roArray. But I am not able to get to display them on the 'roPosterScreen'. I am not sure why the posterscreen is not displaying. Below is the code i am using.
Could anybody shed some light on this as I am stuck here forever trying to figure out what is preventing 'roPosterScreen' from being displayed?
function GenerateSearchResults(partSearchText As String, screen As Object)
posterScreen = preShowPosterScreen("Search", "")
searchResults=getShowsBySearch(partSearchText)
showPosterScreenForSearch(posterScreen, searchResults)
End function
Function showPosterScreenForSearch(screen As Object, searchResults As Object) As Integer
if validateParam(screen, "roPosterScreen", "showPosterScreenForSearch") = false return -1
if validateParam(searchResults, "roArray", "showPosterScreenForSearch") = false return -1
'printList(searchResults)
screen.SetContentList(searchResults)
screen.Show()
End function