Hi Sai Vellanki,
Thanks for the quick reply but its not working.
Earlier I was using oTree.oSelectedContext function directly without declaring a variable and it was working.
On typing oTree in the console it used to show me oSelectedContext as a function related to oTree but now it is not showing.