I'm sincerely not understanding what you're doing, when you go from view b to view a all the data not saved are garbage collected. When you return to view b do you want to just change the data inside the elements? if it is so you should just update the data in the update view method. just remenber to not set them in create view but to leave them empty ( labels and such) if you want to change them dinamically.
View A is a login view, so when view B returns to view A is just like disconnect
I also tried to use update view, but it seems that the old view B doesn't disappear
For example this is a textbutton in view B
CODEBOX
var bottom1 = new KONtx.control.TextButton({
label: $API.perfectUser.user_login,
styles: {
vOffset: text_button_header.outerHeight
},
textStyles: {
color: '#FFFFFF',
fontSize: KONtx.utility.scale(18),
paddingLeft: KONtx.utility.scale(5),
hAlign: 'center',
vAlign: 'center'
},
events: {
onSelect: function(event){
var dialog = new KONtx.dialogs.Alert({
title: "Email",
message: $API.perfectUser.user_login,
buttons: [{
label: "back"
}]
});
dialog.show();
}
}
}).appendTo(this);
$API.perfectUser.user_login is a variable global
I returned to view A, and then, changed this variable, and again to view B
and then, in the label, the data doesn't change, but in the alertBOX , it changed.
I used update view, and the old variable and new variable appear together in the label