1

I'm developing a BlackBerry 10 mobile application using the Momentics IDE (native SDK).

I have listview that get its data from an XML file using XmlDataModel. The problem is when I try to change an item data, I change the data inside xml file but the problem is that the list in not refreshed with the new data unless I re-enter the page where the list is.

Can any one help me on this ? I will be very thankfull .

J.M.J
  • 1,081
  • 3
  • 18
  • 35
  • 1
    Never use Qt on BB, guess it is Qt 4.8. Have you tried using [XmlDataModel::reload](http://doc.qt.io/qt-4.8/qml-xmllistmodel.html#reload-method) ? – Arpegius Jun 01 '15 at 12:07
  • The reload function doesn't exist in XMLDataModel. What you mean by never using Qt on BB ? but the BB10 is using QML for designing UI. – J.M.J Jun 01 '15 at 14:25
  • I have no idea where to begin. XmlDataModel loads data once. If you change it you need to tell XmlDataModel about it, so try to load again. You could also use like GroupDataModel + DataSource and then update value in GroupDataModel – Bojan Kogoj Jun 01 '15 at 19:35
  • 1
    I would change to use a DataSource+GroupDataModel, much more flexible. But if you insist on using XmlDataModel then you could try setting source again (perhaps as empty first and then the new xml file) that should trigger a reload. – onion Jun 02 '15 at 13:48

0 Answers0