Linking two tables together

No, this is not the solution. If you keep the code shown in your question, it will never work, no matter what you do with the IDE.

The only way to get your code to update the datatable is to fix the list comprehension the way I said in my earlier post.

Your only mistake was to rely on the UI to check the values in the table assuming that the UI wouldn’t change the values without telling you. It it is a very understandable mistake, caused by a problem in the UI design, and you are not the first one to fall for it. I created this feature request addressing it some time ago, I hope it will be addressed soon, and you can see that other posts are linking to this one, so you and me are not the only ones that found this problem.

So, yeah, you had a problem in the code and you were assuming that the UI would allow you to check the values stored in the table, but the UI was actually changing those values and preventing you from noticing the error in the code.

2 Likes