Inline editing refreshing datagrid problem in 2.5 - work around?

5
There is a problem with inline editing in version 2.5. I created a datagrid with quantity (editable) a price and a totalprice. In a before commit microflow a calculate the totalprice. This works perfect in previous versions of Mendix (2.4.X). After changing the quantity the totalprice is correctly calculated but the refresh functionality doesn't work. For this i created a bug in the partner portal. For the time being I got a tip to use a Java action to refresh the datagrid. I tried this but it doesn't seem to work. In the before commit microflow i call a java action which performs the code below. ... addRefreshObjectFeedback(catalogue.getMendixObject().getId()); addRefreshClass("MyFirstModule.Catalogue");` Am i doing something wrong is there another alternative.
asked
2 answers
5

The first method you mentioned is the equivalent of using the refresh option in a microflow, so I don't think calling that from Java has any additional effect.

The second call refreshes all objects of a certain type, which might be a workaround for your issue, but I would try calling it as an after commit action.

Another workaround (very bad one), is simply closing and opening the form again.

answered
1

There isn't an alternative. I tested the after commit event. With the javaaction:

addRefreshClass("MyFirstModule.Catalogue");`

I even tested the java action by calling it from an invoke button in the datagrid. That works fine, so the problem is the moment of calling the javaaction. Before and after commit doesn't do the trick.

answered