title: In XPages Mobile App, can you clear viewScope variables between page changes?
body: <p>I'm working on an XPages Mobile app using mobile controls from Extension Library.</p>
  
  <p>My hope page is a menu leading to 4 different mobilePages.</p>
  
  <p>I get this this is 1 XPage and we're dealing with "Virtual Pages".  But is there a way to clear viewScope variables and document bindings as you go back and forth between virtual pages?</p>
  
  <p>For instance.  In one of my pages I ask the user for some data.  3 Fields stored in viewScope Variables.  Using that I then have a button to Create a new document which gets bound to a panel and then I do things with it.  </p>
  
  <p>If the user hits "back" from the menu bar, to go to the Home screen and then goes back to the same page I want to clear everything and start all over.</p>
  
  <p>setting resetContent= true doesn't do anything here.</p>
  
  <p>My virtual page is a custom control and I tried to clear everything on beforePageLoad but that wiped it all during a manual refresh.</p>
  
  <p>I tried hooking into the rendered property of the back button but that fired during a full page refresh.  Possibly I could live with partial refreshes but someone might still manually refresh it.</p>
  
  <p>Any way to get this ability inside the single page app mobile context?</p>
  
  <p>Thanks!</p>