title: Add Dynamic range to AOT query
body: <p>I am using AOT query to create a view.Now I want to pass dynamic range to the AOT query which should affect the view also.
  I tried using TreeNode class to set query properties but it opened a compiler window and plus it throws error if accessed by two users at the same time.</p>
  
  <p>Can anybody help?</p>