title: How to clear dialog/xmlfragment content after close?
body: <p>My dialog is defined as <a href="https://sapui5.hana.ondemand.com/#/topic/4da72985139b4b83b5f1c1e0c0d2ed5a" rel="nofollow noreferrer">document</a>: </p>
  
  <pre><code>  onOpenDialog : function () {
       var oView = this.getView();
       var oDialog = oView.byId("helloDialog");
       // create dialog lazily
       if (!oDialog) {
          // create dialog via fragment factory
          oDialog = sap.ui.xmlfragment(oView.getId(), "sap.ui.demo.wt.view.HelloDialog");
          oView.addDependent(oDialog);
       }
  
  
       oDialog.open();
    }
  </code></pre>
  
  <p>Let's say this dialog has many Input/Select/ComboBox and so on, user inputs in it, close, nav to another master item and detail page, open this dialog instance again, and the information is still here. What if I want to clear the information/inputs every time user closes it? </p>
  
  <p>Is destroy this dialog after close the only way to solve this? </p>