<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: RTable is not updated when model is changed</title><link>https://answers.axonivy.com/questions/310/rtable-is-not-updated-when-model-is-changed</link><description>&lt;p&gt;I use an RTable widget with a ivyScript List as model. I want that the table updates it self when I change an element in my list. E.g. I have a list with articles and I change an article, add a new one or delete one, then I want that the table is updated automatically. How can I do that?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/310/rtable-is-not-updated-when-model-is-changed" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 27 Nov 2013 15:37:32 -0500</lastBuildDate><item><title>Answer by SupportIvyTeam</title><link>https://answers.axonivy.com/questions/310/rtable-is-not-updated-when-model-is-changed/311</link><description>&lt;p&gt;There are two things that must happen so that the RTable is repainted. First the model must tell the widget that it was updated. You do not have to take care about this part. Second, the model must know that it was changed. If you add or remove elements, this is no problem and works out of the box. But if you change an already existing element, then you need to inform the model about this. Luckily this is very simple:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;in.myList.elementChangedAt(...)&lt;/code&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">SupportIvyTeam</dc:creator><pubDate>Wed, 27 Nov 2013 15:37:32 -0500</pubDate><guid>https://answers.axonivy.com/questions/310/rtable-is-not-updated-when-model-is-changed/311</guid></item></channel></rss>