i tried to generate list view dynamically in SUP.when i request for the first time it is working fine.when i come back from the screen and again calling the same screen list view is not loading it is displaying plain text.Code which i am using.
function
customBeforeNavigateForward(screenKey, destScreenKey) {
if (screenKey == "Start" && (destScreenKey
=== "Screen1")){
var htmlOutput = '';
var firstChar = '';
var approverName ='xxx' ;
var mobileNumber = '1111111111111111';
var email = 'xxx;
var landLine1 = 'asas';
var listView =
$('div[id="htmlListView"]');
if(listView.length > 0 ){
alert("The page
is already built");
$("mylist").listview("refresh");
}else{
alert("The is
built for the first time");
$('#Screen1Form').children().eq(2).hide();
$('#Screen1Form').children().eq(1).after(htmlOutput);
$("mylist").listview("refresh");
}