import "pkg:/source/utils/Utils.bs" sub Init() m.rowList = m.top.FindNode("rowList") m.rowList.SetFocus(true) m.top.ObserveField("visible", "onVisibleChange") end sub sub OnVisibleChange() ' invoked when GridScreen change visibility if m.top.visible = true m.rowList.SetFocus(true) ' set focus to rowList if GridScreen visible end if end sub