Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8338

Content of Dialog view works first time but not after

$
0
0

I have a shell and a button inside it opens a dialog whose content is set to a view, this works the first time I click the button but then after none of the functionality of that view works, the controller doesn't seem to work for it, it goes all strange. The myview2 var is created outside the shell.

 

Any ideas how to resolve this? I tried to destory the view after each use but that didn't allow the view to pop up at all the second or third time then.

 

Thanks.

 




headerItems: [new sap.ui.commons.TextView({text:"Welcome {/person/name}",tooltip:"U.Name"}),

              new sap.ui.commons.Button({text:"Personalise",tooltip:"Personalise",press:function(){
// create an instance of the predefined views

var oDialog = new sap.ui.commons.Dialog({

modal : true,

content : [ myView2 ]

});


oDialog.open();

}}),


Viewing all articles
Browse latest Browse all 8338

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>