Thank you for your Answer.
I tried which you suggest like below :
Add this below Field in Task Node :
<field id="TaskComplete" type="Boolean" value="false" alwaysNotify="true" />
and changed m.top.TaskComplete value “true” when the Fourth TaskNode Response is complete.
sub Show(args as Object)
m.LoaderScreen = m.top.findNode("LoaderScreen")
m.LoadingIndicator = m.top.findNode("LoadingIndicator")
m.LoadingIndicator.observeField("TaskComplete", "onTaskStateChanged")
m.LoaderScreen.visible = true
m.LoadingIndicator.control = "start"
m.FirstNode= CreateObject("roSGNode", "FirstNode")
m.FirstNode.control = "RUN"
m.SecondNode = CreateObject("roSGNode", "SecondNode")
m.SecondNode.control = "RUN"
m.ThirdNode = CreateObject("roSGNode", "ThirdNode")
m.ThirdNode.control = "RUN"
m.FourthNode = CreateObject("roSGNode", "FourthNode")
m.FourthNode.control = "RUN"
end sub
sub onTaskStateChanged()
m.LoaderScreen.visible = false
m.LoadingIndicator.control = "stop"
end sub
I also tried with the single TaskNode like below :
sub Show(args as Object)
m.LoaderScreen = m.top.findNode("LoaderScreen")
m.LoadingIndicator = m.top.findNode("LoadingIndicator")
m.LoaderScreen.visible = true
m.LoadingIndicator.control = "start"
m.FirstNode= CreateObject("roSGNode", "FirstNode")
m.FirstNode.observeField("TaskComplete", "onTaskStateChanged")
m.FirstNode.control = "RUN"
end sub
sub onTaskStateChanged()
m.LoaderScreen.visible = false
m.LoadingIndicator.control = "stop"
end sub
If I observed from Task Node or Busy Spinner. Function not calls when Task Node Response is complete. I write my.top.TaskComplete = true in my Task Node when my Response is Complete. But, It’s Doesn’t Work. Anything else is Required? Second thing, Here, Boths the ways I mentioned in Above, Spinning wheel is Displayed. But, above the Spinning wheel Displayed a one blank dialog Box. I don’t understand where that dialog box comes from. I did not write it anywhere in the code. Currently, this one happening with SGDex Component. It’s Working fine with RSG(Normal Brightscript) Component. In SGDEX views, the loading spinner is managed by the framework, there’s nothing extra I need to do in that case. But, not understand clearly why a blank screen is displayed, until a Task node Response is not Complete.