How to ativate/deactivate XmlListModel via JavaScript
-
Hi,
I need to deactivate my XmlListModel after start and activate it after my button click.
How can I do it?I tried to set source after my button click but XmlListModel.status returns 2 so it seems like I can not change source via JavaScript.
-
Hi,
It should be okay to change source via JavaScript -- can you post a code snippet demonstrating the issue?
Regards,
Michael -
Hi,
I am sorry for a late reply.Example:
@
xml.source = "adress";
console.log(xml.source); //correct
xml.reload();
x = 0;
while (xml.progress != 1) {
console.log (xml.progress + "\n" + xml.status + "\n" + "---------------------------"); //the progress is always 0 and the status is 2
x++;
if (x > 25) {
break;
}
}
@There are not any XmlRole keys in XmlListModel.