Forum Discussion
joetesta
8 years agoRoku Guru
You probably want to set an observer on the task and break your function up into 2 pieces; Instead of this
Do something like this:
The task needs to have a top level field "content" that it sets once it has received and processed the server response. As soon as the task sets "content" field (m.top.content from within the task), your brs will pick it up and assign to its own postergridcontent field.
sub getContent()
readInternet = createObject("roUrlTransfer")
readInternet.setUrl(m.top.postergriduri)
postergridcontent = readInternet.GetToString()
m.top.postergridcontent = postergridcontent
end sub
Do something like this:
sub getContent()
m.readInternet = createObject("roUrlTransferTask")
m.readInternet.observeField("content","contentSet")
m.readInternet.Url = m.top.postergriduri
end sub
sub contentSet
m.top.postergridcontent = m.readInternet.content
end sub
The task needs to have a top level field "content" that it sets once it has received and processed the server response. As soon as the task sets "content" field (m.top.content from within the task), your brs will pick it up and assign to its own postergridcontent field.